#### PyKDE - Python Bindings for KDE

# class KMPrinter

Table of contents
Modules
kdeprint Classes
All Classes

Module | kdeprint
Class | KMPrinter
Inherits | KMObject

### enums

- PrinterCap = {CapBW, CapColor, CapDuplex, CapStaple, CapCopies, CapCollate, CapPunch, CapCover, CapBind, CapSort, CapSmall, CapMedium, CapLarge, CapVariable }
- PrinterState = {Idle, Stopped, Processing, Unknown, Rejecting, StateMask }
- PrinterType = {Printer, Class, Implicit, Virtual, Remote, Invalid, Special }

### methods

- KMPrinter ()

  returns a KMPrinter instance

- KMPrinter (p)

  returns a KMPrinter instance

  Argument | Type | Default
  --- | --- | ---
  p | KMPrinter |

- acceptJobs ()

  returns (bool)

- addMember (s)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  s | QString |

- addPrinterCap (c)

  returns nothing
  In versions KDE 3.2.0 and above only

  Argument | Type | Default
  --- | --- | ---
  c | int |

- addType (t)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  t | int |

- autoConfigure (prt, parent = 0)

  returns (bool)

  Argument | Type | Default
  --- | --- | ---
  prt | KPrinter |
  parent | QWidget | 0

- compare (p1, p2)

  returns (int)
  static

  Argument | Type | Default
  --- | --- | ---
  p1 | KMPrinter |
  p2 | KMPrinter |

- copy (p)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  p | KMPrinter |

- dbEntry ()

  Not Implemented

- defaultOption (key)

  returns (QString)

  Argument | Type | Default
  --- | --- | ---
  key | QString |

- defaultOptions ()

  returns (QMap<QString,QString>)

- description ()

  returns (QString)

- device ()

  returns (QString)
  In versions KDE 3.2.0 and above only

- device ()

  returns (KURL)
  In versions less than KDE 3.2.0 only

- deviceProtocol ()

  returns (QString)
  In versions KDE 3.2.0 and above only

- driver ()

  Not Implemented

- driverInfo ()

  returns (QString)

- editedOption (key)

  returns (QString)

  Argument | Type | Default
  --- | --- | ---
  key | QString |

- editedOptions ()

  returns (QMap<QString,QString>)

- hasOption (key)

  returns (bool)

  Argument | Type | Default
  --- | --- | ---
  key | QString |

- instanceName ()

  returns (QString)

- isClass (useImplicit = 1)

  returns (bool)

  Argument | Type | Default
  --- | --- | ---
  useImplicit | bool | 1

- isEdited ()

  returns (bool)

- isHardDefault ()

  returns (bool)

- isImplicit ()

  returns (bool)

- isLocal ()

  returns (bool)

- isPrinter ()

  returns (bool)

- isRemote ()

  returns (bool)

- isSoftDefault ()

  returns (bool)

- isSpecial ()

  returns (bool)

- isValid ()

  returns (bool)

- isVirtual ()

  returns (bool)

- location ()

  returns (QString)

- manufacturer ()

  returns (QString)

- members ()

  returns (QStringList)

- model ()

  returns (QString)

- name ()

  returns (QString)

- option (key)

  returns (QString)

  Argument | Type | Default
  --- | --- | ---
  key | QString |

- options ()

  returns (QMap<QString,QString>)

- ownSoftDefault ()

  returns (bool)

- pixmap ()

  returns (QString)

- printerCap ()

  returns (int)
  In versions KDE 3.2.0 and above only

- printerName ()

  returns (QString)

- removeOption (key)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  key | QString |

- setAcceptJobs (on)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  on | bool |

- setDbEntry (e)

  Not Implemented

- setDefaultOption (key, value)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  key | QString |
  value | QString |

- setDefaultOptions (opts)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  opts | QMap<QString,QString> |

- setDescription (s)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  s | QString |

- setDevice (d)

  returns nothing
  In versions KDE 3.2.0 and above only

  Argument | Type | Default
  --- | --- | ---
  d | QString |

- setDevice (a0)

  returns nothing
  In versions less than KDE 3.2.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | KURL |

- setDriver (a0)

  Not Implemented

- setDriverInfo (s)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  s | QString |

- setEdited (on)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  on | bool |

- setEditedOption (key, value)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  key | QString |
  value | QString |

- setEditedOptions (opts)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  opts | QMap<QString,QString> |

- setHardDefault (on)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  on | bool |

- setInstanceName (s)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  s | QString |

- setLocation (s)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  s | QString |

- setManufacturer (s)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  s | QString |

- setMembers (l)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  l | QStringList |

- setModel (s)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  s | QString |

- setName (s)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  s | QString |

- setOption (key, value)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  key | QString |
  value | QString |

- setOptions (opts)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  opts | QMap<QString,QString> |

- setOwnSoftDefault (on)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  on | bool |

- setPixmap (s)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  s | QString |

- setPrinterCap (c)

  returns nothing
  In versions KDE 3.2.0 and above only

  Argument | Type | Default
  --- | --- | ---
  c | int |

- setPrinterName (s)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  s | QString |

- setSoftDefault (on)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  on | bool |

- setState (s)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  s | KMPrinter.PrinterState |

- setType (t)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  t | int |

- setUri (u)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  u | KURL |

- state (complete = 0)

  returns (KMPrinter.PrinterState)

  Argument | Type | Default
  --- | --- | ---
  complete | bool | 0

- stateString ()

  returns (QString)

- takeDriver ()

  Not Implemented

- type ()

  returns (int)

- uri ()

  returns (KURL)