You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
188 lines
7.4 KiB
188 lines
7.4 KiB
14 years ago
|
//
|
||
|
// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
|
||
|
// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
|
||
|
// may also apply
|
||
|
|
||
|
|
||
|
// Generated by preSip
|
||
12 years ago
|
// module tdeio version KDE 3.5.3
|
||
14 years ago
|
|
||
|
|
||
|
// This software is free software; you can redistribute it and/or
|
||
|
// modify it under the terms of the GNU General Public License as
|
||
|
// published by the Free Software Foundation; either version 2 of
|
||
|
// the License, or (at your option) any later version.
|
||
|
//
|
||
|
// This software is distributed in the hope that it will be useful,
|
||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
// GNU General Public License for more details.
|
||
|
//
|
||
|
// You should have received a copy of the GNU General Public
|
||
|
// License along with this library; see the file COPYING.
|
||
|
// If not, write to the Free Software Foundation, Inc.,
|
||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||
|
|
||
12 years ago
|
namespace TDEIO
|
||
14 years ago
|
{
|
||
|
|
||
|
class SlaveBase
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <slavebase.h>
|
||
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
13 years ago
|
SlaveBase (const TQCString&, const TQCString&, const TQCString&);
|
||
14 years ago
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
|
void exit ();
|
||
|
%End
|
||
|
|
||
|
void dispatchLoop ();
|
||
12 years ago
|
void setConnection (TDEIO::Connection*);
|
||
|
TDEIO::Connection* connection () const;
|
||
13 years ago
|
void data (const TQByteArray&);
|
||
14 years ago
|
void dataReq ();
|
||
13 years ago
|
void error (int, const TQString&);
|
||
14 years ago
|
void connected ();
|
||
|
void finished ();
|
||
|
void needSubURLData ();
|
||
13 years ago
|
void slaveStatus (const TQString&, bool);
|
||
12 years ago
|
void statEntry (const TDEIO::UDSEntry&);
|
||
|
void listEntries (const TDEIO::UDSEntryList&);
|
||
|
bool canResume (TDEIO::filesize_t);
|
||
14 years ago
|
void canResume ();
|
||
12 years ago
|
void totalSize (TDEIO::filesize_t);
|
||
|
void processedSize (TDEIO::filesize_t);
|
||
14 years ago
|
void processedPercent (float);
|
||
|
void speed (ulong);
|
||
|
void redirection (const KURL&);
|
||
|
void errorPage ();
|
||
13 years ago
|
void mimeType (const TQString&);
|
||
|
void warning (const TQString&);
|
||
|
void infoMessage (const TQString&);
|
||
14 years ago
|
|
||
|
enum MessageBoxType
|
||
|
{
|
||
|
QuestionYesNo,
|
||
|
WarningYesNo,
|
||
|
WarningContinueCancel,
|
||
|
WarningYesNoCancel,
|
||
|
Information,
|
||
|
SSLMessageBox
|
||
|
};
|
||
|
|
||
12 years ago
|
int messageBox (TDEIO::SlaveBase::MessageBoxType, const TQString&, const TQString& = TQString ::null , const TQString& = TQString ::null , const TQString& = TQString ::null );
|
||
14 years ago
|
|
||
|
%If ( KDE_3_3_0 - )
|
||
12 years ago
|
int messageBox (const TQString&, TDEIO::SlaveBase::MessageBoxType, const TQString& = TQString ::null , const TQString& = TQString ::null , const TQString& = TQString ::null , const TQString& = TQString ::null );
|
||
14 years ago
|
%End
|
||
|
|
||
13 years ago
|
void setMetaData (const TQString&, const TQString&);
|
||
|
bool hasMetaData (const TQString&);
|
||
|
TQString metaData (const TQString&);
|
||
14 years ago
|
|
||
|
%If ( KDE_3_5_2 - )
|
||
12 years ago
|
TDEIO::MetaData allMetaData () const;
|
||
14 years ago
|
%End
|
||
|
|
||
12 years ago
|
TDEConfigBase* config ();
|
||
14 years ago
|
|
||
|
%If ( KDE_3_3_0 - )
|
||
|
KRemoteEncoding* remoteEncoding ();
|
||
|
%End
|
||
|
|
||
13 years ago
|
virtual void setHost (const TQString&, int, const TQString&, const TQString&);
|
||
14 years ago
|
virtual void setSubURL (const KURL&);
|
||
|
virtual void openConnection ();
|
||
|
virtual void closeConnection ();
|
||
|
virtual void get (const KURL&);
|
||
|
virtual void put (const KURL&, int, bool, bool);
|
||
|
virtual void stat (const KURL&);
|
||
|
virtual void mimetype (const KURL&);
|
||
|
virtual void listDir (const KURL&);
|
||
|
virtual void mkdir (const KURL&, int);
|
||
|
virtual void rename (const KURL&, const KURL&, bool);
|
||
13 years ago
|
virtual void symlink (const TQString&, const KURL&, bool);
|
||
14 years ago
|
virtual void chmod (const KURL&, int);
|
||
|
virtual void copy (const KURL&, const KURL&, int, bool);
|
||
|
virtual void del (const KURL&, bool) /PyName=del_/;
|
||
13 years ago
|
virtual void special (const TQByteArray&);
|
||
|
virtual void multiGet (const TQByteArray&);
|
||
14 years ago
|
virtual void slave_status ();
|
||
|
virtual void reparseConfiguration ();
|
||
|
int connectTimeout ();
|
||
|
int proxyConnectTimeout ();
|
||
|
int responseTimeout ();
|
||
|
int readTimeout ();
|
||
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
13 years ago
|
void setTimeoutSpecialCommand (int, const TQByteArray& = TQByteArray ());
|
||
14 years ago
|
%End
|
||
|
|
||
|
static void sigsegv_handler (int);
|
||
|
static void sigpipe_handler (int);
|
||
|
virtual bool dispatch ();
|
||
13 years ago
|
virtual void dispatch (int, const TQByteArray&);
|
||
|
int readData (TQByteArray&);
|
||
14 years ago
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
12 years ago
|
void listEntry (const TDEIO::UDSEntry&, bool);
|
||
13 years ago
|
void connectSlave (const TQString&);
|
||
14 years ago
|
void disconnectSlave ();
|
||
12 years ago
|
bool openPassDlg (TDEIO::AuthInfo&, const TQString&);
|
||
|
bool openPassDlg (TDEIO::AuthInfo&);
|
||
|
bool checkCachedAuthentication (TDEIO::AuthInfo&);
|
||
|
bool cacheAuthentication (const TDEIO::AuthInfo&);
|
||
14 years ago
|
bool pingCacheDaemon () const;
|
||
13 years ago
|
TQString createAuthCacheKey (const KURL&);
|
||
|
void sendAuthenticationKey (const TQCString&, const TQCString&, bool);
|
||
|
void delCachedAuthentication (const TQString&);
|
||
14 years ago
|
void setMultipleAuthCaching (bool);
|
||
|
bool multipleAuthCaching () const;
|
||
13 years ago
|
bool requestNetwork (const TQString& = TQString ::null );
|
||
|
void dropNetwork (const TQString& = TQString ::null );
|
||
14 years ago
|
DCOPClient* dcopClient ();
|
||
13 years ago
|
int waitForAnswer (int, int, TQByteArray&, int* = 0);
|
||
14 years ago
|
void sendMetaData ();
|
||
13 years ago
|
TQCString mProtocol;
|
||
12 years ago
|
TDEIO::Connection* m_pConnection;
|
||
|
TDEIO::MetaData mOutgoingMetaData;
|
||
|
TDEIO::MetaData mIncomingMetaData;
|
||
14 years ago
|
bool wasKilled () const;
|
||
|
void setKillFlag ();
|
||
|
%End
|
||
|
|
||
|
|
||
|
protected:
|
||
|
//igx virtual void virtual_hook (int, void*);
|
||
|
|
||
|
protected:
|
||
|
|
||
|
%If ( - KDE_3_1_0 )
|
||
12 years ago
|
void listEntry (const TDEIO::UDSEntry&, bool);
|
||
13 years ago
|
void connectSlave (const TQString&);
|
||
14 years ago
|
void disconnectSlave ();
|
||
|
bool pingCacheDaemon () const;
|
||
12 years ago
|
bool openPassDlg (TDEIO::AuthInfo&);
|
||
|
bool checkCachedAuthentication (TDEIO::AuthInfo&);
|
||
|
bool cacheAuthentication (const TDEIO::AuthInfo&);
|
||
13 years ago
|
TQString createAuthCacheKey (const KURL&);
|
||
|
void sendAuthenticationKey (const TQCString&, const TQCString&, bool);
|
||
|
void delCachedAuthentication (const TQString&);
|
||
14 years ago
|
void setMultipleAuthCaching (bool);
|
||
|
bool multipleAuthCaching () const;
|
||
13 years ago
|
bool requestNetwork (const TQString& = TQString ::null );
|
||
|
void dropNetwork (const TQString& = TQString ::null );
|
||
|
int waitForAnswer (int, int, TQByteArray&, int* = 0);
|
||
14 years ago
|
void sendMetaData ();
|
||
|
%End
|
||
|
|
||
|
|
||
|
}; // class SlaveBase
|
||
|
|
||
12 years ago
|
}; // namespace TDEIO
|
||
14 years ago
|
|