btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / bin / network / ppp_up / PPPUpApplication.cpp
blob006ab1be75fa4d125d9c488d837ea3b3d1383052
1 /*
2 * Copyright 2005, Waldemar Kornewald <wkornew@gmx.net>
3 * Distributed under the terms of the MIT License.
4 */
6 #include "PPPUpApplication.h"
7 #include "ConnectionWindow.h"
9 #include <KPPPUtils.h>
10 #include <PPPReportDefs.h>
13 int
14 main(int argc, const char *argv[])
16 if(argc != 2)
17 return -1;
19 const char *interfaceName = argv[1];
21 new PPPUpApplication(interfaceName);
22 be_app->Run();
23 delete be_app;
25 return 0;
29 PPPUpApplication::PPPUpApplication(const char *interfaceName)
30 : BApplication(APP_SIGNATURE),
31 fInterfaceName(interfaceName)
36 void
37 PPPUpApplication::ReadyToRun()
39 BRect rect(150, 50, 450, 435);
40 // TODO: center rect on screen
41 (new ConnectionWindow(rect, fInterfaceName))->Run();