changed git call from https to git readonly
[atutor.git] / mods / atsocial_iphone_app / InAppSettingsKit / Controllers / IASKAppSettingsViewController.h
1 //
2 //  IASKAppSettingsViewController.h
3 //  http://www.inappsettingskit.com
4 //
5 //  Copyright (c) 2009:
6 //  Luc Vandal, Edovia Inc., http://www.edovia.com
7 //  Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
8 //  All rights reserved.
9 // 
10 //  It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz, 
11 //  as the original authors of this code. You can give credit in a blog post, a tweet or on 
12 //  a info page of your app. Also, the original authors appreciate letting them know if you use this code.
13 //
14 //  This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
15 //
16
17 #import <UIKit/UIKit.h>
18
19 @class IASKSettingsReader;
20 @class IASKAppSettingsViewController;
21
22 @protocol IASKSettingsDelegate
23 - (void)settingsViewControllerDidEnd:(IASKAppSettingsViewController*)sender;
24 @end
25
26
27 @interface IASKAppSettingsViewController : UIViewController <UITextFieldDelegate, UINavigationControllerDelegate> {
28         id<IASKSettingsDelegate>  _delegate;
29     IBOutlet UITableView    *_tableView;
30     
31     NSMutableArray          *_viewList;
32     NSIndexPath             *_currentIndexPath;
33         NSIndexPath                             *_topmostRowBeforeKeyboardWasShown;
34         
35         IASKSettingsReader              *_settingsReader;
36         NSString                                *_file;
37         
38         id                      _currentFirstResponder;
39     
40     BOOL                    _showCreditsFooter;
41     BOOL                    _showDoneButton;
42 }
43
44 @property (nonatomic, assign) id delegate;
45 @property (nonatomic, retain) NSIndexPath   *currentIndexPath;
46 @property (nonatomic, retain) IASKSettingsReader *settingsReader;
47 @property (nonatomic, copy) NSString *file;
48 @property (nonatomic, retain) id currentFirstResponder;
49 @property (nonatomic, assign) BOOL showCreditsFooter;
50 @property (nonatomic, assign) BOOL showDoneButton;
51
52 - (IBAction)dismiss:(id)sender;
53
54 // subclassing: optionally override these methods to customize appearance and functionality
55 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
56 - (NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath;
57 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
58
59 @end