Initial commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// ShakeManager.h
|
||||
// Yoosee
|
||||
//
|
||||
// Created by guojunyi on 14-7-25.
|
||||
// Copyright (c) 2014年 guojunyi. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "GCDAsyncUdpSocket.h"
|
||||
|
||||
@protocol ShakeManagerDelegate <NSObject>
|
||||
-(void)onReceiveLocalDevice:(NSString*)contactId type:(NSInteger)type flag:(NSInteger)flag address:(NSString*)address;
|
||||
-(void)onSearchEnd;
|
||||
@end
|
||||
|
||||
|
||||
@interface ShakeManager : NSObject
|
||||
@property (strong, nonatomic) GCDAsyncUdpSocket *socket;
|
||||
@property (nonatomic) BOOL isSearching;
|
||||
@property (nonatomic) NSInteger searchTime;
|
||||
|
||||
@property (assign) id<ShakeManagerDelegate> delegate;
|
||||
+ (id)sharedDefault;
|
||||
-(BOOL)search;
|
||||
-(int)ApModeGetID;
|
||||
-(BOOL)ApModeSetWifiPassword:(NSString*)password;
|
||||
@end
|
||||
Reference in New Issue
Block a user