A class representing a configuration with various properties and methods to manipulate them. More...
#include <Config.h>
Instance Methods | |
(instancetype) | - initWithCfgContent: |
cfgContent is data received from printer or data previously saved to file and reloaded. | |
(instancetype) | - init |
Initializes a new instance with default values. | |
(NSString *) | - description |
The configuration content sent/received from printer. | |
(NSInteger) | - getNumber |
Gets the number associated with the configuration. | |
(void) | - setNumber: |
Sets the number associated with the configuration. | |
(NSString *) | - getModel |
Gets the model associated with the configuration. | |
(void) | - setModel: |
Sets the model associated with the configuration. | |
(NSString *) | - getName |
Gets the name associated with the configuration. | |
(void) | - setName: |
Sets the name associated with the configuration. | |
(NSString *) | - getProgramFile |
Gets the program file associated with the configuration. | |
(void) | - setProgramFile: |
Sets the program file associated with the configuration. | |
(NSString *) | - getData |
Gets the data associated with the configuration. | |
(void) | - setData: |
Sets the data associated with the configuration. | |
A class representing a configuration with various properties and methods to manipulate them.
- (NSString *) description |
The configuration content sent/received from printer.
- (NSString *) getData |
Gets the data associated with the configuration.
The printer configuration values. These should not be modified.
These values should not be modified and should only be read, stored for backup purposes, and redownloaded to printer.
- (NSString *) getModel |
Gets the model associated with the configuration.
The Model of the printer configuration is valid for.
The configuration can only be downloaded to the printers that match the model.
- (NSString *) getName |
Gets the name associated with the configuration.
The configuration name. This property can be left empty if naming is not desired.
The property can be used to give the configuration a more descriptive name. e.g "ShipLabel"
Note that name should be kept short to prevent truncation by printer.
- (NSInteger) getNumber |
Gets the number associated with the configuration.
Configuration number. 0-8 valid. 0 is factory configuration. 1-8 are user stored configurations.
This number refers to the configuration number stored in the printer memory.
- (NSString *) getProgramFile |
Gets the program file associated with the configuration.
The printer program file that configuration can be downloaded to.
If left empty, printer will not prevent downloading configuration to different Program File.
Leave this with value read from printer if you want to make sure configuration is only applied to printers with matching Program File.
- (instancetype) init |
Initializes a new instance with default values.
- (instancetype) initWithCfgContent: | (NSString *) | cfgContent |
cfgContent is data received from printer or data previously saved to file and reloaded.
cfgContent | The content of the configuration. |
- (void) setData: | (NSString *) | strData |
Sets the data associated with the configuration.
The printer configuration values. These should not be modified.
These values should not be modified and should only be read, stored for backup purposes, and redownloaded to printer.
strData | The data to set. |
- (void) setModel: | (NSString *) | strModel |
Sets the model associated with the configuration.
The Model of the printer configuration is valid for.
The configuration can only be downloaded to the printers that match the model.
strModel | The model to set. |
- (void) setName: | (NSString *) | strName |
Sets the name associated with the configuration.
The configuration name. This property can be left empty if naming is not desired.
The property can be used to give the configuration a more descriptive name. e.g "ShipLabel"
Note that name should be kept short to prevent truncation by printer.
strName | The name to set. |
- (void) setNumber: | (int) | iNumber |
Sets the number associated with the configuration.
Configuration number. 0-8 valid. 0 is factory configuration. 1-8 are user stored configurations.
This number refers to the configuration number stored in the printer memory.
iNumber | The number to set. |
- (void) setProgramFile: | (NSString *) | strProgramFile |
Sets the program file associated with the configuration.
The printer program file that configuration can be downloaded to.
If left empty, printer will not prevent downloading configuration to different Program File.
Leave this with value read from printer if you want to make sure configuration is only applied to printers with matching Program File.
strProgramFile | The program file to set. |