![]() |
CommandServiceManager -1.00
Phoenix engine interface
|
00001 // 00002 // SessionManager.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 "FMDatabase.h" 00011 #import "CommandRequest.h" 00012 00013 @class SessionInfo; 00014 00019 @interface SessionManager : NSObject { 00020 NSString *payloadFolderPath; 00021 NSString *DBFilePath; 00022 FMDatabase *db; 00023 } 00024 00030 + (SessionManager*)sharedManager; 00031 00038 + (SessionManager*)sharedManagerWithPayloadFolderPath:(NSString *)payloadFolderPath WithDBFolderPath:(NSString *)DBFolderPath; 00039 00045 - (SessionInfo *)createSession:(CommandRequest *)request; 00046 00052 - (BOOL)deleteSession:(uint32_t)CSID; 00053 00059 - (SessionInfo *)retrieveSession:(uint32_t)CSID; 00060 00065 - (void)persistSession:(SessionInfo *)sessionInfo; 00066 00071 - (void)updateSession:(SessionInfo *)sessionInfo; 00072 00077 - (uint32_t)generateCSID; 00078 00083 - (NSArray *)getAllOrphanedSession; 00084 00089 - (NSArray *)getAllPendingSession; 00090 00091 @property (nonatomic, retain) NSString *payloadFolderPath; 00092 @property (nonatomic, retain) NSString *DBFilePath; 00093 @property (nonatomic, retain) FMDatabase *db; 00094 00095 @end