1 #ifndef _ZIPOMATIC_H_ 2 #define _ZIPOMATIC_H_ 3 4 5 #include <Application.h> 6 #include <Invoker.h> 7 #include <Message.h> 8 #include <Rect.h> 9 10 #include "ZipOMaticSettings.h" 11 12 13 class ZipOMatic : public BApplication 14 { 15 public: 16 ZipOMatic(); 17 ~ZipOMatic(); 18 19 virtual void ReadyToRun(); 20 virtual void RefsReceived(BMessage* message); 21 virtual void MessageReceived(BMessage* message); 22 virtual bool QuitRequested(); 23 24 private: 25 status_t _ReadSettings(); 26 status_t _WriteSettings(); 27 void _CascadeOnFrameCollision(BRect* frame); 28 void _SilentRelaunch(); 29 void _UseExistingOrCreateNewWindow(BMessage* 30 message = NULL); 31 void _StopZipping(); 32 33 ZippoSettings fSettings; 34 bool fGotRefs; 35 BInvoker* fInvoker; 36 BRect fWindowFrame; 37 }; 38 39 #endif // _ZIPOMATIC_H_ 40 41