diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-02-24 10:33:02 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-02-24 10:33:02 +0000 |
| commit | 95d3dfef904b3a90b64c8b28f93b3f4c04701048 (patch) | |
| tree | 99fa0ba9138ad6de46464f921c121f955f690b99 /source/QXmppIbbTransferManager.h | |
| parent | eaa17977f41d1fa3568540824bf33fd725c40afa (diff) | |
| download | qxmpp-95d3dfef904b3a90b64c8b28f93b3f4c04701048.tar.gz | |
replace QXmppIbbTransfer* by QXmppTransferManager
Diffstat (limited to 'source/QXmppIbbTransferManager.h')
| -rw-r--r-- | source/QXmppIbbTransferManager.h | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/source/QXmppIbbTransferManager.h b/source/QXmppIbbTransferManager.h deleted file mode 100644 index 014b20cf..00000000 --- a/source/QXmppIbbTransferManager.h +++ /dev/null @@ -1,61 +0,0 @@ -#ifndef QXMPPIBBTRANSFERMANAGER_H
-#define QXMPPIBBTRANSFERMANAGER_H
-
-#include <QObject>
-#include <QHash>
-#include "QXmppIbbTransferJob.h"
-
-class QXmppClient;
-
-class QXmppIbbTransferManager : public QObject
-{
- Q_OBJECT
-public:
- QXmppIbbTransferManager(QXmppClient* client);
-
-signals:
- /// Notifies that a XMPP bytestream request has been received. The
- /// program must either reply with an acceptByteStreamRequest(...) or
- /// a rejectByteStreamRequest(...) depending on the desired response.
- void byteStreamRequestReceived( const QString &sid, const QString &remoteJid );
- /// Notifies that a XMPP bytestream has been closed.
- void byteStreamClosed( const QString &sid , const QString &reason );
- /// Notifies that a XMPP bytestream was canceled by the remote peer.
- /// The reason is given for the cancelation.
- void byteStreamCanceled( const QString &sid , const QString &reason );
- /// Notifes that the XMPP bytestream has been opened and the transfer
- /// has started.
- void byteStreamOpened( const QString &sid );
-
-public:
- QXmppIbbTransferJob *getIbbTransferJob( const QString &id );
- bool isIbbTransferJobId( const QString &id );
-
-public slots:
- /// Send a request to open a bytestream to a specific jid. Once the
- /// stream is opened then the data is read from the QIODevice. The
- /// QIODevice MUST be be open and ready for reading otherwise the
- /// transfer will fail. When there are no more bytes available to
- /// send from the QIODevice then the bytestream is closed.
- void sendByteStreamRequest( const QString &sid, const QString &bareJid, QIODevice *io);
- /// Accept a bytestream with a specific sid. Data from the remote
- /// peer is then written to the QIODevice. Therefor the QIODevice must
- /// be open and ready for writing before this method is called.
- void acceptByteStreamRequest( const QString &sid, QIODevice *io );
- /// Rejects a bytestream from a specific sid.
- void rejectByteStreamRequest( const QString &sid );
- /// Cacels a currenly connected bytestream with a specific sid.
- void cancelByteStreamRequest( const QString &sid );
-
-private slots:
- void addIbbTransferManager( QXmppIbbTransferJob *mgr );
- void teardownIbbTransferManager( const QString &sid );
-
-private:
- QXmppIbbTransferJob *getIbbTransferJobBySid( const QString &sid );
-
- QXmppClient* m_client;
- QHash<QString, QXmppIbbTransferJob*> m_activeTransfers;
-};
-
-#endif // QXMPPIBBTRANSFERMANAGER_H
|
