Multiple simultaneous request support to Communication
[qtmeetings] / src / main.cpp
index 9ed1c36..a7dc0e2 100644 (file)
@@ -1,41 +1,41 @@
-#include <iostream>\r
-#include <fstream> \r
-#include <QApplication>\r
-#include <QTime>\r
-#include "WindowManager.h"\r
-\r
-using namespace std;\r
-\r
-ofstream logfile;\r
-\r
-void DebugOutputHandler( QtMsgType type, const char *msg ) {\r
-    switch( type ) {\r
-        case QtDebugMsg:\r
-            logfile << QTime::currentTime().toString().toAscii().data() << " Debug: " << msg << "\n";\r
-            logfile.flush();\r
-            break;\r
-        case QtCriticalMsg:\r
-            logfile << QTime::currentTime().toString().toAscii().data() << " Critical: " << msg << "\n";\r
-            logfile.flush();\r
-            break;\r
-        case QtWarningMsg:\r
-            logfile << QTime::currentTime().toString().toAscii().data() << " Warning: " << msg << "\n";\r
-            logfile.flush();\r
-            break;\r
-        case QtFatalMsg:\r
-            logfile << QTime::currentTime().toString().toAscii().data() <<  " Fatal: " << msg << "\n";\r
-            logfile.flush();\r
-    }\r
-}\r
-\r
-int main( int argc, char *argv[] )\r
-{\r
-       #ifndef QT_NO_DEBUG_OUTPUT\r
-       logfile.open( "/tmp/qtmeetings.log", ios::app );\r
-       qInstallMsgHandler( DebugOutputHandler );\r
-       #endif\r
-       \r
-       QApplication app( argc, argv );\r
-       WindowManager *windowManager = new WindowManager;\r
-       return app.exec();\r
-}\r
+#include <iostream>
+#include <fstream> 
+#include <QApplication>
+#include <QTime>
+#include "WindowManager.h"
+
+using namespace std;
+
+ofstream logfile;
+
+void DebugOutputHandler( QtMsgType type, const char *msg ) {
+    switch( type ) {
+        case QtDebugMsg:
+            logfile << QTime::currentTime().toString().toAscii().data() << " Debug: " << msg << "\n";
+            logfile.flush();
+            break;
+        case QtCriticalMsg:
+            logfile << QTime::currentTime().toString().toAscii().data() << " Critical: " << msg << "\n";
+            logfile.flush();
+            break;
+        case QtWarningMsg:
+            logfile << QTime::currentTime().toString().toAscii().data() << " Warning: " << msg << "\n";
+            logfile.flush();
+            break;
+        case QtFatalMsg:
+            logfile << QTime::currentTime().toString().toAscii().data() <<  " Fatal: " << msg << "\n";
+            logfile.flush();
+    }
+}
+
+int main( int argc, char *argv[] )
+{
+       #ifdef DEBUG_OUTPUT_TO_FILE
+       logfile.open( "/tmp/qtmeetings.log", ios::app );
+       qInstallMsgHandler( DebugOutputHandler );
+       #endif
+       
+       QApplication app( argc, argv );
+       WindowManager *windowManager = new WindowManager;
+       return app.exec();
+}