TheApp.h 751 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright 2009-2011, Andrea Anzani. All rights reserved.
  3. * Copyright 2009-2011, Pier Luigi Fiorini. All rights reserved.
  4. * Copyright 2021, Jaidyn Levesque. All rights reserved.
  5. * Distributed under the terms of the MIT License.
  6. */
  7. #ifndef _THE_APP_H
  8. #define _THE_APP_H
  9. #include <Application.h>
  10. #include <FindDirectory.h>
  11. class MainWindow;
  12. int main(int argc, char* argv[]);
  13. class TheApp : public BApplication {
  14. public:
  15. TheApp();
  16. virtual void ReadyToRun();
  17. virtual void AboutRequested();
  18. virtual void MessageReceived(BMessage* message);
  19. MainWindow* GetMainWindow() const;
  20. private:
  21. bool _LoadProtocols(directory_which finddir);
  22. bool _LoadProtocols(BPath path);
  23. MainWindow* fMainWin;
  24. };
  25. #endif // _THE_APP_H