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