summaryrefslogtreecommitdiffstats
path: root/src/fbgui/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fbgui/main.cpp')
-rw-r--r--src/fbgui/main.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/fbgui/main.cpp b/src/fbgui/main.cpp
index 051ce65..e14e683 100644
--- a/src/fbgui/main.cpp
+++ b/src/fbgui/main.cpp
@@ -10,8 +10,10 @@
#include <log4cxx/propertyconfigurator.h>
#include "qlog4cxx.h"
+#include "agui.h"
#include "fbgui.h"
#include "ndgui.h"
+#include "console.h"
#include "../common/fbgui.h"
@@ -48,6 +50,7 @@ void printHelp() {
}
int main(int argc, char *argv[]) {
+
// Initialisation of the QApplication:
// In QT, every application is composed of two separate
// components: the GUI-Client and the GUI-Server.
@@ -268,14 +271,6 @@ int main(int argc, char *argv[]) {
else
gPathToDhcpExe = DEFAULT_PATHTODHCPCDEXE;
- // write always a log file
- // // activate file logger if debug mode activated.
- // if (debugMode > -1) {
- // start debug logging to file.
- // qxtLog->addLoggerEngine("file_logger", new LoggerEngine_file(logFilePath));
- // qxtLog->setMinimumLevel("file_logger", QxtLogger::DebugLevel);
- // }
-
// print config
LOG4CXX_DEBUG(logger, "************* CONFIG INFO *************");
LOG4CXX_DEBUG(logger, "configFilePath: " << configFilePath);
@@ -294,7 +289,8 @@ int main(int argc, char *argv[]) {
LOG4CXX_DEBUG(logger, "pathtoexe: " << gPathToDhcpExe);
} else {
LOG4CXX_DEBUG(logger, "Network Discovery deactivated.");
- }LOG4CXX_DEBUG(logger, "*******************************************");
+ }
+ LOG4CXX_DEBUG(logger, "*******************************************");
// set invisible cursor
//QWSServer::instance()->setCursorVisible(false);
@@ -307,7 +303,6 @@ int main(int argc, char *argv[]) {
ndgui ngui;
if (clOpts.contains("nd") || confFileSettings.contains("default/nd")) {
- LOG4CXX_DEBUG(logger, "Initializing ndgui...");
QObject::connect(&ngui, SIGNAL(initFbgui()), &gui, SLOT(init()));
ngui.init();
ngui.show();