2014-07-09 14:45:53 +04:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or modify it under
|
|
|
|
* the terms of the GNU Lesser General Public License as published by the Free
|
|
|
|
* Software Foundation; either version 2.1 of the License, or (at your option)
|
|
|
|
* any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
|
|
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
|
|
|
|
* details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import "GCDAsyncSocket.h"
|
|
|
|
#import "RequestManager.h"
|
|
|
|
|
|
|
|
@interface RequestManager : NSObject
|
|
|
|
{
|
|
|
|
GCDAsyncSocket* _socket;
|
|
|
|
|
|
|
|
NSMutableArray* _requestQueue;
|
2014-07-17 21:29:02 +04:00
|
|
|
NSMutableDictionary* _registeredPathes;
|
2015-05-06 13:50:53 +03:00
|
|
|
NSMutableSet* _requestedPaths;
|
2015-01-23 13:59:50 +03:00
|
|
|
|
|
|
|
NSString *_shareMenuTitle;
|
2014-07-09 14:45:53 +04:00
|
|
|
|
|
|
|
BOOL _isConnected;
|
|
|
|
}
|
|
|
|
|
|
|
|
@property (nonatomic, retain) NSString* filterFolder;
|
|
|
|
|
|
|
|
+ (RequestManager*)sharedInstance;
|
|
|
|
|
2014-09-23 12:22:40 +04:00
|
|
|
- (BOOL)isRegisteredPath:(NSString*)path isDirectory:(BOOL)isDir;
|
2014-07-09 20:00:26 +04:00
|
|
|
- (void)askOnSocket:(NSString*)path query:(NSString*)verb;
|
2015-05-06 13:49:04 +03:00
|
|
|
- (void)askForIcon:(NSString*)path isDirectory:(BOOL)isDir;
|
2014-07-09 14:45:53 +04:00
|
|
|
- (void)menuItemClicked:(NSDictionary*)actionDictionary;
|
|
|
|
- (void)start;
|
|
|
|
|
2015-01-23 13:59:50 +03:00
|
|
|
- (NSString*) shareItemTitle;
|
|
|
|
|
2014-07-09 14:45:53 +04:00
|
|
|
@end
|