src/bmsapp.h

changeset 85
34ca34ed81df
parent 83
6f744c602139
child 89
231a0b1292f3
equal deleted inserted replaced
84:2c503bf10a4f 85:34ca34ed81df
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);

mercurial