KMPrinter Class Reference
Inheritance diagram for KMPrinter:

Detailed Description
Definition at line 46 of file kmprinter.h.
Public Types | |
| enum | PrinterType { Printer = 0x01, Class = 0x02, Implicit = 0x04, Virtual = 0x08, Remote = 0x10, Invalid = 0x20, Special = 0x40 } |
| enum | PrinterState { Idle = 0x01, Stopped = 0x02, Processing = 0x03, Unknown = 0x04, Rejecting = 0x08, StateMask = 0x07 } |
| enum | PrinterCap { CapBW = 0x0001, CapColor = 0x0002, CapDuplex = 0x0004, CapStaple = 0x0008, CapCopies = 0x0010, CapCollate = 0x0020, CapPunch = 0x0040, CapCover = 0x0080, CapBind = 0x0100, CapSort = 0x0200, CapSmall = 0x0400, CapMedium = 0x0800, CapLarge = 0x1000, CapVariable = 0x2000 } |
Public Member Functions | |
| KMPrinter () | |
| KMPrinter (const KMPrinter &p) | |
| ~KMPrinter () | |
| void | copy (const KMPrinter &p) |
| const QString & | name () const |
| void | setName (const QString &s) |
| const QString & | printerName () const |
| void | setPrinterName (const QString &s) |
| const QString & | instanceName () const |
| void | setInstanceName (const QString &s) |
| int | type () const |
| void | setType (int t) |
| void | addType (int t) |
| PrinterState | state (bool complete=false) const |
| QString | stateString () const |
| void | setState (PrinterState s) |
| bool | acceptJobs () const |
| void | setAcceptJobs (bool on) |
| const QString & | device () const |
| QString | deviceProtocol () const |
| void | setDevice (const QString &d) |
| const QStringList & | members () const |
| void | setMembers (const QStringList &l) |
| void | addMember (const QString &s) |
| const QString & | description () const |
| void | setDescription (const QString &s) |
| const QString & | location () const |
| void | setLocation (const QString &s) |
| const KURL & | uri () const |
| void | setUri (const KURL &u) |
| const QString & | manufacturer () const |
| void | setManufacturer (const QString &s) |
| const QString & | model () const |
| void | setModel (const QString &s) |
| const QString & | driverInfo () const |
| void | setDriverInfo (const QString &s) |
| int | printerCap () const |
| void | setPrinterCap (int c) |
| void | addPrinterCap (int c) |
| bool | isClass (bool useImplicit=true) const |
| bool | isImplicit () const |
| bool | isPrinter () const |
| bool | isRemote () const |
| bool | isLocal () const |
| bool | isVirtual () const |
| bool | isValid () const |
| bool | isSpecial () const |
| KMDBEntry * | dbEntry () const |
| void | setDbEntry (KMDBEntry *e) |
| QString | pixmap () |
| void | setPixmap (const QString &s) |
| bool | isHardDefault () const |
| void | setHardDefault (bool on) |
| bool | isSoftDefault () const |
| void | setSoftDefault (bool on) |
| bool | ownSoftDefault () const |
| void | setOwnSoftDefault (bool on) |
| const QString & | option (const QString &key) const |
| bool | hasOption (const QString &key) const |
| void | setOption (const QString &key, const QString &value) |
| void | removeOption (const QString &key) |
| QMap< QString, QString > | options () const |
| void | setOptions (const QMap< QString, QString > &opts) |
| DrMain * | driver () const |
| void | setDriver (DrMain *) |
| DrMain * | takeDriver () |
| bool | autoConfigure (KPrinter *prt, QWidget *parent=0) |
| const QString & | defaultOption (const QString &key) const |
| void | setDefaultOption (const QString &key, const QString &value) |
| QMap< QString, QString > | defaultOptions () const |
| void | setDefaultOptions (const QMap< QString, QString > &opts) |
| const QString & | editedOption (const QString &key) const |
| void | setEditedOption (const QString &key, const QString &value) |
| QMap< QString, QString > | editedOptions () const |
| void | setEditedOptions (const QMap< QString, QString > &opts) |
| bool | isEdited () const |
| void | setEdited (bool on) |
Static Public Member Functions | |
| static int | compare (KMPrinter *p1, KMPrinter *p2) |
Protected Attributes | |
| QString | m_name |
| QString | m_printername |
| QString | m_instancename |
| int | m_type |
| PrinterState | m_state |
| QString | m_device |
| QStringList | m_members |
| QString | m_description |
| QString | m_location |
| KURL | m_uri |
| QString | m_manufacturer |
| QString | m_model |
| QString | m_driverinfo |
| KMDBEntry * | m_dbentry |
| DrMain * | m_driver |
| QString | m_pixmap |
| bool | m_harddefault |
| bool | m_softdefault |
| bool | m_ownsoftdefault |
| QMap< QString, QString > | m_options |
| QMap< QString, QString > | m_defaultoptions |
| QMap< QString, QString > | m_editedoptions |
| bool | m_isedited |
| int | m_printercap |
Member Data Documentation
|
|
Represent the device as a string, to provide native support for exotic devices. Conversion to URL is done only when really needed Definition at line 189 of file kmprinter.h. |
The documentation for this class was generated from the following files:

