+#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)
+ //For maemo fremantle or harmattan use a common path
+ strPath = QDir().homePath() + "/.marketstoday/marketstoday.log";
+#else
+ strPath = "marketstoday.log";
+#endif
+ logFile = new QFile(strPath,this);
+
+ if (!logFile->open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Truncate)) {
+ qDebug() << "MT: Error opening logfile for writing";
+ }