diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-07-19 12:54:50 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-07-19 12:54:50 +0000 |
| commit | 23c1250a204cbe420695f5b509876a774fb66323 (patch) | |
| tree | 155c8c25725353d18fa1de03d833947b52a9eec7 /example/example_3_transferHandling/xmppClient.h | |
| parent | 1d02a280912156f0bcc7a49f007841bd3821fdd2 (diff) | |
| download | qxmpp-23c1250a204cbe420695f5b509876a774fb66323.tar.gz | |
finish renaming files
Diffstat (limited to 'example/example_3_transferHandling/xmppClient.h')
| -rw-r--r-- | example/example_3_transferHandling/xmppClient.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/example/example_3_transferHandling/xmppClient.h b/example/example_3_transferHandling/xmppClient.h new file mode 100644 index 00000000..dc730d3e --- /dev/null +++ b/example/example_3_transferHandling/xmppClient.h @@ -0,0 +1,53 @@ +/* + * Copyright (C) 2008-2009 QXmpp Developers + * + * Author: + * Ian Reinhart Geiser + * + * Source: + * http://code.google.com/p/qxmpp + * + * This file is a part of QXmpp library. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + */ + + +#ifndef IBBCLIENT_H +#define IBBCLIENT_H + +#include "QXmppClient.h" +#include "QXmppTransferManager.h" + +class QBuffer; + +class xmppClient : public QXmppClient +{ + Q_OBJECT + +public: + xmppClient(QObject *parent = 0); + void sendOnceAvailable(const QString &recipient, const QString &file); + +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 |
