20 #ifndef __tdeio_slaveinterface_h
21 #define __tdeio_slaveinterface_h
24 #include <sys/types.h>
29 #include <tdeio/global.h>
30 #include <tdeio/authinfo.h>
31 #include <kdatastream.h>
37 class SlaveInterfacePrivate;
46 INF_PROCESSED_SIZE = 11,
101 void setConnection(
Connection* connection ) { m_pConnection = connection; }
102 Connection *connection()
const {
return m_pConnection; }
104 void setProgressId(
int id ) { m_progressId = id; }
105 int progressId()
const {
return m_progressId; }
110 void sendResumeAnswer(
bool resume );
120 void data(
const TQByteArray & );
122 void error(
int ,
const TQString & );
125 void slaveStatus(pid_t,
const TQCString &,
const TQString &,
bool);
126 void listEntries(
const TDEIO::UDSEntryList& );
128 void needSubURLData();
129 void needProgressId();
139 void redirection(
const KURL& ) ;
140 void localURL(
const KURL&,
bool ) ;
142 void speed(
unsigned long ) ;
144 void mimeType(
const TQString & ) ;
145 void warning(
const TQString & ) ;
146 void infoMessage(
const TQString & ) ;
147 void connectFinished();
164 virtual bool dispatch();
165 virtual bool dispatch(
int _cmd,
const TQByteArray &data );
211 void openPassDlg(
const TQString& prompt,
const TQString& user,
212 const TQString& caption,
const TQString& comment,
213 const TQString& label,
bool readOnly ) TDE_DEPRECATED;
218 void openPassDlg(
const TQString& prompt,
const TQString& user,
bool readOnly ) TDE_DEPRECATED;
220 void messageBox(
int type,
const TQString &text,
const TQString &caption,
221 const TQString &buttonYes,
const TQString &buttonNo );
226 void messageBox(
int type,
const TQString &text,
const TQString &caption,
227 const TQString &buttonYes,
const TQString &buttonNo,
const TQString &dontAskAgainName );
230 void requestNetwork(
const TQString &,
const TQString &);
231 void dropNetwork(
const TQString &,
const TQString &);
237 static void sigpipe_handler(
int);
248 virtual void virtual_hook(
int id,
void* data );
250 SlaveInterfacePrivate *d;
255 inline TQDataStream &operator >>(TQDataStream &s, TDEIO::UDSAtom &a )
260 if ( a.m_uds & TDEIO::UDS_LONG ) {
263 a.m_str = TQString::null;
273 inline TQDataStream &operator <<(TQDataStream &s,
const TDEIO::UDSAtom &a )
277 if ( a.m_uds & TDEIO::UDS_LONG )
278 s << (TQ_INT32) a.m_long;
287 TDEIO_EXPORT TQDataStream &operator <<(TQDataStream &s,
const TDEIO::UDSEntry &e );
288 TDEIO_EXPORT TQDataStream &operator >>(TQDataStream &s,
TDEIO::UDSEntry &e );
This class is intended to make it easier to prompt for, cache and retrieve authorization information.
This class provides a simple means for IPC between two applications via a pipe.
There are two classes that specifies the protocol between application (TDEIO::Job) and tdeioslave.
void delAuthorization(const TQCString &grpkey)
void authorizationKey(const TQCString &, const TQCString &, bool)
A namespace for TDEIO globals.
Info
Identifiers for TDEIO informational messages.
Message
Identifiers for TDEIO data messages.
TDEIO_EXPORT LocalURLJob * localURL(const KURL &remoteUrl)
Retrieve local URL if available.
@ UDS_STRING
First let's define the item types.
TQValueList< UDSAtom > UDSEntry
An entry is the list of atoms containing all the information for a file or URL.
TQ_ULLONG filesize_t
64-bit file size