~mzanetti/+junk/ubtd

« back to all changes in this revision

Viewing changes to shareplugin/bttransfer.h

  • Committer: Michael Zanetti
  • Date: 2016-08-21 10:28:36 UTC
  • Revision ID: michael.zanetti@canonical.com-20160821102836-mam1manqthov2um9
improve!

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
    Q_PROPERTY(qreal progress READ progress NOTIFY progressChanged)
13
13
    Q_PROPERTY(bool finished READ finished NOTIFY finishedChanged)
14
14
    Q_PROPERTY(bool error READ error NOTIFY errorChanged)
 
15
    Q_PROPERTY(QString currentFile READ currentFile NOTIFY progressChanged)
15
16
 
16
17
public:
17
18
    explicit BtTransfer(QObject *parent = 0);
20
21
    bool finished() const;
21
22
    bool error() const;
22
23
    QString errorMessage() const;
 
24
    QString currentFile() const;
23
25
 
24
26
signals:
25
27
    void progressChanged();
34
36
    void transferFinished(QBluetoothTransferReply *reply);
35
37
    void transferError(QBluetoothTransferReply::TransferError lastError);
36
38
 
 
39
    void processQueue();
 
40
 
37
41
private:
38
42
    QBluetoothTransferManager manager;
39
43
    QBluetoothTransferReply *reply;
40
44
    float m_progress;
41
45
    bool m_finished;
42
46
    QBluetoothTransferReply::TransferError m_error;
 
47
 
 
48
    QList<QPair<QBluetoothAddress, QString> > m_queue;
43
49
};
44
50
 
45
51
#endif // BTTRANSFER_H