#### PyKDE - Python Bindings for KDE

# class KMManager

Table of contents
Modules
kdeprint Classes
All Classes

Module | kdeprint
Class | KMManager
Inherits | QObject

### enums

- PrinterOperations = {PrinterEnabling, PrinterCreation, PrinterDefault, PrinterTesting, PrinterConfigure, PrinterRemoval, PrinterAll }
- ServerOperations = {ServerRestarting, ServerConfigure, ServerAll }

### methods

- KMManager (parent = 0, name = 0)

  returns a KMManager instance

  Argument | Type | Default
  --- | --- | ---
  parent | QObject | 0
  name | char | 0

- addPrinter (p)

  returns nothing

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

- addPrinterWizard (parent = 0)

  returns (int)

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

- checkUpdatePossible ()

  returns nothing
  In versions KDE 3.1.0 and above only

- checkUpdatePossibleInternal ()

  returns nothing
  In versions KDE 3.1.0 and above only

- completePrinter (p)

  returns (bool)

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

- completePrinter (name)

  returns (bool)

  Argument | Type | Default
  --- | --- | ---
  name | QString |

- completePrinterShort (p)

  returns (bool)

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

- configureServer (parent = 0)

  returns (bool)

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

- createPluginActions (a0)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | KActionCollection |

- createPrinter (p)

  returns (bool)

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

- createSpecialPrinter (p)

  returns (bool)

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

- defaultPrinter ()

  returns (KMPrinter)

- detectLocalPrinters ()

  returns (QStringList)

- discardAllPrinters (a0)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

- driverDbCreationProgram ()

  returns (QString)

- driverDirectory ()

  returns (QString)

- enableFilter (on)

  returns nothing

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

- enablePrinter (p, on)

  returns (bool)

  Argument | Type | Default
  --- | --- | ---
  p | KMPrinter |
  on | bool |

- enablePrinter (name, state)

  returns (bool)

  Argument | Type | Default
  --- | --- | ---
  name | QString |
  state | bool |

- errorMsg ()

  returns (QString)

- findPrinter (name)

  returns (KMPrinter)

  Argument | Type | Default
  --- | --- | ---
  name | QString |

- hardDefault ()

  returns (KMPrinter)

- hasManagement ()

  returns (bool)

- invokeOptionsDialog (parent = 0)

  returns (bool)

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

- isFilterEnabled ()

  returns (bool)

- listPrinters ()

  returns nothing

- loadDbDriver (entry)

  Not Implemented

- loadDriver (p, config = 0)

  Not Implemented

- loadFileDriver (filename)

  Not Implemented

- loadPrinterDriver (p, config = 0)

  Not Implemented

- modifyPrinter (oldp, newp)

  returns (bool)

  Argument | Type | Default
  --- | --- | ---
  oldp | KMPrinter |
  newp | KMPrinter |

- notImplemented ()

  returns (bool)

- printerList (reload = 1)

  returns (QPtrList<KMPrinter>)

  Argument | Type | Default
  --- | --- | ---
  reload | bool | 1

- printerList (a0 = 1)

  returns (KPrinterList)
  In versions less than KDE 3.5.2 only

  Argument | Type | Default
  --- | --- | ---
  a0 | bool | 1

- printerListComplete (reload = 1)

  returns (QPtrList<KMPrinter>)

  Argument | Type | Default
  --- | --- | ---
  reload | bool | 1

- printerListComplete (a0 = 1)

  returns (KPrinterList)
  In versions less than KDE 3.5.2 only

  Argument | Type | Default
  --- | --- | ---
  a0 | bool | 1

- printerOperationMask ()

  returns (int)

- removePrinter (p)

  returns (bool)

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

- removePrinter (name)

  returns (bool)

  Argument | Type | Default
  --- | --- | ---
  name | QString |

- removeSpecialPrinter (p)

  returns (bool)

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

- restartServer ()

  returns (bool)

- savePrinterDriver (p, d)

  Not Implemented

- self ()

  returns (KMManager)
  static

- serverOperationMask ()

  returns (int)

- setDefaultPrinter (p)

  returns (bool)

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

- setDefaultPrinter (name)

  returns (bool)

  Argument | Type | Default
  --- | --- | ---
  name | QString |

- setErrorMsg (s)

  returns nothing

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

- setHardDefault (a0)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | KMPrinter |

- setHasManagement (on)

  returns nothing

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

- setPrinterOperationMask (m)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  m | int |

- setServerOperationMask (m)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  m | int |

- setSoftDefault (a0)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | KMPrinter |

- setUpdatePossible (a0)

  returns nothing
  In versions KDE 3.1.0 and above only

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

- softDefault ()

  returns (KMPrinter)

- startPrinter (p, on)

  returns (bool)

  Argument | Type | Default
  --- | --- | ---
  p | KMPrinter |
  on | bool |

- startPrinter (name, state)

  returns (bool)

  Argument | Type | Default
  --- | --- | ---
  name | QString |
  state | bool |

- stateInformation ()

  returns (QString)
  In versions KDE 3.1.0 and above only

- testPage ()

  returns (QString)

- testPrinter (p)

  returns (bool)

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

- uncompressFile (srcname, destname)

  returns (bool)

  Argument | Type | Default
  --- | --- | ---
  srcname | QString |
  destname | QString |

- upPrinter (p, state)

  returns (bool)

  Argument | Type | Default
  --- | --- | ---
  p | KMPrinter |
  state | bool |

- updatePossible (a0)

  returns nothing
  In versions KDE 3.1.0 and above only

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

- validateDbDriver (entry)

  Not Implemented

- validatePluginActions (a0, a1)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | KActionCollection |
  a1 | KMPrinter |