#include <PrintersConf.h>
Public Member Functions | |
| PrinterEntry () | |
| ~PrinterEntry () | |
| void | setSaved () |
| void | clearSaved () |
| bool | isSaved () |
| CREATE_SET (Name, string) | |
| CREATE_SET (Default, bool) | |
| CREATE_SET (Info, string) | |
| CREATE_SET (Location, string) | |
| CREATE_SET (Uri, string) | |
| CREATE_SET (State, string) | |
| CREATE_SET (StateMessage, string) | |
| CREATE_SET (Accepting, bool) | |
| CREATE_SET (BannerStart, string) | |
| CREATE_SET (BannerEnd, string) | |
| CREATE_SET (ppd, string) | |
| void | addAllowUsers (const string u) |
| void | addDenyUsers (const string u) |
| void | addOption (const string name, const string value) |
| void | delAllowUsers (const string u) |
| void | delDenyUsers (const string u) |
| void | delOption (const string s) |
| string | getPrinter () const |
| const char * | getPrinter_str () const |
| map< string, string > & | getOptions () |
| void | dump () const |
| YCPValue | Read () const |
| bool | changePrinter (const YCPValue &value) |
| bool | newPrinter (const YCPValue &value) |
Private Attributes | |
| string | Name |
| bool | Default |
| string | Info |
| string | Location |
| string | Uri |
| string | State |
| string | StateMessage |
| bool | Accepting |
| string | BannerStart |
| string | BannerEnd |
| set< string > | AllowUsers |
| set< string > | DenyUsers |
| string | ppd |
| map< string, string > | options |
| bool | saved |
This contains one entry from the printers.conf file
|
|
Default constructor. |
|
|
Destructor. |
|
|
add* functions to add items to set/map
|
|
|
|
|
||||||||||||
|
Add or change option
|
|
|
Helper function for Write. Update printer definition in cups system. Updates printer entry (this). Saves only changed items.
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
delete user from AllowUsers
|
|
|
delete user from DenyUsers |
|
|
delete option
|
|
|
Dump values, for debugging purposes. |
|
|
Get reference to the map of the options.
|
|
|
Get printer name.
|
|
|
Get printer name.
|
|
|
|
|
|
Add new printer. Replace |
|
|
Convert PrinterEntry to YCPValue
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This value indicates if printer was saved in PrintersConf::Write. PrintersConf::Write clears saved for all printers. PrintersConf::Write sets saved for each printers it saves. Printers that do not have saved bit set were not saved and must be deleted. |
|
|
|
|
|
|
|
|
|
1.4.6