summaryrefslogtreecommitdiff
path: root/daemon/manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/manager.h')
-rw-r--r--daemon/manager.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/daemon/manager.h b/daemon/manager.h
index efe9b82..9a4ed0f 100644
--- a/daemon/manager.h
+++ b/daemon/manager.h
@@ -20,7 +20,7 @@
#include <QtContacts/QContactManager>
#include <QtContacts/QContactDetailFilter>
#include <MNotification>
-#include <Log4Qt/Logger>
+#include <QLoggingCategory>
#include <unicode/translit.h>
@@ -31,7 +31,7 @@ class PebbledProxy;
class Manager : public QObject, protected QDBusContext
{
Q_OBJECT
- LOG4QT_DECLARE_QCLASS_LOGGER
+ QLoggingCategory l;
friend class PebbledProxy;
@@ -103,7 +103,7 @@ private slots:
class PebbledProxy : public QObject, protected QDBusContext
{
Q_OBJECT
- LOG4QT_DECLARE_QCLASS_LOGGER
+ QLoggingCategory l;
Q_PROPERTY(QString Name READ Name NOTIFY NameChanged)
Q_PROPERTY(QString Address READ Address NOTIFY AddressChanged)
@@ -116,7 +116,8 @@ class PebbledProxy : public QObject, protected QDBusContext
inline QVariantMap pebble() const { return manager()->dbus->pebble(); }
public:
- inline explicit PebbledProxy(QObject *parent) : QObject(parent) {}
+ inline explicit PebbledProxy(QObject *parent)
+ : QObject(parent), l(metaObject()->className()) {}
inline QString Name() const { return pebble()["Name"].toString(); }
inline QString Address() const { return pebble()["Address"].toString(); }