diff options
Diffstat (limited to 'daemon/manager.h')
| -rw-r--r-- | daemon/manager.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/daemon/manager.h b/daemon/manager.h index 45ba50a..ea24f9e 100644 --- a/daemon/manager.h +++ b/daemon/manager.h @@ -5,9 +5,11 @@ #include "dbusconnector.h" #include "voicecallmanager.h" #include "notificationmanager.h" +#include "watchcommands.h" #include <QObject> #include <QBluetoothLocalDevice> +#include <QDBusContext> #include <QtContacts/QContactManager> #include <QtContacts/QContactDetailFilter> #include <MNotification> @@ -15,7 +17,9 @@ using namespace QtContacts; -class Manager : public QObject +class Manager : + public QObject, + protected QDBusContext { Q_OBJECT LOG4QT_DECLARE_QCLASS_LOGGER @@ -29,17 +33,24 @@ class Manager : public QObject VoiceCallManager *voice; NotificationManager *notifications; + WatchCommands *commands; + MNotification notification; QContactManager *contacts; QContactDetailFilter numberFilter; + QString lastSeenMpris; + public: explicit Manager(watch::WatchConnector *watch, DBusConnector *dbus, VoiceCallManager *voice, NotificationManager *notifications); Q_INVOKABLE QString findPersonByNumber(QString number); + Q_INVOKABLE QString mpris(); + QVariantMap mprisMetadata; signals: + void mprisMetadataChanged(QVariantMap); public slots: void hangupAll(); @@ -53,6 +64,9 @@ protected slots: void onNotifyError(const QString &message); void onSmsNotify(const QString &sender, const QString &data); void onEmailNotify(const QString &sender, const QString &data,const QString &subject); + void onMprisPropertiesChanged(QString,QMap<QString,QVariant>,QStringList); + void setMprisMetadata(QDBusArgument metadata); + void setMprisMetadata(QVariantMap metadata); }; class PebbledProxy : public QObject |
