aboutsummaryrefslogtreecommitdiff
path: root/example/example_3_ibbTransferSource/ibbClient.h
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-07-19 12:44:24 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-07-19 12:44:24 +0000
commit368037c7a1d077da4cb828e7cf5671d92e4eda02 (patch)
treeb767f813feb9817f97efd514a2aba76cafd1d433 /example/example_3_ibbTransferSource/ibbClient.h
parent046f9b04abdf3e2315744a7e548c6c860eecd07e (diff)
downloadqxmpp-368037c7a1d077da4cb828e7cf5671d92e4eda02.tar.gz
merge ibbTransferTarget code
Diffstat (limited to 'example/example_3_ibbTransferSource/ibbClient.h')
-rw-r--r--example/example_3_ibbTransferSource/ibbClient.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/example/example_3_ibbTransferSource/ibbClient.h b/example/example_3_ibbTransferSource/ibbClient.h
index 46977a4d..5589aa6b 100644
--- a/example/example_3_ibbTransferSource/ibbClient.h
+++ b/example/example_3_ibbTransferSource/ibbClient.h
@@ -28,18 +28,26 @@
#include "QXmppClient.h"
#include "QXmppTransferManager.h"
+class QBuffer;
+
class ibbClient : public QXmppClient
{
Q_OBJECT
public:
ibbClient(QObject *parent = 0);
+ void sendOnceAvailable(const QString &recipient, const QString &file);
-public slots:
+private slots:
void slotConnected();
void slotError(QXmppTransferJob::Error error);
+ void slotFileReceived(QXmppTransferJob *job);
void slotFinished();
void slotProgress(qint64 done, qint64 total);
+
+private:
+ QString m_sendFile;
+ QString m_sendRecipient;
};
#endif // IBBCLIENT_H