~unity-api-team/storage-framework/vivid

« back to all changes in this revision

Viewing changes to include/unity/storage/qt/client/internal/remote_client/FinishDownloadHandler.h

  • Committer: Michi Henning
  • Date: 2016-07-11 05:44:31 UTC
  • mfrom: (8.10.31 decltype)
  • mto: (8.1.15 devel)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: michi.henning@canonical.com-20160711054431-jj23l6adsm7367b7
Merged decltype branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#pragma once
2
 
 
3
 
#include <QDBusPendingReply>
4
 
#include <QFuture>
5
 
#include <QObject>
6
 
 
7
 
#include <memory>
8
 
 
9
 
namespace unity
10
 
{
11
 
namespace storage
12
 
{
13
 
namespace qt
14
 
{
15
 
namespace client
16
 
{
17
 
namespace internal
18
 
{
19
 
namespace remote_client
20
 
{
21
 
 
22
 
class FinishDownloadHandler : public QObject
23
 
{
24
 
    Q_OBJECT
25
 
 
26
 
public:
27
 
    FinishDownloadHandler(QDBusPendingReply<void> const& reply);
28
 
 
29
 
    QFuture<void> future();
30
 
 
31
 
public Q_SLOTS:
32
 
    void finished(QDBusPendingCallWatcher* call);
33
 
 
34
 
private:
35
 
    QDBusPendingCallWatcher watcher_;
36
 
    QFutureInterface<void> qf_;
37
 
};
38
 
 
39
 
}  // namespace remote_client
40
 
}  // namespace internal
41
 
}  // namespace client
42
 
}  // namespace qt
43
 
}  // namespace storage
44
 
}  // namespace unity