From 006d08310e5fafa8b66520318598122603e32d8c Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Fri, 1 Aug 2014 12:57:32 +0200 Subject: Provide Settings object via constructor --- daemon/voicecallmanager.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'daemon/voicecallmanager.h') diff --git a/daemon/voicecallmanager.h b/daemon/voicecallmanager.h index c078e68..b7241ef 100644 --- a/daemon/voicecallmanager.h +++ b/daemon/voicecallmanager.h @@ -2,6 +2,7 @@ #define VOICECALLMANAGER_H #include "voicecallhandler.h" +#include "settings.h" #include #include @@ -44,7 +45,7 @@ class VoiceCallManager : public QObject Q_PROPERTY(bool isSpeakerMuted READ isSpeakerMuted WRITE setMuteSpeaker NOTIFY speakerMutedChanged) public: - explicit VoiceCallManager(QObject *parent = 0); + explicit VoiceCallManager(Settings *settings, QObject *parent = 0); ~VoiceCallManager(); QDBusInterface* interface() const; @@ -100,6 +101,8 @@ protected Q_SLOTS: private: class VoiceCallManagerPrivate *d_ptr; + Settings *settings; + Q_DISABLE_COPY(VoiceCallManager) Q_DECLARE_PRIVATE(VoiceCallManager) }; -- cgit v1.2.3