LOFileManager Class Reference
The File Manager is responsible for all LightsOn files.
More...
#import <LOFileManager.h>
Detailed Description
The File Manager is responsible for all LightsOn files.
e.g. configuration files and show files.
- See also:
- NSObject(LOFileManagerDelegate) in LOFileManager.h
Member Function Documentation
Get the default File manager for the application.
This is the only way that a file manager should be obtained.
- Returns:
- The current applications default file manager
- (BOOL) loadChannelManagerFromPath: |
|
(NSString *) |
thePath |
|
|
Load the channel manager configuration from a file.
The file can either be a show file, or a channel manager file
- Parameters:
-
| thePath | The path to the file to load |
- Returns:
- YES if the file was configuration was loaded
- (BOOL) loadShowFromPath: |
|
(NSString *) |
thePath |
|
|
Load the show from a file.
- Parameters:
-
| thePath | The path to the file to load |
- Returns:
- YES if the file was configuration was loaded
- (NSString *) replaceHWBridge: |
|
(NSString *) |
serial |
|
|
Called when loading a channel manager file if the required brige is not currently plugged into the system.
This method responds with the bridge to use.
Its main task is to call the delgate method of the same name so that application can decide what to do.
- Parameters:
-
| serial | The serial number of the missing bridge |
- Returns:
- A serial number of a bridge to use, or nil for a dummy
- (BOOL) saveChannelManagerAtPath: |
|
(NSString *) |
thePath |
|
|
Save the channel manager configuration file.
- Parameters:
-
| thePath | The path (including file name) where the file should be saved |
- Returns:
- YES if the files was saved
- (BOOL) saveShowAtPath: |
|
(NSString *) |
thePath |
|
|
Save the entire show as a file.
- Parameters:
-
| thePath | The path (including file name) where the file should be saved |
- Returns:
- YES if the files was saved
- (void) setDelegate: |
|
(id) |
aDelegate |
|
|
Set a new delegate object.
- Parameters:
-
| aDelegate | The object to receive all delegate messages |
- See also:
- delegate:
NSObject(LOFileManagerDelegate) in LOFileManager.h
The documentation for this class was generated from the following files: