Changeset View
Changeset View
Standalone View
Standalone View
src/manager.cpp
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 42 | #ifdef MMQT_STATIC | |||
---|---|---|---|---|---|
44 | , iface(MMQT_DBUS_SERVICE, MMQT_DBUS_PATH, QDBusConnection::sessionBus(), this) | 44 | , iface(MMQT_DBUS_SERVICE, MMQT_DBUS_PATH, QDBusConnection::sessionBus(), this) | ||
45 | , manager(MMQT_DBUS_SERVICE, MMQT_DBUS_PATH, QDBusConnection::sessionBus(), this) | 45 | , manager(MMQT_DBUS_SERVICE, MMQT_DBUS_PATH, QDBusConnection::sessionBus(), this) | ||
46 | #else | 46 | #else | ||
47 | : watcher(MMQT_DBUS_SERVICE, QDBusConnection::systemBus(), QDBusServiceWatcher::WatchForRegistration | QDBusServiceWatcher::WatchForUnregistration, this) | 47 | : watcher(MMQT_DBUS_SERVICE, QDBusConnection::systemBus(), QDBusServiceWatcher::WatchForRegistration | QDBusServiceWatcher::WatchForUnregistration, this) | ||
48 | , iface(MMQT_DBUS_SERVICE, MMQT_DBUS_PATH, QDBusConnection::systemBus(), this) | 48 | , iface(MMQT_DBUS_SERVICE, MMQT_DBUS_PATH, QDBusConnection::systemBus(), this) | ||
49 | , manager(MMQT_DBUS_SERVICE, MMQT_DBUS_PATH, QDBusConnection::systemBus(), this) | 49 | , manager(MMQT_DBUS_SERVICE, MMQT_DBUS_PATH, QDBusConnection::systemBus(), this) | ||
50 | #endif | 50 | #endif | ||
51 | { | 51 | { | ||
52 | QLoggingCategory::setFilterRules(QStringLiteral("modemmaanger-qt.debug = true")); | | |||
53 | QLoggingCategory::setFilterRules(QStringLiteral("modemmanager-qt.warning = true")); | | |||
54 | | ||||
55 | qDBusRegisterMetaType<QList<QDBusObjectPath> >(); | 52 | qDBusRegisterMetaType<QList<QDBusObjectPath> >(); | ||
56 | registerModemManagerTypes(); | 53 | registerModemManagerTypes(); | ||
57 | 54 | | |||
58 | bool serviceFound = manager.isValid(); | 55 | bool serviceFound = manager.isValid(); | ||
59 | if (!serviceFound) { | 56 | if (!serviceFound) { | ||
60 | // find out whether it will be activated automatically | 57 | // find out whether it will be activated automatically | ||
61 | QDBusMessage message = QDBusMessage::createMethodCall("org.freedesktop.DBus", | 58 | QDBusMessage message = QDBusMessage::createMethodCall("org.freedesktop.DBus", | ||
62 | "/org/freedesktop/DBus", | 59 | "/org/freedesktop/DBus", | ||
▲ Show 20 Lines • Show All 169 Lines • Show Last 20 Lines |