• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/tdeio
 

tdeio/tdeio

  • TDEIO
  • DataSlave
Classes | Public Member Functions | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes
TDEIO::DataSlave Class Reference

#include <dataslave.h>

Inheritance diagram for TDEIO::DataSlave:
TDEIO::Slave TDEIO::SlaveInterface TQObject TDEIO::DataProtocol

List of all members.

Classes

struct  QueueStruct
 structure for queueing. More...

Public Member Functions

virtual void setHost (const TQString &host, int port, const TQString &user, const TQString &passwd)
virtual void setConfig (const MetaData &config)
virtual void suspend ()
virtual void resume ()
virtual bool suspended ()
virtual void send (int cmd, const TQByteArray &data=TQByteArray())
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 TQValueList< 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 TDEIO::DataSlave::QueueType [protected]

identifiers of functions to be queued

Definition at line 85 of file dataslave.h.


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 tdeioslave associated with url at halt.

Reimplemented from TDEIO::Slave.

Definition at line 72 of file dataslave.cpp.

void DataSlave::resume ( ) [virtual]

Resumes the operation of the attached tdeioslave.

Reimplemented from TDEIO::Slave.

Definition at line 82 of file dataslave.cpp.

void DataSlave::send ( int  cmd,
const TQByteArray &  data = TQByteArray() 
) [virtual]

Sends the given command to the tdeioslave.

Parameters:
cmdcommand id
databyte array containing data
Since:
3.2

Reimplemented from TDEIO::Slave.

Definition at line 118 of file dataslave.cpp.

void DataSlave::sendMetaData ( ) [protected]

Sends metadata set with setAllMetaData.

Definition at line 167 of file dataslave.cpp.

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

Sets metadata.

Definition at line 163 of file dataslave.cpp.

void DataSlave::setConfig ( const MetaData &  config) [virtual]

Configure slave.

Reimplemented from TDEIO::Slave.

Definition at line 153 of file dataslave.cpp.

void DataSlave::setHost ( const TQString &  host,
int  port,
const TQString &  user,
const TQString &  passwd 
) [virtual]

Set host for url.

Parameters:
hostto connect to.
portto connect to.
userto login as
passwdto login with

Reimplemented from TDEIO::Slave.

Definition at line 148 of file dataslave.cpp.

void DataSlave::suspend ( ) [virtual]

Suspends the operation of the attached tdeioslave.

Reimplemented from TDEIO::Slave.

Definition at line 76 of file dataslave.cpp.

bool DataSlave::suspended ( ) [virtual]

Tells wether the tdeioslave is suspended.

Returns:
true if the tdeioslave is suspended.
Since:
3.2

Reimplemented from TDEIO::Slave.

Definition at line 144 of file dataslave.cpp.


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

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdeio by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.