1 /* 2 * Copyright 2004-2015 Haiku Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 7 #include <Alert.h> 8 #include <Application.h> 9 #include <Catalog.h> 10 #include <Locale.h> 11 #include <Window.h> 12 13 #include "NetworkWindow.h" 14 15 16 static const char* kSignature = "application/x-vnd.Haiku-Network"; 17 18 19 class Application : public BApplication { 20 public: 21 Application(); 22 23 public: 24 virtual void ReadyToRun(); 25 }; 26 27 28 Application::Application() 29 : 30 BApplication(kSignature) 31 { 32 } 33 34 35 void 36 Application::ReadyToRun() 37 { 38 NetworkWindow* window = new NetworkWindow(); 39 window->Show(); 40 } 41 42 43 // #pragma mark - 44 45 46 int 47 main() 48 { 49 Application* app = new Application(); 50 app->Run(); 51 delete app; 52 return 0; 53 } 54