1/*
2 * Copyright 2005, Waldemar Kornewald <wkornew@gmx.net>
3 * Distributed under the terms of the MIT License.
4 */
5
6#include "PPPUpApplication.h"
7#include "ConnectionWindow.h"
8
9#include <KPPPUtils.h>
10#include <PPPReportDefs.h>
11
12
13int
14main(int argc, const char *argv[])
15{
16	if(argc != 2)
17		return -1;
18
19	const char *interfaceName = argv[1];
20
21	new PPPUpApplication(interfaceName);
22	be_app->Run();
23	delete be_app;
24
25	return 0;
26}
27
28
29PPPUpApplication::PPPUpApplication(const char *interfaceName)
30	: BApplication(APP_SIGNATURE),
31	fInterfaceName(interfaceName)
32{
33}
34
35
36void
37PPPUpApplication::ReadyToRun()
38{
39	BRect rect(150, 50, 450, 435);
40		// TODO: center rect on screen
41	(new ConnectionWindow(rect, fInterfaceName))->Run();
42}
43