#### PyKDE - Python Bindings for KDE

# class KIO.SlaveBase

Table of contents
Modules
kio Classes
All Classes

Module | kio
Class | KIO.SlaveBase
Inherits |

### enums

- MessageBoxType = {QuestionYesNo, WarningYesNo, WarningContinueCancel, WarningYesNoCancel, Information, SSLMessageBox }

### methods

- SlaveBase (protocol, pool_socket, app_socket)

  returns a SlaveBase instance

  Argument | Type | Default
  --- | --- | ---
  protocol | QCString |
  pool_socket | QCString |
  app_socket | QCString |

- cacheAuthentication (info)

  returns (bool)
  In versions KDE 3.1.0 and above only

  Argument | Type | Default
  --- | --- | ---
  info | KIO.AuthInfo |

- cacheAuthentication (a0)

  returns (bool)
  In versions less than KDE 3.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | KIO.AuthInfo |

- canResume (offset)

  returns (bool)

  Argument | Type | Default
  --- | --- | ---
  offset | KIO.filesize_t |

- canResume ()

  returns nothing

- checkCachedAuthentication (info)

  returns (bool)
  In versions KDE 3.1.0 and above only

  Argument | Type | Default
  --- | --- | ---
  info | KIO.AuthInfo |

- checkCachedAuthentication (a0)

  returns (bool)
  In versions less than KDE 3.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | KIO.AuthInfo |

- chmod (url, permissions)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  url | KURL |
  permissions | int |

- closeConnection ()

  returns nothing

- config ()

  returns (KConfigBase)

- connectSlave (path)

  returns nothing
  In versions KDE 3.1.0 and above only

  Argument | Type | Default
  --- | --- | ---
  path | QString |

- connectSlave (a0)

  returns nothing
  In versions less than KDE 3.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QString |

- connectTimeout ()

  returns (int)

- connected ()

  returns nothing

- connection ()

  returns (KIO.Connection)

- copy (src, dest, permissions, overwrite)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  src | KURL |
  dest | KURL |
  permissions | int |
  overwrite | bool |

- createAuthCacheKey (url)

  returns (QString)
  In versions KDE 3.1.0 and above only

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- createAuthCacheKey (a0)

  returns (QString)
  In versions less than KDE 3.1.0 only

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

- data (data)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  data | QByteArray |

- dataReq ()

  returns nothing

- dcopClient ()

  returns (DCOPClient)
  In versions KDE 3.1.0 and above only

- delCachedAuthentication (key)

  returns nothing
  In versions KDE 3.1.0 and above only

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

- delCachedAuthentication (a0)

  returns nothing
  In versions less than KDE 3.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QString |

- del_ (url, isfile)

  returns nothing
  Renamed: was ' del ' in C++

  Argument | Type | Default
  --- | --- | ---
  url | KURL |
  isfile | bool |

- disconnectSlave ()

  returns nothing
  In versions KDE 3.1.0 and above only

- disconnectSlave ()

  returns nothing
  In versions less than KDE 3.1.0 only

- dispatch ()

  returns (bool)

- dispatch (command, data)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  command | int |
  data | QByteArray |

- dispatchLoop ()

  returns nothing

- dropNetwork (host = QString .null)

  returns nothing
  In versions KDE 3.1.0 and above only

  Argument | Type | Default
  --- | --- | ---
  host | QString | QString .null

- dropNetwork (a0 = QString .null)

  returns nothing
  In versions less than KDE 3.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QString | QString .null

- error (_errid, _text)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  _errid | int |
  _text | QString |

- errorPage ()

  returns nothing

- exit ()

  returns nothing
  In versions KDE 3.1.0 and above only

- finished ()

  returns nothing

- get (url)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- hasMetaData (key)

  returns (bool)

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

- infoMessage (msg)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  msg | QString |

- listDir (url)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- listEntries (_entry)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  _entry | KIO.UDSEntryList |

- listEntry (_entry, ready)

  returns nothing
  In versions KDE 3.1.0 and above only

  Argument | Type | Default
  --- | --- | ---
  _entry | KIO.UDSEntry |
  ready | bool |

- listEntry (a0, a1)

  returns nothing
  In versions less than KDE 3.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | KIO.UDSEntry |
  a1 | bool |

- messageBox (type, text, caption = QString .null, buttonYes = QString .null, buttonNo = QString .null)

  returns (int)

  Argument | Type | Default
  --- | --- | ---
  type | KIO.SlaveBase.MessageBoxType |
  text | QString |
  caption | QString | QString .null
  buttonYes | QString | QString .null
  buttonNo | QString | QString .null

- messageBox (text, type, caption = QString .null, buttonYes = QString .null, buttonNo = QString .null, dontAskAgainName = QString .null)

  returns (int)
  In versions KDE 3.3.0 and above only

  Argument | Type | Default
  --- | --- | ---
  text | QString |
  type | KIO.SlaveBase.MessageBoxType |
  caption | QString | QString .null
  buttonYes | QString | QString .null
  buttonNo | QString | QString .null
  dontAskAgainName | QString | QString .null

- metaData (key)

  returns (QString)

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

- mimeType (_type)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  _type | QString |

- mimetype (url)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- mkdir (url, permissions)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  url | KURL |
  permissions | int |

- multiGet (data)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  data | QByteArray |

- multipleAuthCaching ()

  returns (bool)
  In versions KDE 3.1.0 and above only

- multipleAuthCaching ()

  returns (bool)
  In versions less than KDE 3.1.0 only

- needSubURLData ()

  returns nothing

- openConnection ()

  returns nothing

- openPassDlg (info, errorMsg)

  returns (bool)
  In versions KDE 3.1.0 and above only

  Argument | Type | Default
  --- | --- | ---
  info | KIO.AuthInfo |
  errorMsg | QString |

- openPassDlg (info)

  returns (bool)
  In versions KDE 3.1.0 and above only

  Argument | Type | Default
  --- | --- | ---
  info | KIO.AuthInfo |

- openPassDlg (a0)

  returns (bool)
  In versions less than KDE 3.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | KIO.AuthInfo |

- pingCacheDaemon ()

  returns (bool)
  In versions KDE 3.1.0 and above only

- pingCacheDaemon ()

  returns (bool)
  In versions less than KDE 3.1.0 only

- processedPercent (percent)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  percent | float |

- processedSize (_bytes)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  _bytes | KIO.filesize_t |

- proxyConnectTimeout ()

  returns (int)

- put (url, permissions, overwrite, resume)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  url | KURL |
  permissions | int |
  overwrite | bool |
  resume | bool |

- readData (buffer)

  returns (int)

  Argument | Type | Default
  --- | --- | ---
  buffer | QByteArray |

- readTimeout ()

  returns (int)

- redirection (_url)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  _url | KURL |

- remoteEncoding ()

  returns (KRemoteEncoding)
  In versions KDE 3.3.0 and above only

- rename (src, dest, overwrite)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  src | KURL |
  dest | KURL |
  overwrite | bool |

- reparseConfiguration ()

  returns nothing

- requestNetwork (host = QString .null)

  returns (bool)
  In versions KDE 3.1.0 and above only

  Argument | Type | Default
  --- | --- | ---
  host | QString | QString .null

- requestNetwork (a0 = QString .null)

  returns (bool)
  In versions less than KDE 3.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QString | QString .null

- responseTimeout ()

  returns (int)

- sendAuthenticationKey (gKey, key, keep)

  returns nothing
  In versions KDE 3.1.0 and above only

  Argument | Type | Default
  --- | --- | ---
  gKey | QCString |
  key | QCString |
  keep | bool |

- sendAuthenticationKey (a0, a1, a2)

  returns nothing
  In versions less than KDE 3.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QCString |
  a1 | QCString |
  a2 | bool |

- sendMetaData ()

  returns nothing
  In versions KDE 3.1.0 and above only

- sendMetaData ()

  returns nothing
  In versions less than KDE 3.1.0 only

- setConnection (connection)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  connection | KIO.Connection |

- setHost (host, port, user, pass)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  host | QString |
  port | int |
  user | QString |
  pass | QString |

- setKillFlag ()

  returns nothing
  In versions KDE 3.1.0 and above only

- setMetaData (key, value)

  returns nothing

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

- setMultipleAuthCaching (a0)

  returns nothing
  In versions KDE 3.1.0 and above only

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

- setMultipleAuthCaching (a0)

  returns nothing
  In versions less than KDE 3.1.0 only

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

- setSubURL (url)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- setTimeoutSpecialCommand (timeout, data = QByteArray ())

  returns nothing
  In versions KDE 3.1.0 and above only

  Argument | Type | Default
  --- | --- | ---
  timeout | int |
  data | QByteArray | QByteArray ()

- sigpipe_handler (a0)

  returns nothing
  static

  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- sigsegv_handler (a0)

  returns nothing
  static

  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- slaveStatus (host, connected)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  host | QString |
  connected | bool |

- slave_status ()

  returns nothing

- special (data)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  data | QByteArray |

- speed (_bytes_per_second)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  _bytes_per_second | ulong |

- stat (url)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- statEntry (_entry)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  _entry | KIO.UDSEntry |

- symlink (target, dest, overwrite)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  target | QString |
  dest | KURL |
  overwrite | bool |

- totalSize (_bytes)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  _bytes | KIO.filesize_t |

- waitForAnswer (expected1, expected2, data)

  returns (int) pCmd (int)
  In versions KDE 3.1.0 and above only

  Argument | Type | Default
  --- | --- | ---
  expected1 | int |
  expected2 | int |
  data | QByteArray |

- waitForAnswer (a0, a1, a2)

  returns (int) a3 (int)
  In versions less than KDE 3.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | int |
  a1 | int |
  a2 | QByteArray |

- warning (msg)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  msg | QString |

- wasKilled ()

  returns (bool)
  In versions KDE 3.1.0 and above only

### variables

- variables

  Variable | Type
  --- | ---
  mIncomingMetaData | KIO::MetaData
  mOutgoingMetaData | KIO::MetaData
  mProtocol | QCString
  m_pConnection | KIO::Connection*