RequestManager.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /**
  2. * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
  3. *
  4. * This library is free software; you can redistribute it and/or modify it under
  5. * the terms of the GNU Lesser General Public License as published by the Free
  6. * Software Foundation; either version 2.1 of the License, or (at your option)
  7. * any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  11. * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
  12. * details.
  13. */
  14. #import <Foundation/Foundation.h>
  15. #import "GCDAsyncSocket.h"
  16. #import "RequestManager.h"
  17. @interface RequestManager : NSObject
  18. {
  19. dispatch_queue_t _listenQueue;
  20. dispatch_queue_t _callbackQueue;
  21. GCDAsyncSocket* _socket;
  22. NSMutableArray* _connectedListenSockets;
  23. NSMutableArray* _connectedCallbackSockets;
  24. NSMutableDictionary* _callbackMsgs;
  25. NSMutableArray* _requestQueue;
  26. NSString* _filterFolder;
  27. BOOL _isRunning;
  28. BOOL _isConnected;
  29. }
  30. @property (nonatomic, retain) NSString* filterFolder;
  31. + (RequestManager*)sharedInstance;
  32. - (void)askOnSocket:(NSString*)path;
  33. - (void)askForIcon:(NSString*)path;
  34. - (void)menuItemClicked:(NSDictionary*)actionDictionary;
  35. - (NSArray*)menuItemsForFiles:(NSArray*)files;
  36. - (void)start;
  37. @end