2
kirctransfer.h - DCC Handler
4
Copyright (c) 2003-2007 by Michel Hermier <michel.hermier@gmail.com>
6
Kopete (c) 2003-2007 by the Kopete developers <kopete-devel@kde.org>
8
*************************************************************************
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
15
*************************************************************************
18
#ifndef KIRCTRANSFERSERVER_H
19
#define KIRCTRANSFERSERVER_H
21
#include "kirctransfer.h"
25
class KExtendedSocket;
37
// explicit TransferServer(QObject *parent = 0);
38
explicit TransferServer(quint16 port, int backlog = 1, QObject *parent = 0);
39
TransferServer(KIrc::Engine *engine, QString nick,// QString nick_peer_adress,
41
QString fileName, quint32 fileSize,
51
bool initServer( quint16 port, int backlog = 1 );
54
void incomingNewTransfer(Transfer *transfer);
58
void connectionFailed(int error);
61
KExtendedSocket *m_socket;
65
// The following will be deprecated ...
66
KIrc::Engine * m_engine;
68
Transfer::Type m_type;
72
// QPtrList<Transfer> m_pendingTransfers;
73
// QPtrList<Transfer> m_activeTransfers;