aboutsummaryrefslogtreecommitdiff
path: root/example/example_3_ibbTransferSource/ibbClient.h
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-02-24 10:42:26 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-02-24 10:42:26 +0000
commit9334406b1ac2716ba799c5bb71d25efefaca29bc (patch)
tree0e5f93d0edb3ddbdfba05dd5d0c8773cdffda1a7 /example/example_3_ibbTransferSource/ibbClient.h
parentc6015694703439c8913735a2300b4cad039bbebb (diff)
downloadqxmpp-9334406b1ac2716ba799c5bb71d25efefaca29bc.tar.gz
update ibbTransferSource example to use QXmppTransferManager
Diffstat (limited to 'example/example_3_ibbTransferSource/ibbClient.h')
-rw-r--r--example/example_3_ibbTransferSource/ibbClient.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/example/example_3_ibbTransferSource/ibbClient.h b/example/example_3_ibbTransferSource/ibbClient.h
index 0a674d05..5029771a 100644
--- a/example/example_3_ibbTransferSource/ibbClient.h
+++ b/example/example_3_ibbTransferSource/ibbClient.h
@@ -26,8 +26,7 @@
#define IBBCLIENT_H
#include "QXmppClient.h"
-
-class QBuffer;
+#include "QXmppTransferManager.h"
class ibbClient : public QXmppClient
{
@@ -35,17 +34,12 @@ class ibbClient : public QXmppClient
public:
ibbClient(QObject *parent = 0);
- ~ibbClient();
public slots:
void slotConnected();
- void slotByteStreamRequestReceived( const QString &sid, const QString &remoteJid );
- void slotByteStreamClosed( const QString &sid , const QString &reason );
- void slotByteStreamCanceled( const QString &sid , const QString &reason );
- void slotByteStreamOpened( const QString &sid );
-private:
- QBuffer *m_buffer;
-
+ void slotError(QXmppTransferJob::Error error);
+ void slotFinished();
+ void slotProgress(qint64 done, qint64 total);
};
#endif // IBBCLIENT_H