repository_infos: Enable automatic updates on the main Haiku repostiory.
[haiku.git] / src / apps / haikudepot / ui / App.h
blobb596d73291f1f86ad8f3080a299ef6637ca976f2
1 /*
2 * Copyright 2013, Stephan Aßmus <superstippi@gmx.de>.
3 * All rights reserved. Distributed under the terms of the MIT License.
4 */
5 #ifndef APP_H
6 #define APP_H
9 #include <Application.h>
12 class BEntry;
13 class MainWindow;
16 class App : public BApplication {
17 public:
18 App();
19 virtual ~App();
21 virtual bool QuitRequested();
22 virtual void ReadyToRun();
23 virtual void MessageReceived(BMessage* message);
24 virtual void RefsReceived(BMessage* message);
25 virtual void ArgvReceived(int32 argc, char* argv[]);
27 private:
28 void _Open(const BEntry& entry);
29 void _ShowWindow(MainWindow* window);
31 bool _LoadSettings(BMessage& settings);
32 void _StoreSettings(const BMessage& windowSettings);
34 void _CheckPackageDaemonRuns();
35 bool _LaunchPackageDaemon();
37 private:
38 MainWindow* fMainWindow;
39 int32 fWindowCount;
41 BMessage fSettings;
42 bool fSettingsRead;
46 #endif // APP_H