diff options
| author | Tomasz Sterna <tomek@xiaoka.com> | 2014-06-24 03:36:17 +0200 |
|---|---|---|
| committer | Tomasz Sterna <tomek@xiaoka.com> | 2014-06-24 03:36:17 +0200 |
| commit | 79162515fc2ddb492fc24da80ca2000550971d4f (patch) | |
| tree | f91e013d0ef13931e00245c58baabc9aabd8be47 /daemon/manager.h | |
| parent | 1f0cde7cfd31c180eaceeab4ee0ad24613eaf34c (diff) | |
Ported VoiceCallManager from Nemo/voicecall and wired to WatchConnector
Diffstat (limited to 'daemon/manager.h')
| -rw-r--r-- | daemon/manager.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/daemon/manager.h b/daemon/manager.h new file mode 100644 index 0000000..fd39639 --- /dev/null +++ b/daemon/manager.h @@ -0,0 +1,36 @@ +#ifndef MANAGER_H +#define MANAGER_H + +#include "watchconnector.h" +#include "voicecallmanager.h" + +#include <QObject> +#include <QBluetoothLocalDevice> + +class Manager : public QObject +{ + Q_OBJECT + + QBluetoothLocalDevice btDevice; + + watch::WatchConnector *watch; + VoiceCallManager *voice; + +public: + explicit Manager(watch::WatchConnector *watch, VoiceCallManager *voice); + +signals: + +public slots: + void hangupAll(); + +protected slots: + void onBTDeviceDiscovered(const QBluetoothDeviceInfo & device); + + void onActiveVoiceCallChanged(); + void onVoiceError(const QString &message); + void onActiveVoiceCallStatusChanged(); + +}; + +#endif // MANAGER_H |
