MagicSmoke  $VERSION$
mapplication.h
Go to the documentation of this file.
1 //
2 // C++ Interface: main
3 //
4 // Description:
5 //
6 //
7 // Author: Konrad Rosenbaum <konrad@silmor.de>, (C) 2007-2014
8 //
9 // Copyright: See README/COPYING.GPL files that come with this distribution
10 //
11 //
12 
13 #ifndef MAGICSMOKE_MAPP_H
14 #define MAGICSMOKE_MAPP_H
15 
16 #include <QString>
17 #include <QApplication>
18 
19 #include "commonexport.h"
20 
21 class QMenu;
22 class EFilter;
23 namespace AuroraUpdater{class Aurora;};
25 class MAGICSMOKE_COMMON_EXPORT MApplication:public QApplication
26 {
27  Q_OBJECT
28  public:
30  MApplication(int&ac,char**av);
31 
33  static QMenu*helpMenu();
34 
36  static int realmain(int,char**);
38  static QString dataDir();
40  static QString choseLanguage(bool warn=true);
41 
45  static void setDataDir(QString);
49  static void setConfigDir(QString);
50  public slots:
52  void initialize();
54  void setMyStyle();
56  void initLanguage();
58  void initProfile();
59 
61  void aboutMS();
63  void versionDlg();
65  void help();
66 
68  void initUpdater();
69 
70  private slots:
72  void help(int);
73 
75  void initHelpUrl();
76 
78  void updateReadyDownload(const QString&);
80  void updaterReadyInstall();
82  void updaterCompleted();
84  void updaterFailed();
85 
86  private:
87  EFilter *ef=nullptr;
88  QTranslator*qttrans=nullptr,*mstrans=nullptr;
89  AuroraUpdater::Aurora*updater=nullptr;
90 };
91 
93 #define mApp (qobject_cast<MApplication*>(qApp))
94 
95 #endif
#define MAGICSMOKE_COMMON_EXPORT
Definition: commonexport.h:7
Definition: keygen.h:43
static QString dataDir
Definition: msinterface.cpp:36
Definition: mapplication.h:23
Main application object of MagicSmoke.
Definition: mapplication.h:25