QC Native 1.3
the native iOS implementation of
Objective-C/QC Base/QC Base/QCMapper.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 
00023 #import <UIKit/UIKit.h>
00024 
00025 
00026 @interface QCMapper : NSObject {
00027         NSMutableDictionary *validationMap;
00028         NSMutableDictionary *businessMap;
00029         NSMutableDictionary *viewMap;
00030         NSMutableDictionary *errorMap;
00031         NSMutableDictionary *securityMap;
00032         NSMutableDictionary *databases;
00033 }
00034 
00035 @property (nonatomic, retain) NSMutableDictionary *validationMap;
00036 @property (nonatomic, retain) NSMutableDictionary *businessMap;
00037 @property (nonatomic, retain) NSMutableDictionary *viewMap;
00038 @property (nonatomic, retain) NSMutableDictionary *errorMap;
00039 @property (nonatomic, retain) NSMutableDictionary *securityMap;
00040 @property (nonatomic, retain) NSMutableDictionary *databases;
00041 
00042 /*
00043  *      Below are a series of helper methods for mapping various types of methods to commands.
00044  *      Use these methods to create your command/action relationships in the buildMaps method.
00045  */
00046 - (void) mapCommandToValCO:(NSString*)aCommand withHandler:(Class)aHandlerClass;
00047 - (void) mapCommandToBCO:(NSString*)aCommand withHandler:(Class)aHandlerClass;
00048 - (void) mapCommandToVCO:(NSString*)aCommand withHandler:(Class)aHandlerClass;
00049 - (void) mapCommandToECO:(NSString*)aCommand withHandler:(Class)aHandlerClass;
00050 - (void) mapCommandToSCO:(NSString*)aCommand withHandler:(Class)aHandlerClass;
00051 
00052 @end
 All Classes Functions