diff options
Diffstat (limited to 'saltoqd/voicecallmanager.h')
-rw-r--r-- | saltoqd/voicecallmanager.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/saltoqd/voicecallmanager.h b/saltoqd/voicecallmanager.h index 8a7bd85..2e6275a 100644 --- a/saltoqd/voicecallmanager.h +++ b/saltoqd/voicecallmanager.h @@ -3,6 +3,12 @@ #include "toqmanager.h" +struct ProfileValue { + QString key; + QString val; + QString type; +}; + class VoiceCallManager : public QObject, public ToqManager::EndpointHandler { Q_OBJECT @@ -19,6 +25,9 @@ private: static QString getCurrentProfile(); static void setProfile(const QString &name); + void sendPhoneStatusMessage(); + QJsonObject buildPhoneStatus(); + private slots: void handleProfileChanged(bool changed, bool active, const QString &profile); @@ -26,4 +35,11 @@ private: ToqManager *_toq; }; +class QDBusArgument; +QDBusArgument &operator<<(QDBusArgument &argument, const ProfileValue &value); +const QDBusArgument &operator>>(const QDBusArgument &argument, ProfileValue &value); + +Q_DECLARE_METATYPE(ProfileValue) +Q_DECLARE_METATYPE(QList<ProfileValue>) + #endif // VOICECALLMANAGER_H |