2 * Copyright (C) 2011-2014 Canonical, Ltd.
5 * Ugo Riboni <ugo.riboni@canonical.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 3.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20#ifndef ABSTRACTDBUSSERVICEMONITOR_H
21#define ABSTRACTDBUSSERVICEMONITOR_H
25#include <QDBusConnection>
27class QDBusAbstractInterface;
28class QDBusServiceWatcher;
30class Q_DECL_EXPORT AbstractDBusServiceMonitor : public QObject
33 Q_PROPERTY(bool serviceAvailable READ serviceAvailable NOTIFY serviceAvailableChanged)
42 explicit AbstractDBusServiceMonitor(const QString &service, const QString &path, const QString &interface,
43 const Bus bus = SessionBus,
45 ~AbstractDBusServiceMonitor();
47 QDBusAbstractInterface* dbusInterface() const;
49 bool serviceAvailable() const;
52 void serviceAvailableChanged(bool available);
55 void onServiceRegistered(const QString &service);
56 void onServiceUnregistered(const QString &service);
59 virtual QDBusAbstractInterface* createInterface(const QString &service, const QString &path,
60 const QString &interface, const QDBusConnection &connection);
62 const QString m_service;
64 const QString m_interface;
66 QDBusServiceWatcher* m_watcher;
67 QDBusAbstractInterface* m_dbusInterface;
70#endif // ABSTRACTDBUSSERVICEMONITOR_H
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list