SIGSEGV Fixed
[vicar] / src / vicar-telepathy / cpp / main.cpp
index b6024ca..256a294 100644 (file)
@@ -26,9 +26,6 @@ Based on Telepathy-SNOM with copyright notice below.
  * 51 Franklin SQObject::treet, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#include <iostream>
-#include <fstream>
-
 #include <QtCore/QCoreApplication>
 #include <QtCore/QDebug>
 
@@ -49,37 +46,9 @@ Based on Telepathy-SNOM with copyright notice below.
 
 using namespace std;
 
-/*
-ofstream logfile;
-
-void MyOutputHandler(QtMsgType type, const char *msg) {
-    switch (type) {
-        case QtDebugMsg:
-            logfile << QTime::currentTime().toString().toAscii().data() << " Debug: " << msg << "\n";
-            break;
-        case QtCriticalMsg:
-            logfile << QTime::currentTime().toString().toAscii().data() << " Critical: " << msg << "\n";
-            break;
-        case QtWarningMsg:
-            logfile << QTime::currentTime().toString().toAscii().data() << " Warning: " << msg << "\n";
-            break;
-        case QtFatalMsg:
-            logfile << QTime::currentTime().toString().toAscii().data() <<  " Fatal: " << msg << "\n";
-            abort();
-    }
-}
-
-*/
-
 int main(int argc, char ** argv)
 {
 
-//    logfile.open("/var/log/logfile.txt", ios::app);
-//    #ifndef QT_NO_DEBUG_OUTPUT
-//    qInstallMsgHandler(MyOutputHandler);
-//    #endif
-
-
     QCoreApplication app(argc, argv);
 
     // register types:
@@ -94,7 +63,7 @@ int main(int argc, char ** argv)
     qDBusRegisterMetaType<org::freedesktop::Telepathy::CapabilityPair>();
     qDBusRegisterMetaType<org::freedesktop::Telepathy::CapabilityPairList>();
     qDBusRegisterMetaType<org::freedesktop::Telepathy::CapabilityChange>();
-    qDBusRegisterMetaType<org::freedesktop::Telepathy::CapabilityChangeList>();    
+    qDBusRegisterMetaType<org::freedesktop::Telepathy::CapabilityChangeList>();
     qDBusRegisterMetaType<org::freedesktop::Telepathy::RequestableChannelClass>();
     qDBusRegisterMetaType<org::freedesktop::Telepathy::RequestableChannelClassList>();