#### PyKDE - Python Bindings for KDE

# class _TDEIO.SlaveBase |
Table of contents
Modules
tdeio Classes
All Classes

Module | tdeio
Class | _TDEIO.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 | TQCString |
  pool_socket | TQCString |
  app_socket | TQCString |

- allMetaData ()

  returns (_TDEIO.MetaData)
  In versions KDE 3.5.2 and above only

- cacheAuthentication (info)

  returns (bool)
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  info | _TDEIO.AuthInfo |

- cacheAuthentication (a0)

  returns (bool)
  In versions less than KDE 3.1.0 only
  Argument | Type | Default
  --- | --- | ---
  a0 | _TDEIO.AuthInfo |

- canResume (offset)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  offset | _TDEIO.filesize_t |

- canResume ()

  returns nothing

- checkCachedAuthentication (info)

  returns (bool)
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  info | _TDEIO.AuthInfo |

- checkCachedAuthentication (a0)

  returns (bool)
  In versions less than KDE 3.1.0 only
  Argument | Type | Default
  --- | --- | ---
  a0 | _TDEIO.AuthInfo |

- chmod (url, permissions)

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

- closeConnection ()

  returns nothing

- config ()

  returns (TDEConfigBase)

- connectSlave (path)

  returns nothing
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  path | TQString |

- connectSlave (a0)

  returns nothing
  In versions less than KDE 3.1.0 only
  Argument | Type | Default
  --- | --- | ---
  a0 | TQString |

- connectTimeout ()

  returns (int)

- connected ()

  returns nothing

- connection ()

  returns (_TDEIO.Connection)

- copy (src, dest, permissions, overwrite)

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

- createAuthCacheKey (url)

  returns (TQString)
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- createAuthCacheKey (a0)

  returns (TQString)
  In versions less than KDE 3.1.0 only
  Argument | Type | Default
  --- | --- | ---
  a0 | KURL |

- data (data)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  data | TQByteArray |

- 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 | TQString |

- delCachedAuthentication (a0)

  returns nothing
  In versions less than KDE 3.1.0 only
  Argument | Type | Default
  --- | --- | ---
  a0 | TQString |

- 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 | TQByteArray |

- dispatchLoop ()

  returns nothing

- dropNetwork (host = TQString .null)

  returns nothing
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  host | TQString | TQString .null

- dropNetwork (a0 = TQString .null)

  returns nothing
  In versions less than KDE 3.1.0 only
  Argument | Type | Default
  --- | --- | ---
  a0 | TQString | TQString .null

- error (_errid, _text)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  _errid | int |
  _text | TQString |

- 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 | TQString |

- infoMessage (msg)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  msg | TQString |

- listDir (url)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- listEntries (_entry)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  _entry | _TDEIO.UDSEntryList |

- listEntry (_entry, ready)

  returns nothing
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  _entry | _TDEIO.UDSEntry |
  ready | bool |

- listEntry (a0, a1)

  returns nothing
  In versions less than KDE 3.1.0 only
  Argument | Type | Default
  --- | --- | ---
  a0 | _TDEIO.UDSEntry |
  a1 | bool |

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

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  type | _TDEIO.SlaveBase.MessageBoxType |
  text | TQString |
  caption | TQString | TQString .null
  buttonYes | TQString | TQString .null
  buttonNo | TQString | TQString .null

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

  returns (int)
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  text | TQString |
  type | _TDEIO.SlaveBase.MessageBoxType |
  caption | TQString | TQString .null
  buttonYes | TQString | TQString .null
  buttonNo | TQString | TQString .null
  dontAskAgainName | TQString | TQString .null

- metaData (key)

  returns (TQString)
  Argument | Type | Default
  --- | --- | ---
  key | TQString |

- mimeType (_type)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  _type | TQString |

- 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 | TQByteArray |

- 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 | _TDEIO.AuthInfo |
  errorMsg | TQString |

- openPassDlg (info)

  returns (bool)
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  info | _TDEIO.AuthInfo |

- openPassDlg (a0)

  returns (bool)
  In versions less than KDE 3.1.0 only
  Argument | Type | Default
  --- | --- | ---
  a0 | _TDEIO.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 | _TDEIO.filesize_t |

- proxyConnectTimeout ()

  returns (int)

- put (url, permissions, overwrite, a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  url | KURL |
  permissions | int |
  overwrite | bool |
  a0 | bool |

- readData (buffer)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  buffer | TQByteArray |

- 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 = TQString .null)

  returns (bool)
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  host | TQString | TQString .null

- requestNetwork (a0 = TQString .null)

  returns (bool)
  In versions less than KDE 3.1.0 only
  Argument | Type | Default
  --- | --- | ---
  a0 | TQString | TQString .null

- responseTimeout ()

  returns (int)

- sendAuthenticationKey (gKey, key, keep)

  returns nothing
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  gKey | TQCString |
  key | TQCString |
  keep | bool |

- sendAuthenticationKey (a0, a1, a2)

  returns nothing
  In versions less than KDE 3.1.0 only
  Argument | Type | Default
  --- | --- | ---
  a0 | TQCString |
  a1 | TQCString |
  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 | _TDEIO.Connection |

- setHost (host, port, user, pass)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  host | TQString |
  port | int |
  user | TQString |
  pass | TQString |

- setKillFlag ()

  returns nothing
  In versions KDE 3.1.0 and above only

- setMetaData (key, value)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  key | TQString |
  value | TQString |

- 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 = TQByteArray ())

  returns nothing
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  timeout | int |
  data | TQByteArray | TQByteArray ()

- 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 | TQString |
  connected | bool |

- slave_status ()

  returns nothing

- special (data)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  data | TQByteArray |

- 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 | _TDEIO.UDSEntry |

- symlink (target, dest, overwrite)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  target | TQString |
  dest | KURL |
  overwrite | bool |

- totalSize (_bytes)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  _bytes | _TDEIO.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 | TQByteArray |

- 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 | TQByteArray |

- warning (msg)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  msg | TQString |

- wasKilled ()

  returns (bool)
  In versions KDE 3.1.0 and above only

### variables

- variables

  Variable | Type
  --- | ---
  mIncomingMetaData | TDEIO::MetaData
  mOutgoingMetaData | TDEIO::MetaData
  mProtocol | TQCString
  m_pConnection | TDEIO::Connection*