diff options
author | Javier <dev.git@javispedro.com> | 2015-03-31 17:33:29 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2015-03-31 17:33:29 +0200 |
commit | ebc496d4e8038834e68ef2069bc53a0524da2008 (patch) | |
tree | 07a5b4548a8891bbcac8e9ff1eed99110cc2120f /saltoqd/voicecallmanager.h | |
parent | a8ba1dbd9a1d7955d4e6e66f1e8c2d874873ca01 (diff) | |
download | saltoq-ebc496d4e8038834e68ef2069bc53a0524da2008.tar.gz saltoq-ebc496d4e8038834e68ef2069bc53a0524da2008.zip |
implement the voicecallmanager (dialer, etc.)
Diffstat (limited to 'saltoqd/voicecallmanager.h')
-rw-r--r-- | saltoqd/voicecallmanager.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/saltoqd/voicecallmanager.h b/saltoqd/voicecallmanager.h index 2e6275a..8bd2f5c 100644 --- a/saltoqd/voicecallmanager.h +++ b/saltoqd/voicecallmanager.h @@ -9,30 +9,38 @@ struct ProfileValue { QString type; }; +class ContactsManager; +class OrgNemomobileVoicecallVoiceCallInterface; + class VoiceCallManager : public QObject, public ToqManager::EndpointHandler { Q_OBJECT public: - explicit VoiceCallManager(ToqManager *toq); + explicit VoiceCallManager(ContactsManager *contacts, ToqManager *toq); void handleMessage(const ToqConnection::Message &msg) Q_DECL_OVERRIDE; static void setSilentMode(bool silent); private: - void handleGetPhoneStatusMessage(const ToqConnection::Message &msg); + void sendReply(const ToqConnection::Message &msg, int status, const QString &message); static QString getCurrentProfile(); static void setProfile(const QString &name); - void sendPhoneStatusMessage(); QJsonObject buildPhoneStatus(); + void sendPhoneStatusMessage(); + void sendPhoneRingMessage(); private slots: void handleProfileChanged(bool changed, bool active, const QString &profile); + void handleActiveVoiceCallChanged(); + void handleActiveVoiceCallStatusChanged(); private: ToqManager *_toq; + ContactsManager *_contacts; + OrgNemomobileVoicecallVoiceCallInterface *_activeCall; }; class QDBusArgument; |