eyeDrops  v2.3
A new approach to detecting eye blinks.
UserProfileManager.h
Go to the documentation of this file.
1 
31 #import <Foundation/Foundation.h>
32 #import "UserProfile.h"
33 #import "AppDelegate.h"
34 
47 @interface UserProfileManager : NSObject {
48 
52  NSMutableArray *profiles;
53 
57  NSError *handleError;
58 
62  NSURL *xmlURL;
63 
67  NSXMLDocument *xmlDoc;
68 
72  BOOL xmlOpened;
73 }
74 
78 + (instancetype)sharedInstance:(NSString *)fileName;
79 
80 /*
81  * Thie method returns the shared instance of this singleton class.
82  */
83 + (instancetype)sharedInstance;
84 
88 - (void)changeFile:(NSString *)fileName;
89 
95 - (NSMutableArray *)getProfiles;
96 
100 - (void)openXMLDocument;
101 
105 - (BOOL)saveProfiles;
106 
110 - (void)addProfile:(UserProfile *)profile;
111 
115 - (void)deleteProfile:(UserProfile *)profile;
116 
117 @end
Header file containing the App Delegate class.
NSXMLDocument * xmlDoc
Definition: UserProfileManager.h:67
NSMutableArray * profiles
Definition: UserProfileManager.h:52
A project specific user profile.
Definition: UserProfile.h:42
void openXMLDocument()
Definition: UserProfileManager.m:109
BOOL xmlOpened
Definition: UserProfileManager.h:72
NSMutableArray * getProfiles()
Definition: UserProfileManager.m:217
The user profile manager to read/write from XML file and manage the profiles.
Definition: UserProfileManager.h:47
NSURL * xmlURL
Definition: UserProfileManager.h:62
NSError * handleError
Definition: UserProfileManager.h:57
Header file containing the user profile class.
BOOL saveProfiles()
Definition: UserProfileManager.m:224