![]() |
eyeDrops
v2.3
A new approach to detecting eye blinks.
|
The user profile manager to read/write from XML file and manage the profiles. More...
#import <UserProfileManager.h>
Inherits NSObject.
Instance Methods | |
(void) | - changeFile: |
(NSMutableArray *) | - getProfiles |
(void) | - openXMLDocument |
(BOOL) | - saveProfiles |
(void) | - addProfile: |
(void) | - deleteProfile: |
Class Methods | |
(instancetype) | + sharedInstance: |
(instancetype) | + sharedInstance |
Protected Attributes | |
NSMutableArray * | profiles |
NSError * | handleError |
NSURL * | xmlURL |
NSXMLDocument * | xmlDoc |
BOOL | xmlOpened |
The user profile manager to read/write from XML file and manage the profiles.
This class manages the user profiles. User profiles will be read from a XML-file and then be managed by this class. Profiles can be added, deleted or manipulated. When the application will terminate, the profiles will be written to the XML file so save them for the the next usage of the app.
- (void) addProfile: | (UserProfile *) | profile |
This method adds the given profile to the maanger's list.
- (void) changeFile: | (NSString *) | fileName |
This method changes the path and filename.
- (void) deleteProfile: | (UserProfile *) | profile |
This method deletes the given profile from the manager's list.
- (NSMutableArray *) getProfiles |
Getter method for the profiles.
- (void) openXMLDocument |
Opens the set XML file.
- (BOOL) saveProfiles |
This method saves the profiles to the afore set file.
+ (instancetype) sharedInstance: | (NSString *) | fileName |
This method (initialized and) returns the shared instance of this singleton class.
|
protected |
The error object used while processing the XML file.
|
protected |
Array containing the profiles.
|
protected |
The XML file.
|
protected |
Boolean value that indicates whether the XML file is opened.
|
protected |
The URL to the XML file.