summaryrefslogtreecommitdiff
path: root/saltoqd/voicecallmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'saltoqd/voicecallmanager.h')
-rw-r--r--saltoqd/voicecallmanager.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/saltoqd/voicecallmanager.h b/saltoqd/voicecallmanager.h
new file mode 100644
index 0000000..eb9e38e
--- /dev/null
+++ b/saltoqd/voicecallmanager.h
@@ -0,0 +1,26 @@
+#ifndef VOICECALLMANAGER_H
+#define VOICECALLMANAGER_H
+
+#include "toqmanager.h"
+
+class VoiceCallManager : public QObject, public ToqManager::EndpointHandler
+{
+ Q_OBJECT
+public:
+ explicit VoiceCallManager(ToqManager *toq);
+
+ void handleMessage(const ToqConnection::Message &msg) Q_DECL_OVERRIDE;
+
+ static void setSilentMode(bool silent);
+
+private:
+ void handleGetPhoneStatusMessage(const ToqConnection::Message &msg);
+
+ static QString getCurrentProfile();
+ static void setProfile(const QString &name);
+
+private:
+ ToqManager *_toq;
+};
+
+#endif // VOICECALLMANAGER_H