1/* 2 * Copyright 2010-2017, 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 14class PrefletApp : public BApplication { 15public: 16 PrefletApp(); 17 18 virtual void ReadyToRun(); 19 virtual bool QuitRequested(); 20 21private: 22 PrefletWin* fWindow; 23}; 24 25 26PrefletApp::PrefletApp() 27 : 28 BApplication("application/x-vnd.Haiku-Notifications") 29{ 30} 31 32 33void 34PrefletApp::ReadyToRun() 35{ 36 fWindow = new PrefletWin; 37} 38 39 40bool 41PrefletApp::QuitRequested() 42{ 43 return true; 44} 45 46 47int 48main(int argc, char* argv[]) 49{ 50 PrefletApp app; 51 app.Run(); 52 return 0; 53} 54