File: example_3_transferHandling.h

package info (click to toggle)
qxmpp 1.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,480 kB
  • sloc: cpp: 73,257; xml: 1,345; ansic: 362; sh: 176; makefile: 16
file content (30 lines) | stat: -rw-r--r-- 754 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// SPDX-FileCopyrightText: 2012 Ian Reinhart Geiser <geiseri@kde.org>
//
// SPDX-License-Identifier: LGPL-2.1-or-later

#ifndef IBBCLIENT_H
#define IBBCLIENT_H

#include "QXmppClient.h"
#include "QXmppTransferManager.h"

class xmppClient : public QXmppClient
{
    Q_OBJECT

public:
    xmppClient(QObject *parent = nullptr);
    void setRecipient(const QString &recipient);

private:
    Q_SLOT void slotError(QXmppTransferJob::Error error);
    Q_SLOT void slotFileReceived(QXmppTransferJob *job);
    Q_SLOT void slotFinished();
    Q_SLOT void slotPresenceReceived(const QXmppPresence &presence);
    Q_SLOT void slotProgress(qint64 done, qint64 total);

    QString m_recipient;
    QXmppTransferManager *transferManager;
};

#endif  // IBBCLIENT_H