Release 0.5-1 contains (Muti-profile support, Contacts Integration)
[vicar] / src / vicar-daemon / src / main.cpp
old mode 100644 (file)
new mode 100755 (executable)
index 53b074c..1874fbd
@@ -1,6 +1,6 @@
 /*
-@version: 0.2
-@author: Sudheer K. <scifi.guy@hotmail.com>
+@version: 0.5
+@author: Sudheer K. <scifi1947 at gmail.com>
 @license: GNU General Public License
 */
 
@@ -8,26 +8,14 @@
 #include <QDBusConnection>
 #include <QDebug>
 #include "callrouter.h"
-#include "gconfutility.h"
+//#include "vicarprofiletypes.h"
 
 int main(int argc, char *argv[])
 {
-    QCoreApplication a(argc, argv);
+    //qDBusRegisterMetaType<org::maemo::vicar::Profile>();
+    //qDBusRegisterMetaType<org::maemo::vicar::ProfileList>();
 
+    QCoreApplication a(argc, argv);
     CallRouter callRouter(&a);
-    callRouter.registerDBusService();
-    qDebug() << "Registered DBus Service " << APPLICATION_DBUS_SERVICE;
-
-    GConfUtility *gconfUtility = new GConfUtility();
-    //If International call routing is already enabled, start monitoring calls
-    //Otherwise wait for the signal from the configuration app
-    if (gconfUtility->getGconfValueBoolean((char *)"routing_enabled")){
-        qDebug() << "Call routing enabled. Starting call monitor..";
-        callRouter.startOutgoingCallMonitor();
-    }
-
-    delete gconfUtility;
-    gconfUtility = 0;
-
     return a.exec();          
 }