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