Developer Area

root/apps/iphone/my.tel/trunk/Classes/DomainViewController.h @ 789

Revision 785, 2.9 kB (checked in by henri, 3 years ago)

Rearranged preloading of data to prioritize important info and accelerate view loading.
Also needed to work around iOS bug which slows everything down when more than 5 URL connections are initiated in parallel.

Line 
1//
2//  DomainViewController.h
3//  My.tel
4//
5//  Created by Henri Asseily on 10/12/09.
6//  Copyright 2009 Telnic Ltd. All rights reserved.
7//
8//      Controller to manage a domain
9
10#import <UIKit/UIKit.h>
11#import "MyTelConnect.h"
12#import "AlertRenameView.h"
13#import "HATextViewEditController.h"
14#import "LocationCell.h"
15
16#import "RecordViewController.h"
17#import "KeywordViewController.h"
18#import "LocationViewController.h"
19#import "ProfileViewController.h"
20#import "GroupsViewController.h"
21
22enum kKDomainTableViewAlerts {
23        kKDomainTableViewAlertAdd = 0,
24        kKDomainTableViewAlertDelete
25};
26
27enum kKDomainTableViewSections {                // these sections are remapped dynamically in the code
28        kKDomainTableViewSectionTitle = 0,      // DDS
29        kKDomainTableViewSectionProfile,        // Active profile picture and header
30        kKDomainTableViewSectionInfo,           // Contacts, Keywords, Location, Privacy Groups
31        kKDomainTableViewSectionFolders,        // Folders
32        kKDomainTableViewSectionsCount,         // Keep this last to get the count of sections
33        kKDomainTableViewSectionAddFolder,      // Button to add a folder
34};
35
36@interface DomainViewController : UITableViewController <UITableViewDelegate,
37UITableViewDataSource,
38UIAlertViewDelegate,
39HATextViewEditDelegate,
40TelControllerDelegate> {
41@public
42        NSString *domain;
43        NSString *ddsTitle;
44        NSMutableArray *subdomainsArray;        // raw JSON data used as datasource for folders section
45        NSDictionary *activeProfile;
46        RecordViewController *recordVC;
47        KeywordViewController *keywordVC;
48        LocationViewController *locationVC;
49        ProfileViewController *profileVC;
50        GroupsViewController *groupVC;
51        ProfileRecordsViewController *prVC;
52@protected
53        UITableViewCell *activeProfileCell;
54        LocationCell *locCell;
55        BOOL shouldLoadData;
56}
57
58+ (DomainViewController *)controllerForDomain:(NSString *)aDomain;
59
60- (void)updateFoldersSectionWithJson:(NSDictionary *)parsedJson;
61- (void)updateDisplayStringWithJson:(NSDictionary *)parsedJson;
62
63- (void)getSubFolderList;
64- (void)storeFolder:(NSString *)aFolderName;
65- (void)renameFolder:(NSDictionary *)aSub withString:(NSString *)newFolderName;
66- (void)deleteFolder:(NSDictionary *)aSub atIndex:(NSIndexPath *)indexPath;
67- (void)getDisplayString;
68- (void)setDisplayString:(NSString *)aDisplayString;
69- (void)setLocalLanguage:(NSString *)aLanguage;
70- (void)refreshActiveProfile;
71
72@property (nonatomic, copy) NSString *domain;
73@property (nonatomic, copy) NSString *ddsTitle;
74@property (nonatomic, retain) NSMutableArray *subdomainsArray;
75@property (nonatomic, retain) NSDictionary *activeProfile;
76@property (nonatomic, retain) UITableViewCell *activeProfileCell;
77@property (nonatomic, retain) RecordViewController *recordVC;
78@property (nonatomic, retain) KeywordViewController *keywordVC;
79@property (nonatomic, retain) LocationViewController *locationVC;
80@property (nonatomic, retain) ProfileViewController *profileVC;
81@property (nonatomic, retain) GroupsViewController *groupVC;
82@property (nonatomic, retain) ProfileRecordsViewController *prVC;
83@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