KIO::DataSlave Class Reference
This class provides a high performance implementation for the data url scheme (rfc2397). More...
#include <dataslave.h>

Classes | |
struct | QueueStruct |
structure for queueing. More... | |
Public Member Functions | |
virtual void | setHost (const QString &host, int port, const QString &user, const QString &passwd) |
virtual void | setConfig (const MetaData &config) |
virtual void | suspend () |
virtual void | resume () |
virtual bool | suspended () |
virtual void | send (int cmd, const QByteArray &data=QByteArray()) |
virtual void | hold (const KURL &url) |
virtual void | get (const KURL &url)=0 |
virtual void | mimetype (const KURL &url)=0 |
Protected Types | |
enum | QueueType { Queue_mimeType = 1, Queue_totalSize, Queue_sendMetaData, Queue_data, Queue_finished } |
typedef QValueList< QueueStruct > | DispatchQueue |
Protected Slots | |
void | dispatchNext () |
Protected Member Functions | |
void | setAllMetaData (const MetaData &) |
void | sendMetaData () |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
DispatchQueue | dispatchQueue |
Detailed Description
This class provides a high performance implementation for the data url scheme (rfc2397).Definition at line 49 of file dataslave.h.
Member Enumeration Documentation
enum KIO::DataSlave::QueueType [protected] |
Member Function Documentation
void DataSlave::dispatchNext | ( | ) | [protected, slot] |
dispatches next queued method.
Does nothing if there are no queued methods.
Definition at line 99 of file dataslave.cpp.
void DataSlave::hold | ( | const KURL & | url | ) | [virtual] |
Puts the kioslave associated with url
at halt.
Reimplemented from KIO::Slave.
Definition at line 72 of file dataslave.cpp.
void DataSlave::resume | ( | ) | [virtual] |
Resumes the operation of the attached kioslave.
Reimplemented from KIO::Slave.
Definition at line 82 of file dataslave.cpp.
void DataSlave::send | ( | int | cmd, | |
const QByteArray & | data = QByteArray() | |||
) | [virtual] |
Sends the given command to the kioslave.
- Parameters:
-
cmd command id data byte array containing data
- Since:
- 3.2
Reimplemented from KIO::Slave.
Definition at line 118 of file dataslave.cpp.
void DataSlave::sendMetaData | ( | ) | [protected] |
void DataSlave::setAllMetaData | ( | const MetaData & | md | ) | [protected] |
void DataSlave::setConfig | ( | const MetaData & | config | ) | [virtual] |
void DataSlave::setHost | ( | const QString & | host, | |
int | port, | |||
const QString & | user, | |||
const QString & | passwd | |||
) | [virtual] |
Set host for url.
- Parameters:
-
host to connect to. port to connect to. user to login as passwd to login with
Reimplemented from KIO::Slave.
Definition at line 148 of file dataslave.cpp.
void DataSlave::suspend | ( | ) | [virtual] |
Suspends the operation of the attached kioslave.
Reimplemented from KIO::Slave.
Definition at line 76 of file dataslave.cpp.
bool DataSlave::suspended | ( | ) | [virtual] |
Tells wether the kioslave is suspended.
- Returns:
- true if the kioslave is suspended.
- Since:
- 3.2
Reimplemented from KIO::Slave.
Definition at line 144 of file dataslave.cpp.
The documentation for this class was generated from the following files: