Ubuntu Download Manager  0.3.0
A session-wide downloading service
 All Classes Namespaces Files Functions Typedefs Enumerations Enumerator
pending_call_watcher.h
Go to the documentation of this file.
1 /*
2  * Copyright 2014 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_PENDING_CALL_WATCHER_H
20 #define UBUNTU_DOWNLOADMANAGER_CLIENT_PENDING_CALL_WATCHER_H
21 
22 #include <QDBusConnection>
23 #include <QDBusPendingCallWatcher>
24 #include <QObject>
25 
26 namespace Ubuntu {
27 
28 namespace DownloadManager {
29 
30 class PendingCallWatcher : public QDBusPendingCallWatcher {
31  Q_OBJECT
32 
33  public:
34  PendingCallWatcher(const QDBusConnection& conn,
35  const QString& servicePath,
36  const QDBusPendingCall& call,
37  QObject* parent = 0);
38 
39  signals:
40  void callbackExecuted();
41 
42  protected:
43  QDBusConnection _conn;
44  QString _servicePath;
45 };
46 
47 } // DownloadManager
48 
49 } // Ubuntu
50 
51 #endif // PENDING_CALL_WATCHER_H