1 /* 2 * Copyright 2010, Haiku, Inc. All Rights Reserved. 3 * Copyright 2009, Pier Luigi Fiorini. 4 * Distributed under the terms of the MIT License. 5 * 6 * Authors: 7 * Pier Luigi Fiorini, pierluigi.fiorini@gmail.com 8 */ 9 10 #include <Application.h> 11 12 #include "PrefletWin.h" 13 14 class PrefletApp : public BApplication { 15 public: 16 PrefletApp(); 17 18 virtual void ReadyToRun(); 19 virtual bool QuitRequested(); 20 21 private: 22 PrefletWin* fWindow; 23 }; 24 25 26 PrefletApp::PrefletApp() 27 : 28 BApplication("application/x-vnd.Haiku-Notifications") 29 { 30 } 31 32 33 void 34 PrefletApp::ReadyToRun() 35 { 36 fWindow = new PrefletWin; 37 } 38 39 40 bool 41 PrefletApp::QuitRequested() 42 { 43 return true; 44 } 45 46 47 int 48 main(int argc, char* argv[]) 49 { 50 PrefletApp app; 51 app.Run(); 52 return 0; 53 } 54