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.
189 lines
5.2 KiB
189 lines
5.2 KiB
13 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
|
||
13 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.
|
||
|
|
||
|
%ModuleHeaderCode
|
||
|
#include <slaveinterface.h>
|
||
|
%End
|
||
|
|
||
12 years ago
|
namespace TDEIO
|
||
13 years ago
|
{
|
||
|
|
||
|
enum Info
|
||
|
{
|
||
|
INF_TOTAL_SIZE,
|
||
|
INF_PROCESSED_SIZE,
|
||
|
INF_SPEED,
|
||
|
INF_REDIRECTION,
|
||
|
INF_MIME_TYPE,
|
||
|
INF_ERROR_PAGE,
|
||
|
INF_WARNING,
|
||
|
INF_GETTING_FILE,
|
||
|
INF_NEED_PASSWD,
|
||
|
INF_INFOMESSAGE,
|
||
|
INF_META_DATA,
|
||
|
INF_NETWORK_STATUS,
|
||
|
INF_MESSAGEBOX
|
||
|
};
|
||
|
|
||
|
|
||
|
%If ( KDE_3_1_2 - )
|
||
|
|
||
|
enum Message
|
||
|
{
|
||
|
MSG_DATA,
|
||
|
MSG_DATA_REQ,
|
||
|
MSG_ERROR,
|
||
|
MSG_CONNECTED,
|
||
|
MSG_FINISHED,
|
||
|
MSG_STAT_ENTRY,
|
||
|
MSG_LIST_ENTRIES,
|
||
|
MSG_RENAMED,
|
||
|
MSG_RESUME,
|
||
|
MSG_SLAVE_STATUS,
|
||
|
MSG_SLAVE_ACK,
|
||
13 years ago
|
MSG_NET_REQUEST,
|
||
13 years ago
|
MSG_NET_DROP,
|
||
|
MSG_NEED_SUBURL_DATA,
|
||
|
MSG_CANRESUME,
|
||
|
MSG_AUTH_KEY,
|
||
|
MSG_DEL_AUTH_KEY
|
||
|
};
|
||
|
|
||
|
%End
|
||
|
|
||
|
|
||
13 years ago
|
class SlaveInterface : TQObject
|
||
13 years ago
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <slaveinterface.h>
|
||
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
12 years ago
|
SlaveInterface (TDEIO::Connection*);
|
||
|
void setConnection (TDEIO::Connection*);
|
||
|
TDEIO::Connection* connection () const;
|
||
13 years ago
|
void setProgressId (int);
|
||
|
int progressId () const;
|
||
|
void sendResumeAnswer (bool);
|
||
12 years ago
|
void setOffset (TDEIO::filesize_t);
|
||
|
TDEIO::filesize_t offset () const;
|
||
13 years ago
|
|
||
|
signals:
|
||
13 years ago
|
void data (const TQByteArray&);
|
||
13 years ago
|
void dataReq ();
|
||
13 years ago
|
void error (int, const TQString&);
|
||
13 years ago
|
void connected ();
|
||
|
void finished ();
|
||
13 years ago
|
void slaveStatus (pid_t, const TQCString&, const TQString&, bool);
|
||
12 years ago
|
void listEntries (const TDEIO::UDSEntryList&);
|
||
|
void statEntry (const TDEIO::UDSEntry&);
|
||
13 years ago
|
void needSubURLData ();
|
||
|
void needProgressId ();
|
||
12 years ago
|
void canResume (TDEIO::filesize_t);
|
||
|
void metaData (const TDEIO::MetaData&);
|
||
|
void totalSize (TDEIO::filesize_t);
|
||
|
void processedSize (TDEIO::filesize_t);
|
||
13 years ago
|
void redirection (const KURL&);
|
||
|
void speed (ulong);
|
||
|
void errorPage ();
|
||
13 years ago
|
void mimeType (const TQString&);
|
||
|
void warning (const TQString&);
|
||
|
void infoMessage (const TQString&);
|
||
13 years ago
|
void connectFinished ();
|
||
13 years ago
|
void authorizationKey (const TQCString&, const TQCString&, bool);
|
||
|
void delAuthorization (const TQCString&);
|
||
13 years ago
|
|
||
|
protected:
|
||
|
virtual bool dispatch ();
|
||
13 years ago
|
virtual bool dispatch (int, const TQByteArray&);
|
||
12 years ago
|
void openPassDlg (TDEIO::AuthInfo&);
|
||
13 years ago
|
void openPassDlg (const TQString&, const TQString&, const TQString&, const TQString&, const TQString&, bool);
|
||
|
void openPassDlg (const TQString&, const TQString&, bool);
|
||
|
void messageBox (int, const TQString&, const TQString&, const TQString&, const TQString&);
|
||
13 years ago
|
|
||
|
%If ( KDE_3_3_0 - )
|
||
13 years ago
|
void messageBox (int, const TQString&, const TQString&, const TQString&, const TQString&, const TQString&);
|
||
13 years ago
|
%End
|
||
|
|
||
13 years ago
|
void requestNetwork (const TQString&, const TQString&);
|
||
|
void dropNetwork (const TQString&, const TQString&);
|
||
13 years ago
|
static void sigpipe_handler (int);
|
||
|
|
||
|
protected slots:
|
||
|
void calcSpeed ();
|
||
|
|
||
|
protected:
|
||
|
|
||
|
protected:
|
||
|
//igx virtual void virtual_hook (int, void*);
|
||
|
|
||
|
}; // class SlaveInterface
|
||
|
|
||
|
|
||
|
%If ( - KDE_3_2_0 )
|
||
|
|
||
|
enum Command
|
||
|
{
|
||
|
CMD_HOST,
|
||
|
CMD_CONNECT,
|
||
|
CMD_DISCONNECT,
|
||
|
CMD_SLAVE_STATUS,
|
||
|
CMD_SLAVE_CONNECT,
|
||
|
CMD_SLAVE_HOLD,
|
||
|
CMD_NONE,
|
||
|
CMD_TESTDIR,
|
||
|
CMD_GET,
|
||
|
CMD_PUT,
|
||
|
CMD_STAT,
|
||
|
CMD_MIMETYPE,
|
||
|
CMD_LISTDIR,
|
||
|
CMD_MKDIR,
|
||
|
CMD_RENAME,
|
||
|
CMD_COPY,
|
||
|
CMD_DEL,
|
||
|
CMD_CHMOD,
|
||
|
CMD_SPECIAL,
|
||
|
CMD_USERPASS,
|
||
|
CMD_REPARSECONFIGURATION,
|
||
|
CMD_META_DATA,
|
||
|
CMD_SYMLINK,
|
||
|
CMD_SUBURL,
|
||
|
CMD_MESSAGEBOXANSWER,
|
||
|
CMD_RESUMEANSWER,
|
||
|
CMD_CONFIG,
|
||
|
CMD_MULTI_GET
|
||
|
};
|
||
|
|
||
|
%End
|
||
|
|
||
12 years ago
|
}; // namespace TDEIO
|
||
13 years ago
|
|
||
|
|
||
|
%If ( KDE_3_1_4 - )
|
||
12 years ago
|
//igx TQDataStream& operator << (TQDataStream&, const TDEIO::UDSEntry&);
|
||
|
//igx TQDataStream& operator >> (TQDataStream&, TDEIO::UDSEntry&);
|
||
13 years ago
|
%End
|