#include <PrintersConf.h>
Public Member Functions | |
| PrintersConf () | |
| ~PrintersConf () | |
| void | dump () const |
| YCPValue | Read () |
| YCPBoolean | Write (const YCPPath &path, const YCPValue &value, const YCPValue &arg=YCPNull()) |
Private Member Functions | |
| bool | parseFile (const char *fn) |
| bool | completeEntries () |
| void | Clear () |
| bool | modifyPrinter (YCPMap printer) |
| bool | readSettings (const char *fn) |
| bool | getPrinters () |
| list< PrinterEntry >::iterator | getPrinterEntry (const string name) |
| list< PrinterEntry >::iterator | findPrinter (const string name) |
Private Attributes | |
| list< PrinterEntry > | Printers |
|
|
Default Constructor. |
|
|
Destructor. |
|
|
Erase all settings. |
|
|
Not all of the settings can be read from file printers.conf. This function reads additional settings via cups library calls.
|
|
|
Dump all printers. |
|
|
Returns printer entry by printer name. If the printer does not have an entry, returns Printers.end().
|
|
|
Returns printer entry by printer name. If the printer does not have an entry, it is created.
|
|
|
New version of get-classes that works over ipp... |
|
|
Update printer. |
|
|
Parse file printers.conf.
|
|
|
Convert PrintersConf to YCPValue |
|
|
Read printers.conf file. Build list of printers (Printers).
|
|
||||||||||||||||
|
Write printers... |
|
|
List of PrinterEntries. |
1.4.6