Developer Area

root/apps/iphone/my.tel/trunk/Classes/RecordEditController.h @ 601

Revision 601, 1.6 kB (checked in by henri, 5 years ago)

Support for long labels

Line 
1//
2//  RecordEditController.h
3//  My.tel
4//
5//  Created by Henri Asseily on 11/21/08.
6//  Copyright 2008 Telnic Ltd.. All rights reserved.
7//
8
9#import <UIKit/UIKit.h>
10#import <QuartzCore/QuartzCore.h>
11#import "MyTelConnect.h"
12#import "Record.h"
13#import "RecordGroupsController.h"
14
15
16@protocol RecordEditDelegate
17
18- (void)didStoreRecord:(NSDictionary *)aRec;
19- (NSString *)domain;
20
21@end
22
23@interface RecordEditController : UIViewController
24<RecordGroupsDelegate, UIPickerViewDataSource, UIPickerViewDelegate, UITextFieldDelegate> {
25        IBOutlet UIPickerView *rPicker;
26        IBOutlet UITextField *rValue;
27        IBOutlet UITextField *rLabel;
28        IBOutlet UIButton *buttonPrivacy;
29        id <RecordEditDelegate> delegate;
30@private
31        NSMutableDictionary *_record;
32        NSMutableArray *sArrKey;
33        NSMutableArray *sArrVal;
34        NSMutableArray *liArrKey;
35        NSMutableArray *liArrVal;
36        NSDictionary *naptrValuePlaceholders;
37        UIResponder *currentResponder;
38        BOOL isTerminal;
39}
40
41+ (RecordEditController *)controllerWithServiceKeys:(NSDictionary *)skeysDict lihKeys:(NSDictionary *)liDict;
42- (void)setStateForTerminal:(BOOL)terminal;
43- (void)setStateForButtonPrivacy;
44- (void)slideViewForEditing:(BOOL)isEditing;
45
46- (IBAction)didClickCancel:(id)sender;
47- (IBAction)didClickSave:(id)sender;
48- (IBAction)didClickPrivacy:(id)sender;
49
50- (void)storeRecord;
51- (void)storeNTNaptrRecord;
52
53@property (nonatomic, copy) NSDictionary *record;
54@property (nonatomic, retain) IBOutlet UIPickerView *rPicker;
55@property (nonatomic, retain) IBOutlet UITextField *rValue;
56@property (nonatomic, retain) IBOutlet UITextField *rLabel;
57@property (nonatomic, retain) IBOutlet UIButton *buttonPrivacy;
58@property (retain) id <RecordEditDelegate> delegate;
59@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