1 #ifndef _ZIPOMATIC_WINDOW_H 2 #define _ZIPOMATIC_WINDOW_H 3 4 5 #include <Button.h> 6 #include <StringView.h> 7 #include <Window.h> 8 9 #include "ZipOMaticActivity.h" 10 #include "ZipperThread.h" 11 12 13 class ZippoWindow : public BWindow 14 { 15 public: 16 ZippoWindow(BRect frame, BMessage* refs = NULL); 17 ~ZippoWindow(); 18 19 virtual void MessageReceived(BMessage* message); 20 virtual bool QuitRequested(); 21 virtual void Zoom(BPoint origin, float width, float height); 22 23 bool IsZipping(); 24 void StopZipping(); 25 26 private: 27 28 void _StartZipping(BMessage* message); 29 void _CloseWindowOrKeepOpen(); 30 31 Activity* fActivityView; 32 BStringView* fArchiveNameView; 33 BStringView* fZipOutputView; 34 BButton* fStopButton; 35 36 ZipperThread* fThread; 37 38 bool fWindowGotRefs; 39 bool fZippingWasStopped; 40 int32 fFileCount; 41 42 BInvoker* fWindowInvoker; 43 }; 44 45 #endif // _ZIPOMATIC_WINDOW_H 46 47