/* * Copyright 2006-2011, Stephan Aßmus . * All rights reserved. Distributed under the terms of the MIT License. */ #ifndef APP_H #define APP_H #include #include #include class MainWindow; class App : public BApplication { public: App(); virtual ~App(); virtual bool QuitRequested(); virtual void ReadyToRun(); virtual void MessageReceived(BMessage* message); virtual void Pulse(); void SetNamePanelSize(const BSize& size); BSize NamePanelSize(); void ToggleAutoStart(); bool AutoStart() { return fAutoStart; } private: void _StoreSettingsIfNeeded(); bool fSettingsChanged; BSize fNamePanelSize; bool fAutoStart; }; #endif // APP_H