Developer Area

root/apps/iphone/my.tel/trunk/Classes/KeywordViewController.h @ 205

Revision 205, 2.0 kB (checked in by henri, 5 years ago)

Cleaned up startup procedure, simpler code.
Improved layout of location views.
Added choice of maps.

Line 
1//
2//  KeywordViewController.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 "Keyword.h"
12#import "KeywordCell.h"
13#import "KeywordEditController.h"
14
15@interface KeywordViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, KeywordEditDelegate> {
16        NSMutableDictionary *validKeywordTypes; // Localized keyword types (fn -> First Name)
17
18        NSMutableArray *keywordsArray;  // all the retrieved raw JSON data
19        NSMutableArray *uiArray;                // the data to show in a UITable
20       
21        CGFloat keywordTableHeight;             // This should change based on the amount of text
22       
23        IBOutlet UITableView *theTable;
24        IBOutlet UILabel *domainLabel;
25        IBOutlet UIBarButtonItem *buttonAdd;
26        IBOutlet UIBarButtonItem *buttonEdit;
27        IBOutlet KeywordEditController *editController;
28@private
29        NSMutableDictionary *rowsToDelete;      // Dictionary of rows to delete, with keys being the row apiId
30}
31
32- (NSDictionary *)selectRecordInSetUsingId:(NSString *)anId;
33- (void)updateUITableWithJson:(NSDictionary *)parsedJson;
34- (NSMutableDictionary *)uiItemFromJsonItem:(NSDictionary *)jsonItem;
35- (void)fillValidKeywordsDict:(NSDictionary *)parsedJson;
36- (void)getKeywords;
37- (void)storeKeyword:(NSDictionary *)aRec;      // Could be a set of primary+secondaries
38- (void)deleteKeywords:(NSDictionary *)aRec;
39- (void)getValidKeywords;
40
41@property (nonatomic, retain) NSMutableDictionary *validKeywordTypes;
42
43@property (nonatomic, retain) NSMutableArray *keywordsArray;
44@property (nonatomic, retain) NSMutableArray *uiArray;
45
46- (IBAction)addRecord:(id)sender;
47- (IBAction)editTable:(id)sender;
48- (IBAction)doneEditingTable:(id)sender;
49
50@property (nonatomic, retain) IBOutlet UITableView *theTable;
51@property (nonatomic, retain) IBOutlet UILabel *domainLabel;
52@property (nonatomic, retain) IBOutlet UIBarButtonItem *buttonAdd;
53@property (nonatomic, retain) IBOutlet UIBarButtonItem *buttonEdit;
54@property (nonatomic, retain) IBOutlet KeywordEditController *editController;
55
56@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