20 #ifndef __kio_slaveinterface_h 21 #define __kio_slaveinterface_h 24 #include <sys/types.h> 29 #include <kio/global.h> 30 #include <kio/authinfo.h> 31 #include <kdatastream.h> 37 class SlaveInterfacePrivate;
46 INF_PROCESSED_SIZE = 11,
100 void setConnection(
Connection* connection ) { m_pConnection = connection; }
101 Connection *connection()
const {
return m_pConnection; }
103 void setProgressId(
int id ) { m_progressId = id; }
104 int progressId()
const {
return m_progressId; }
109 void sendResumeAnswer(
bool resume );
119 void data(
const TQByteArray & );
121 void error(
int ,
const TQString & );
124 void slaveStatus(pid_t,
const TQCString &,
const TQString &,
bool);
125 void listEntries(
const KIO::UDSEntryList& );
127 void needSubURLData();
128 void needProgressId();
138 void redirection(
const KURL& ) ;
140 void speed(
unsigned long ) ;
142 void mimeType(
const TQString & ) ;
143 void warning(
const TQString & ) ;
144 void infoMessage(
const TQString & ) ;
145 void connectFinished();
150 void authorizationKey(
const TQCString&,
const TQCString&,
bool );
155 void delAuthorization(
const TQCString& grpkey );
162 virtual bool dispatch();
163 virtual bool dispatch(
int _cmd,
const TQByteArray &data );
209 void openPassDlg(
const TQString& prompt,
const TQString& user,
210 const TQString& caption,
const TQString& comment,
211 const TQString& label,
bool readOnly ) KDE_DEPRECATED;
216 void openPassDlg(
const TQString& prompt,
const TQString& user,
bool readOnly ) KDE_DEPRECATED;
218 void messageBox(
int type,
const TQString &text,
const TQString &caption,
219 const TQString &buttonYes,
const TQString &buttonNo );
224 void messageBox(
int type,
const TQString &text,
const TQString &caption,
225 const TQString &buttonYes,
const TQString &buttonNo,
const TQString &dontAskAgainName );
228 void requestNetwork(
const TQString &,
const TQString &);
229 void dropNetwork(
const TQString &,
const TQString &);
235 static void sigpipe_handler(
int);
246 virtual void virtual_hook(
int id,
void* data );
248 SlaveInterfacePrivate *d;
253 inline TQDataStream &operator >>(TQDataStream &s, KIO::UDSAtom &a )
258 if ( a.m_uds & KIO::UDS_LONG ) {
261 a.m_str = TQString::null;
271 inline TQDataStream &operator <<(TQDataStream &s,
const KIO::UDSAtom &a )
275 if ( a.m_uds & KIO::UDS_LONG )
276 s << (TQ_INT32) a.m_long;
285 KIO_EXPORT TQDataStream &operator <<(TQDataStream &s,
const KIO::UDSEntry &e );
286 KIO_EXPORT TQDataStream &operator >>(TQDataStream &s,
KIO::UDSEntry &e );
A namespace for KIO globals.
There are two classes that specifies the protocol between application (KIO::Job) and kioslave...
First let's define the item types.
This class is intended to make it easier to prompt for, cache and retrieve authorization information...
Info
Identifiers for KIO informational messages.
TQValueList< UDSAtom > UDSEntry
An entry is the list of atoms containing all the information for a file or URL.
This class provides a simple means for IPC between two applications via a pipe.
TQ_ULLONG filesize_t
64-bit file size
Message
Identifiers for KIO data messages.