eyeDrops  v2.3
A new approach to detecting eye blinks.
Instance Methods | Class Methods | Protected Attributes | List of all members
UserProfileManager Class Reference

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
 

Detailed Description

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.

Author
Benjamin Thiemann
Date
2017/01/17

Method Documentation

◆ addProfile:()

- (void) addProfile: (UserProfile *)  profile

This method adds the given profile to the maanger's list.

◆ changeFile:()

- (void) changeFile: (NSString *)  fileName

This method changes the path and filename.

◆ deleteProfile:()

- (void) deleteProfile: (UserProfile *)  profile

This method deletes the given profile from the manager's list.

◆ getProfiles()

- (NSMutableArray *) getProfiles

Getter method for the profiles.

Returns
An array with the profiles.

◆ openXMLDocument()

- (void) openXMLDocument

Opens the set XML file.

◆ saveProfiles()

- (BOOL) saveProfiles

This method saves the profiles to the afore set file.

◆ sharedInstance:()

+ (instancetype) sharedInstance: (NSString *)  fileName

This method (initialized and) returns the shared instance of this singleton class.

Member Data Documentation

◆ handleError

- (NSError*) handleError
protected

The error object used while processing the XML file.

◆ profiles

- (NSMutableArray*) profiles
protected

Array containing the profiles.

◆ xmlDoc

- (NSXMLDocument*) xmlDoc
protected

The XML file.

◆ xmlOpened

- (BOOL) xmlOpened
protected

Boolean value that indicates whether the XML file is opened.

◆ xmlURL

- (NSURL*) xmlURL
protected

The URL to the XML file.


The documentation for this class was generated from the following files: