Fixed a minor bug wherein a new profile added, will always have its
[confmgr] / confmanager.h
1 #ifndef CONFMANAGER_H
2 #define CONFMANAGER_H
3
4 #include "profile.h"
5 #include "dbusutility.h"
6
7 #define CSD_CALL_BUS_NAME "com.nokia.csd.Call"
8 #define CSD_CALL_INTERFACE "com.nokia.csd.Call"
9 #define CSD_CALL_INSTANCE_INTERFACE "com.nokia.csd.Call.Instance"
10 #define CSD_CALL_CONFERENCE "com.nokia.csd.Call.Conference"
11 #define CSD_CALL_PATH "/com/nokia/csd/call"
12 #define CSD_CALL_INSTANCE_PATH "/com/nokia/csd/call/1"
13 #define CSD_CALL_SERVICE "com.nokia.csd.Call"
14 #define CSD_SERVICE "com.nokia.csd"
15 #define CSD_CALL_STATUS_INTERFACE "com.nokia.csd.Call.Instance.CallStatus"  // Should be 7 for a proper connection
16
17 class confManager : public QObject
18 {
19     Q_OBJECT
20 public:
21     explicit confManager(QObject *parent = 0);
22
23     void setProfile(Profile &p);
24     void startConference();
25
26 public slots:
27     void sendDTMF(const QDBusMessage &dBusMessage);
28     void StopCallMonitors();
29     void continueSendDTMF();
30
31 private:
32     void StartCallMonitors();
33
34 private:
35     Profile mProfileInUse;
36     bool mProfileSet;
37     DbusUtility mDBusUtility;
38     unsigned int mInStep;
39 };
40
41 #endif // CONFMANAGER_H