Ubuntu Download Manager  1.2.0
A session-wide downloading service
download_pendingcall_watcher.h
Go to the documentation of this file.
1 /*
2  * Copyright 2013 Canonical Ltd.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of version 3 of the GNU Lesser General Public
6  * License as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with this library; if not, write to the
15  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  * Boston, MA 02110-1301, USA.
17  */
18 
19 #ifndef UBUNTU_DOWNLOADMANAGER_CLIENT_DOWNLOAD_PENDINGCALL_WATCHER_H
20 #define UBUNTU_DOWNLOADMANAGER_CLIENT_DOWNLOAD_PENDINGCALL_WATCHER_H
21 
22 #include <QObject>
23 #include <ubuntu/transfers/visibility.h>
24 #include "download.h"
25 #include "pending_call_watcher.h"
26 
27 namespace Ubuntu {
28 
29 namespace DownloadManager {
30 
31 class UBUNTU_TRANSFERS_PRIVATE DownloadPCW : public PendingCallWatcher {
32  Q_OBJECT
33 
34  public:
35  DownloadPCW(const QDBusConnection& conn,
36  const QString& servicePath,
37  const QDBusPendingCall& call,
38  Download* parent = 0);
39 
40  private slots:
41  void onFinished(QDBusPendingCallWatcher* watcher);
42 };
43 
44 } // DownloadManager
45 
46 } // Ubuntu
47 
48 #endif // DOWNLOAD_PENDINGCALL_WATCHER_H