summaryrefslogtreecommitdiff
path: root/saltoqd/voicecallmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'saltoqd/voicecallmanager.h')
-rw-r--r--saltoqd/voicecallmanager.h14
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;