• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIO

KIO::DataSlave

KIO::DataSlave Class Reference

#include <dataslave.h>

Inheritance diagram for KIO::DataSlave:

Inheritance graph
[legend]

List of all members.


Detailed Description

This class provides a high performance implementation for the data url scheme (rfc2397).

Definition at line 49 of file dataslave.h.


Public Member Functions

 DataSlave ()
virtual ~DataSlave ()
virtual void setHost (const QString &host, quint16 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 &arr=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 QList< QueueStruct > DispatchQueue

Protected Slots

void dispatchNext ()

Protected Member Functions

void setAllMetaData (const MetaData &)
void sendMetaData ()

Protected Attributes

DispatchQueue dispatchQueue

Classes

struct  QueueStruct
 structure for queuing. More...

Member Typedef Documentation

typedef QList<QueueStruct> KIO::DataSlave::DispatchQueue [protected]

Definition at line 99 of file dataslave.h.


Member Enumeration Documentation

enum KIO::DataSlave::QueueType [protected]

identifiers of functions to be queued

Enumerator:
Queue_mimeType 
Queue_totalSize 
Queue_sendMetaData 
Queue_data 
Queue_finished 

Definition at line 85 of file dataslave.h.


Constructor & Destructor Documentation

DataSlave::DataSlave (  ) 

Definition at line 59 of file dataslave.cpp.

DataSlave::~DataSlave (  )  [virtual]

Definition at line 68 of file dataslave.cpp.


Member Function Documentation

void DataSlave::setHost ( const QString &  host,
quint16  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::setConfig ( const MetaData &  config  )  [virtual]

Configure slave.

Reimplemented from KIO::Slave.

Definition at line 153 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.

void DataSlave::resume (  )  [virtual]

Resumes the operation of the attached kioslave.

Reimplemented from KIO::Slave.

Definition at line 82 of file dataslave.cpp.

bool DataSlave::suspended (  )  [virtual]

Tells wether the kioslave is suspended.

Returns:
true if the kioslave is suspended.

Reimplemented from KIO::Slave.

Definition at line 144 of file dataslave.cpp.

void DataSlave::send ( int  cmd,
const QByteArray &  arr = QByteArray() 
) [virtual]

Sends the given command to the kioslave.

Parameters:
cmd command id
arr byte array containing data

Reimplemented from KIO::Slave.

Definition at line 118 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.

virtual void KIO::DataSlave::get ( const KUrl &  url  )  [pure virtual]

Implemented in KIO::DataProtocol.

virtual void KIO::DataSlave::mimetype ( const KUrl &  url  )  [pure virtual]

Implemented in KIO::DataProtocol.

void DataSlave::setAllMetaData ( const MetaData &  md  )  [protected]

Sets metadata.

Definition at line 163 of file dataslave.cpp.

void DataSlave::sendMetaData (  )  [protected]

Sends metadata set with setAllMetaData.

Definition at line 167 of file dataslave.cpp.

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.


Member Data Documentation

DispatchQueue KIO::DataSlave::dispatchQueue [protected]

Definition at line 100 of file dataslave.h.


The documentation for this class was generated from the following files:
  • dataslave.h
  • dataslave.cpp

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   WTF
  • KJSEmbed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  •   core
  • Phonon
  •   Backend
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal