Developer Area

root/apps/iphone/my.tel/trunk/Classes/RecordViewController.h @ 426

Revision 426, 2.6 kB (checked in by henri, 5 years ago)

Refactored custom navigation bars to support OS 3.0 final

Line 
1//
2//  RecordViewController.h
3//  VIP.tel
4//
5//  Created by Henri Asseily on 11/18/08.
6//  Copyright 2008 Telnic Ltd.. All rights reserved.
7//
8
9#import <UIKit/UIKit.h>
10#import "VIPConnect.h"
11#import "Record.h"
12#import "RecordCell.h"
13#import "RecordEditController.h"
14
15@interface RecordViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, RecordEditDelegate> {
16        NSMutableDictionary *skeysDict; // Localized Service Keys (voice -> Voice Call)
17        NSMutableDictionary *liDict;    // Localized Location indicators (x-home -> Home)
18       
19        NSString *apiId;
20        NSMutableArray *recordsArray;   // all the retrieved raw JSON data
21        NSMutableArray *uiArray;                // the data to show in a UITable
22       
23        CGFloat recordTableHeight;      // Record table height: 60 if not editing, 95 if editing
24       
25        IBOutlet UITableView *theTable;
26        IBOutlet UIBarButtonItem *buttonAdd;
27        IBOutlet UIBarButtonItem *buttonEdit;
28        IBOutlet UIBarButtonItem *buttonDone;
29        IBOutlet UINavigationBar *navBar;
30        IBOutlet RecordEditController *editController;
31@private
32        UINavigationController *editNavController;      // Navigation controller for the editing
33        NSUInteger buttonEditCount;
34}
35
36- (NSDictionary *)selectRecordInSetUsingId:(NSString *)anId;
37- (void)updateEditButtonAndDoNothing:(NSDictionary *)parsedJson;
38- (void)updateUITableWithJson:(NSDictionary *)parsedJson;
39- (NSMutableDictionary *)uiItemFromJsonItem:(NSDictionary *)jsonItem;
40- (void)fillServicesDict:(NSDictionary *)parsedJson;
41- (void)fillLocationsDict:(NSDictionary *)parsedJson;
42
43- (void)getRecords;
44- (void)storeRecord:(NSDictionary *)aRec;
45- (void)deleteRecords:(NSDictionary *)aRec;
46- (void)orderRecords;
47- (void)enableRecords;
48- (void)disableRecords;
49- (void)getServiceKeys:(BOOL)fromNetwork;
50- (void)getLocations:(BOOL)fromNetwork;
51- (void)displayEditingForRecord:(NSDictionary *)aRec;
52
53@property (nonatomic, retain) NSMutableDictionary *skeysDict;
54@property (nonatomic, retain) NSMutableDictionary *liDict;
55
56@property (nonatomic, retain) NSString *apiId;
57@property (nonatomic, retain) NSMutableArray *recordsArray;
58@property (nonatomic, retain) NSMutableArray *uiArray;
59
60- (IBAction)switchedEnabling:(id)sender;
61- (IBAction)addRecord:(id)sender;
62- (IBAction)editTable:(id)sender;
63- (IBAction)doneEditingTable:(id)sender;
64
65@property (nonatomic, retain) IBOutlet UITableView *theTable;
66@property (nonatomic, retain) IBOutlet UIBarButtonItem *buttonAdd;
67@property (nonatomic, retain) IBOutlet UIBarButtonItem *buttonEdit;
68@property (nonatomic, retain) IBOutlet UIBarButtonItem *buttonDone;
69@property (nonatomic, retain) IBOutlet UINavigationBar *navBar;
70@property (nonatomic, retain) IBOutlet RecordEditController *editController;
71
72@end
Note: See TracBrowser for help on using the browser.
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us