3 @author: Sudheer K. <scifi1947 at gmail.com>
4 @license: GNU General Public License
11 #include <QDBusMessage>
12 #include <dbusutility.h>
13 #include <gconfutility.h>
14 #include "vicardbusadaptor.h"
16 #define APPLICATION_DBUS_PATH "/org/maemo/vicar"
17 #define APPLICATION_DBUS_INTERFACE "org.maemo.vicar"
18 #define APPLICATION_DBUS_SERVICE "org.maemo.vicar"
19 #define APPLICATION_FRIENDLY_NAME "VICaR"
21 /* CSD CALL plugin D-Bus definitions */
22 #define CSD_CALL_BUS_NAME "com.nokia.csd.Call"
23 #define CSD_CALL_INTERFACE "com.nokia.csd.Call"
24 #define CSD_CALL_INSTANCE_INTERFACE "com.nokia.csd.Call.Instance"
25 #define CSD_CALL_CONFERENCE "com.nokia.csd.Call.Conference"
26 #define CSD_CALL_PATH "/com/nokia/csd/call"
27 #define CSD_CALL_INSTANCE_PATH "/com/nokia/csd/call/1"
28 #define CSD_CALL_SERVICE "com.nokia.csd.Call"
29 #define CSD_SERVICE "com.nokia.csd"
31 class CallRouterPrivate;
33 class CallRouter : public QObject
36 Q_CLASSINFO("D-Bus Interface", "org.maemo.vicar")
39 CallRouter(QObject *parent = 0);
41 void registerDBusService();
42 void unregisterDBusService();
43 bool isValidPhoneNumber(QString);
46 void startCallStatusMonitors();
47 QString convertToDTMFCode(QString);
48 bool isExcludedNumber(QString);
49 bool placeCall(QString);
52 QString callViaCallingCard(QString);
53 void sendNumberAsDTMFCode(const QDBusMessage& dbusMessage);
54 void displayDTMFConfirmation();
55 void stopCallStatusMonitors();
57 //D-Bus Interface Methods
60 QString callInternationalNumber(const QString& internationalNumber);
63 CallRouterPrivate * const d;
66 #endif // CALLROUTER_H