64 friend class MainWindow; |
64 friend class MainWindow; |
65 |
65 |
66 public: |
66 public: |
67 Bmsapp(); |
67 Bmsapp(); |
68 |
68 |
69 static QDir getResourceDir(); /* System wide resources */ |
|
70 |
|
71 /** |
69 /** |
72 * @brief Blocking call that executes the application. |
70 * @brief Blocking call that executes the application. |
73 * @return Exit code from the application. |
71 * @return Exit code from the application. |
74 */ |
72 */ |
75 static int run(bool useDevelop, bool startConfig); |
73 static int run(bool useDevelop, bool startConfig); |
76 |
74 |
77 MainWindow* m_mainWindow; |
75 MainWindow* m_mainWindow; |
78 |
76 |
79 private: |
77 private: |
80 /** |
|
81 * @brief Ensure some directories and files exist. |
|
82 * @return true if all is ok. |
|
83 */ |
|
84 static bool ensureDirectoriesExist(); |
|
85 |
|
86 /** |
78 /** |
87 * @brief Run before showing MainWindow, does all system setup. |
79 * @brief Run before showing MainWindow, does all system setup. |
88 * @return false if anything goes awry, true if it's ok to start MainWindow. |
80 * @return false if anything goes awry, true if it's ok to start MainWindow. |
89 */ |
81 */ |
90 static bool initialize(bool useDevelop); |
82 static bool initialize(bool useDevelop); |