QC Native 1.3
the native iOS implementation of
Objective-C/QC Base/QC Base/QuickConnect.h
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 
00058 #import <UIKit/UIKit.h>
00059 #import <Foundation/Foundation.h>
00060 #import "QCMapper.h"
00061 
00062 @class NSPersistentStoreCoordinator;
00063 
00081 @interface QuickConnect : NSObject {
00082         QCMapper *theMapper;
00083     NSPersistentStoreCoordinator *theCoordinator;
00084         
00085         
00086 }
00087 @property (nonatomic, retain) QCMapper *theMapper;
00088 @property (nonatomic, retain) NSPersistentStoreCoordinator *theCoordinator;
00089 
00090 /*
00091  *      parameters is an optional parameter to this method
00092  */
00098 - (QuickConnect*)init;
00104 - (QuickConnect*)initWithPersistentStoreCoodinator:(NSPersistentStoreCoordinator*)aCoordinator;
00105 
00111 - (void) handleRequest: (NSString*) aCmd withParameters:(NSMutableDictionary*) parameters;
00118 - (void) mapCommandToBCO:(NSString*)aCommand withObject:(Class)aClass;
00125 - (void) mapCommandToVCO:(NSString*)aCommand withObject:(Class)aClass;
00132 - (void) mapCommandToValCO:(NSString*)aCommand withObject:(Class)aClass;
00142 - (void) mapCommandToECO:(NSString*)aCommand withObject:(Class)aClass;
00143 - (void) mapCommandToSCO:(NSString*)aCommand withObject:(Class)aClass;
00144 
00145 
00146 @end
00147 
 All Classes Functions