![]() |
QC Native 1.3
the native iOS implementation of
|
00001 /* 00002 Copyright (c) 2008, 2009 Lee Barney 00003 Permission is hereby granted, free of charge, to any person obtaining a 00004 copy of this software and associated documentation files (the "Software"), 00005 to deal in the Software without restriction, including without limitation the 00006 rights to use, copy, modify, merge, publish, distribute, sublicense, 00007 and/or sell copies of the Software, and to permit persons to whom the Software 00008 is furnished to do so, subject to the following conditions: 00009 00010 The above copyright notice and this permission notice shall be 00011 included in all copies or substantial portions of the Software. 00012 00013 00014 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 00015 INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 00016 PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 00017 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 00018 CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE 00019 OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00020 00021 */ 00022 00023 #import <Foundation/Foundation.h> 00024 00025 @class QCMapper; 00026 @class NSPersistentStoreCoordinator; 00027 00028 @interface QCRequestHandler : NSOperation { 00029 NSString *command; 00030 NSMutableDictionary *parameters; 00031 NSOperationQueue *queue; 00032 QCMapper *mapper; 00033 00034 NSCondition *condition; 00035 NSPersistentStoreCoordinator *coordinator; 00036 00037 } 00038 @property(nonatomic,retain) NSString *command; 00039 @property(nonatomic,retain) NSMutableDictionary *parameters; 00040 @property(nonatomic,retain) QCMapper *mapper; 00041 @property(nonatomic, retain) NSCondition *condition; 00042 @property(nonatomic, retain) NSOperationQueue *queue; 00043 @property(nonatomic, retain) NSPersistentStoreCoordinator *coordinator; 00044 00045 - (BOOL) dispatchToValCO; 00046 - (BOOL) dispatchToBCO; 00047 - (BOOL) dispatchToVCO; 00048 - (BOOL) dispatchToECO: (NSString*)errorCommand withParameters: (NSMutableDictionary*)parameters; 00049 00050 00051 - (id) initWithCommand:(NSString*)aCommand andParameters:(NSMutableDictionary*)theParameters usingController:(QCMapper*)theAppController andCoordinator:(NSPersistentStoreCoordinator*)aCoordinator; 00052 00053 @end