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

tdeio/tdeio

TDEIO::SlaveInterface

TDEIO::SlaveInterface Class Reference

There are two classes that specifies the protocol between application (TDEIO::Job) and tdeioslave. More...

#include <slaveinterface.h>

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

List of all members.

Signals

void data (const TQByteArray &)
void dataReq ()
void error (int, const TQString &)
void connected ()
void finished ()
void slaveStatus (pid_t, const TQCString &, const TQString &, bool)
void listEntries (const TDEIO::UDSEntryList &)
void statEntry (const TDEIO::UDSEntry &)
void needSubURLData ()
void needProgressId ()
void canResume (TDEIO::filesize_t)
void metaData (const TDEIO::MetaData &)
void totalSize (TDEIO::filesize_t)
void processedSize (TDEIO::filesize_t)
void redirection (const KURL &)
void localURL (const KURL &, bool)
void speed (unsigned long)
void errorPage ()
void mimeType (const TQString &)
void warning (const TQString &)
void infoMessage (const TQString &)
void connectFinished ()
void authorizationKey (const TQCString &, const TQCString &, bool)
void delAuthorization (const TQCString &grpkey)

Public Member Functions

 SlaveInterface (Connection *connection)
void setConnection (Connection *connection)
Connection * connection () const
void setProgressId (int id)
int progressId () const
void sendResumeAnswer (bool resume)
void setOffset (TDEIO::filesize_t offset)
TDEIO::filesize_t offset () const

Protected Slots

void calcSpeed ()

Protected Member Functions

virtual bool dispatch ()
virtual bool dispatch (int _cmd, const TQByteArray &data)
void openPassDlg (TDEIO::AuthInfo &info)
void openPassDlg (const TQString &prompt, const TQString &user, const TQString &caption, const TQString &comment, const TQString &label, bool readOnly) KDE_DEPRECATED
void openPassDlg (const TQString &prompt, const TQString &user, bool readOnly) KDE_DEPRECATED
void messageBox (int type, const TQString &text, const TQString &caption, const TQString &buttonYes, const TQString &buttonNo)
void messageBox (int type, const TQString &text, const TQString &caption, const TQString &buttonYes, const TQString &buttonNo, const TQString &dontAskAgainName)
void requestNetwork (const TQString &, const TQString &)
void dropNetwork (const TQString &, const TQString &)
virtual void virtual_hook (int id, void *data)

Static Protected Member Functions

static void sigpipe_handler (int)

Protected Attributes

Connection * m_pConnection

Detailed Description

There are two classes that specifies the protocol between application (TDEIO::Job) and tdeioslave.

SlaveInterface is the class to use on the application end, SlaveBase is the one to use on the slave end.

A call to foo() results in a call to slotFoo() on the other end.

Definition at line 93 of file slaveinterface.h.


Member Function Documentation

void TDEIO::SlaveInterface::authorizationKey ( const TQCString &  ,
const TQCString &  ,
bool   
) [signal]
Deprecated:
. Obsolete as of 3.1. Replaced by kpassword, a kded module.
void TDEIO::SlaveInterface::delAuthorization ( const TQCString &  grpkey  )  [signal]
Deprecated:
. Obsolete as of 3.1. Replaced by kpassword, a kded module.
void SlaveInterface::messageBox ( int  type,
const TQString &  text,
const TQString &  caption,
const TQString &  buttonYes,
const TQString &  buttonNo,
const TQString &  dontAskAgainName 
) [protected]
Since:
3.3

Definition at line 505 of file slaveinterface.cpp.

void SlaveInterface::openPassDlg ( const TQString &  prompt,
const TQString &  user,
bool  readOnly 
) [protected]
Deprecated:
. Use openPassDlg( AuthInfo& ) instead.

Definition at line 453 of file slaveinterface.cpp.

void SlaveInterface::openPassDlg ( const TQString &  prompt,
const TQString &  user,
const TQString &  caption,
const TQString &  comment,
const TQString &  label,
bool  readOnly 
) [protected]
Deprecated:
. Use openPassDlg( AuthInfo& ) instead.

Definition at line 462 of file slaveinterface.cpp.

void SlaveInterface::openPassDlg ( TDEIO::AuthInfo &  info  )  [protected]

Prompt the user for authrization info (login & password).

Use this function to request authorization info from the the end user. For example to open an empty password dialog using default values:

 TDEIO::AuthInfo authInfo;
 bool result = openPassDlg( authInfo );
 if ( result )
 {
    printf( "Username: %s", result.username.latin1() );
    printf( "Username: %s", result.username.latin1() );
 }

You can also pre-set some values like the username before hand if it is known as well as the comment and caption to be displayed:

 authInfo.comment= "Enter username and password to access acmeone";
 authInfo.caption= "Acme Password Dialog";
 authInfo.username= "Wily E. kaiody";
 bool result = openPassDlg( authInfo );
 if ( result )
 {
    printf( "Username: %s", result.username.latin1() );
    printf( "Username: %s", result.username.latin1() );
 }

NOTE: A call to this function can also fail and result in a return value of false, if the UIServer could not be started for whatever reason.

Parameters:
info See AuthInfo.
Returns:
true if user clicks on "OK", false otherwsie.

Definition at line 476 of file slaveinterface.cpp.

void SlaveInterface::sendResumeAnswer ( bool  resume  ) 

Send our answer to the MSG_RESUME (canResume) request (to tell the "put" job whether to resume or not).

Definition at line 447 of file slaveinterface.cpp.


The documentation for this class was generated from the following files:
  • slaveinterface.h
  • slaveinterface.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.6.3
This website is maintained by Timothy Pearson.