#ifndef MANAGER_H #define MANAGER_H #include "watchconnector.h" #include "dbusconnector.h" #include "voicecallmanager.h" #include #include #include #include #include #include using namespace QtContacts; using namespace CommHistory; class Manager : public QObject { Q_OBJECT QBluetoothLocalDevice btDevice; watch::WatchConnector *watch; DBusConnector *dbus; VoiceCallManager *voice; MNotification notification; QContactManager *contacts; QContactDetailFilter numberFilter; GroupManager *conversations; public: explicit Manager(watch::WatchConnector *watch, DBusConnector *dbus, VoiceCallManager *voice); Q_INVOKABLE QString findPersonByNumber(QString number); Q_INVOKABLE void processUnreadMessages(GroupObject *group); signals: public slots: void hangupAll(); protected slots: void onPebbleChanged(); void onConnectedChanged(); void onActiveVoiceCallChanged(); void onVoiceError(const QString &message); void onActiveVoiceCallStatusChanged(); void onConversationGroupAdded(GroupObject *group); void onUnreadMessagesChanged(); }; #endif // MANAGER_H