CommandServiceManager -1.00
Phoenix engine interface
Classes/Engine/CommandExecutor.h
00001 //
00002 //  CommandExecutor.h
00003 //  CommandServiceManager
00004 //
00005 //  Created by Pichaya Srifar on 7/29/11.
00006 //  Copyright 2011 Vervata. All rights reserved.
00007 //
00008 
00009 #import <Foundation/Foundation.h>
00010 #import "TransportDirectiveEnum.h"
00011 #import "ASIProgressDelegate.h"
00012 #import "ASIHTTPRequestDelegate.h"
00013 
00014 @class Request, NewRequest, ResumeRequest, CommandServiceManager, SessionManager, ASIHTTPRequest;
00015 
00019 @interface CommandExecutor : NSObject <ASIProgressDelegate, ASIHTTPRequestDelegate> {
00020         BOOL isIdle;
00021         BOOL isThreadCreated;
00022         BOOL stopFlag;
00023         Request *request;
00024         CommandServiceManager *CSM;
00025         SessionManager *SSM;
00026         ASIHTTPRequest *httpRequest;
00027 }
00028 
00034 + (CommandExecutor*)sharedManager;
00035 
00042 + (CommandExecutor*)sharedManagerWithCSM:(CommandServiceManager *)csm withSSM:(SessionManager *)ssm;
00043 
00047 - (void)start;
00048 
00053 - (void)executeNewRequest:(NewRequest *)newRequest;
00054 
00058 - (void)executeResumeRequest:(ResumeRequest *)resumeRequest;
00059 
00064 - (void)cancelRunningRequest:(uint32_t)CSID;
00065 
00066 @property (nonatomic, retain) Request *request;
00067 @property (nonatomic, retain) ASIHTTPRequest *httpRequest;
00068 
00069 @property (nonatomic, assign) CommandServiceManager *CSM; // weak reference
00070 @property (nonatomic, assign) SessionManager *SSM;
00071 @property (nonatomic, assign) BOOL isIdle;
00072 @property (nonatomic, assign) BOOL isThreadCreated;
00073 @property (nonatomic, assign) BOOL stopFlag;
00074 
00075 @end
 All Data Structures Functions Properties