TARGET = magicsmoke
DESTDIR = $$PWD/../bin
-#make sure the correct Qt DLLs are used
-CONFIG += qt thread link_prl separate_debug_info
-QT += xml network script scripttools
-QT += widgets printsupport
-
#add the icon for windoze
win32-* {
#RC-File containing the icon:
# Chester DPtr library
include($$PWD/../taurus/chester.pri)
+# Aurora Updater library
+include($$PWD/../taurus/aurora.pri)
+
+#make sure the correct Qt DLLs are used
+CONFIG += qt thread link_prl separate_debug_info
+QT += xml network script scripttools
+QT += widgets printsupport
+
+#activate C++11 for g++
+gcc {
+ message("detected GCC, activating C++11 with GNU extensions")
+ QMAKE_CXXFLAGS += -std=gnu++11
+}
#include "msinterface.h"
#include <ELAM/Engine>
#include "misc.h"
+#include <Aurora>
QString choseLanguage(bool warn)
{
//init localization and profiles
initLanguage();
initProfile();
+ //init updater
+ initUpdater();
}
+void MApplication::initUpdater()
+{
+ updater=new Aurora;
+ //TODO: read a local XML file to set Aurora
+}
+
+
QString MApplication::dataDir()
{
return ::dataDir;
class QMenu;
class EFilter;
+namespace AuroraUpdater{class Aurora;};
///Main application object of MagicSmoke
class MAGICSMOKE_EXPORT MApplication:public QApplication
{
///jump to a specific help page
void help(int);
+ ///initialize the updater
+ void initUpdater();
+
private:
- EFilter *ef;
- QTranslator*qttrans,*mstrans;
+ EFilter *ef=nullptr;
+ QTranslator*qttrans=nullptr,*mstrans=nullptr;
+ AuroraUpdater::Aurora*updater=nullptr;
};
///return the instance of the MApplication
smoke_en.ts
#make sure the correct Qt DLLs are used
-CONFIG += qt thread link_prl separate_debug_info hide_symbols
-QT += xml network script scripttools
-QT += widgets printsupport
+CONFIG += hide_symbols
#compilation output:
OBJECTS_DIR = .ctmp
#make sure dependencies are found
DEPENDPATH += $$INCLUDEPATH
LIBS += -L$$PWD/../bin
-
-#activate C++11 for g++
-gcc {
- message("detected GCC, activating C++11 with GNU extensions")
- QMAKE_CXXFLAGS += -std=gnu++11
-}
\ No newline at end of file
-Subproject commit 31ca5bda9b24c3ae42d6b907ffadeb82c3436998
+Subproject commit 7e6328381dbf9b738dafb7647e21cfe0c146c131