Lomiri
Loading...
Searching...
No Matches
dbus-shared.h
1/*
2 * Copyright (C) 2016 Canonical Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 3 as
6 * 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
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * Authors:
17 * Ken VanDine <ken.vandine@canonical.com>
18 */
19
20#ifndef LSS_DBUS_SHARED_H
21#define LSS_DBUS_SHARED_H
22
23#define AETHERCAST_PATH "/org/aethercast"
24#define AETHERCAST_SERVICE "org.aethercast"
25#define AETHERCAST_DEVICE_IFACE "org.aethercast.Device"
26#define AETHERCAST_MANAGER_IFACE "org.aethercast.Manager"
27
28#define watchCall(call, func) \
29 QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(call, this); \
30 QObject::connect(watcher, &QDBusPendingCallWatcher::finished, func)
31
32#endif // LSS_DBUS_SHARED_H