1 /* 2 * Copyright 1999, Be Incorporated. All Rights Reserved. 3 * This file may be used under the terms of the Be Sample Code License. 4 * 5 */ 6 7 #include "clock.h" 8 #include "cl_wind.h" 9 10 11 const char *kAppSignature = "application/x-vnd.Haiku-Clock"; 12 13 14 THelloApplication::THelloApplication() 15 :BApplication(kAppSignature) 16 { 17 BRect windowRect(100, 100, 182, 182); 18 myWindow = new TClockWindow(windowRect, "Clock"); 19 myWindow->Show(); 20 } 21 22 23 THelloApplication::~THelloApplication() 24 { 25 } 26 27 28 void 29 THelloApplication::MessageReceived(BMessage *msg) 30 { 31 BApplication::MessageReceived(msg); 32 } 33 34 35 // #pragma mark - 36 37 38 int 39 main(int argc, char* argv[]) 40 { 41 THelloApplication app; 42 app.Run(); 43 44 return 0; 45 } 46 47