~neon/project-neon/libmm-qt

« back to all changes in this revision

Viewing changes to src/manager.cpp

  • Committer: Jan Grulich
  • Date: 2015-01-22 15:38:14 UTC
  • Revision ID: git-v1:7da89e7468e463a39b16a1ddc679a231c2f9a2e5
Port away from QDebug

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
    , iface(MM_DBUS_SERVICE, MM_DBUS_PATH, QDBusConnection::systemBus(), this)
37
37
    , manager(MM_DBUS_SERVICE, MM_DBUS_PATH, QDBusConnection::systemBus(), this)
38
38
{
 
39
    QLoggingCategory::setFilterRules(QStringLiteral("modemmaanger-qt.debug = true"));
 
40
    QLoggingCategory::setFilterRules(QStringLiteral("modemmanager-qt.warning = true"));
 
41
 
39
42
    qDBusRegisterMetaType<QList<QDBusObjectPath> >();
40
43
    qDBusRegisterMetaType<NMVariantMapMap>();
41
44
    qDBusRegisterMetaType<DBUSManagerStruct>();
81
84
    if (!reply.isError()) {  // enum devices
82
85
        Q_FOREACH(const QDBusObjectPath &path, reply.value().keys()) {
83
86
            const QString uni = path.path();
84
 
            mmDebug() << "Adding device" << uni;
 
87
            qCDebug(MMQT) << "Adding device" << uni;
85
88
 
86
89
            if (uni == MM_DBUS_PATH || !uni.startsWith(MM_DBUS_MODEM_PREFIX))
87
90
                continue;
153
156
        return;
154
157
    }
155
158
 
156
 
    mmDebug() << uni << "has new interfaces:" << interfaces_and_properties.keys();
 
159
    qCDebug(MMQT) << uni << "has new interfaces:" << interfaces_and_properties.keys();
157
160
 
158
161
    // new device, we don't know it yet
159
162
    if (!modemList.contains(uni)) {
178
181
        return;
179
182
    }
180
183
 
181
 
    mmDebug() << uni << "lost interfaces:" << interfaces;
 
184
    qCDebug(MMQT) << uni << "lost interfaces:" << interfaces;
182
185
 
183
186
    ModemDevice::Ptr modem = findModemDevice(uni);
184
187