X-Git-Url: http://git.maemo.org/git/?p=vicar;a=blobdiff_plain;f=src%2Fvicar-daemon%2Fsrc%2Fcallrouter.h;fp=src%2Fvicar-daemon%2Fsrc%2Fcallrouter.h;h=0000000000000000000000000000000000000000;hp=65288b19d07a52a5a95595a0281fb4a29293bb9d;hb=74800375ecf7f41e290cf7cc7fa9ee8b230be68e;hpb=89f0017e6a73945ea83247472a6fa07d6ee536b5 diff --git a/src/vicar-daemon/src/callrouter.h b/src/vicar-daemon/src/callrouter.h deleted file mode 100755 index 65288b1..0000000 --- a/src/vicar-daemon/src/callrouter.h +++ /dev/null @@ -1,66 +0,0 @@ -/* -@version: 0.6 -@author: Sudheer K. -@license: GNU General Public License -*/ - -#ifndef CALLROUTER_H -#define CALLROUTER_H - -#include -#include -#include -#include -#include "vicardbusadaptor.h" - -#define APPLICATION_DBUS_PATH "/org/maemo/vicar" -#define APPLICATION_DBUS_INTERFACE "org.maemo.vicar" -#define APPLICATION_DBUS_SERVICE "org.maemo.vicar" -#define APPLICATION_FRIENDLY_NAME "VICaR" - -/* CSD CALL plugin D-Bus definitions */ -#define CSD_CALL_BUS_NAME "com.nokia.csd.Call" -#define CSD_CALL_INTERFACE "com.nokia.csd.Call" -#define CSD_CALL_INSTANCE_INTERFACE "com.nokia.csd.Call.Instance" -#define CSD_CALL_CONFERENCE "com.nokia.csd.Call.Conference" -#define CSD_CALL_PATH "/com/nokia/csd/call" -#define CSD_CALL_INSTANCE_PATH "/com/nokia/csd/call/1" -#define CSD_CALL_SERVICE "com.nokia.csd.Call" -#define CSD_SERVICE "com.nokia.csd" - -class CallRouterPrivate; - -class CallRouter : public QObject -{ -Q_OBJECT -Q_CLASSINFO("D-Bus Interface", "org.maemo.vicar") - -public: - CallRouter(QObject *parent = 0); - ~CallRouter(); - void registerDBusService(); - void unregisterDBusService(); - bool isValidPhoneNumber(QString); - -protected: - void startCallStatusMonitors(); - QString convertToDTMFCode(QString); - bool isExcludedNumber(QString); - bool placeCall(QString); - -protected slots: - QString callViaCallingCard(QString); - void sendNumberAsDTMFCode(const QDBusMessage& dbusMessage); - void displayDTMFConfirmation(); - void stopCallStatusMonitors(); - - //D-Bus Interface Methods -public slots: - bool isRunning(); - QString callInternationalNumber(const QString& internationalNumber); - -private: - CallRouterPrivate * const d; -}; - -#endif // CALLROUTER_H