1 #ifndef FILESELECTOR_H 2 #define FILESELECTOR_H 3 4 #include <InterfaceKit.h> 5 #include <StorageKit.h> 6 7 class FileSelector : public BWindow 8 { 9 public: 10 // Constructors, destructors, operators... 11 12 FileSelector(void); 13 ~FileSelector(void); 14 15 typedef BWindow inherited; 16 17 // public constantes 18 enum { 19 START_MSG = 'strt', 20 SAVE_INTO_MSG = 'save' 21 }; 22 23 // Virtual function overrides 24 public: 25 virtual void MessageReceived(BMessage * msg); 26 virtual bool QuitRequested(); 27 status_t Go(entry_ref * ref); 28 29 // From here, it's none of your business! ;-) 30 private: 31 BEntry m_entry; 32 volatile status_t m_result; 33 long m_exit_sem; 34 BFilePanel * m_save_panel; 35 }; 36 37 #endif // FILESELECTOR_H 38 39