3 DUN - DialUp Networking Preference Application
5 Authors: Sikosis (beos@gravity24hr.com)
6 Misza (misza@ihug.com.au)
8 (C) 2002 OpenBeOS under MIT license
12 #include <Application.h>
19 #include "ModemWindow.h"
20 #include "DUNWindow.h"
22 // ------------------------------------------------------------------------------- //
25 // Application Signature and Title
26 const char *APP_SIGNATURE
= "application/x-vnd.Haiku-DialUpNetworking";
28 // Default Window Size
29 float FormTopDefault
= 100;
30 float FormLeftDefault
= 100;
31 float FormWidthDefault
= 312;
32 float FormHeightDefault
= 250;
34 float FormTopState1
= 100;
35 float FormLeftState1
= 100;
36 float FormWidthState1
= 312;
37 float FormHeightState1
= 282;
39 float FormTopState2
= 100;
40 float FormLeftState2
= 100;
41 float FormWidthState2
= 312;
42 float FormHeightState2
= 282;
44 BRect
windowRect(FormTopDefault
,FormLeftDefault
,FormLeftDefault
+FormWidthDefault
,FormTopDefault
+FormHeightDefault
);
46 // DUN -- constructor for DUN Class
47 DUN::DUN() : BApplication (APP_SIGNATURE
)
49 ptrDUNWindow
= new DUNWindow(windowRect
);
51 // ------------------------------------------------------------------------------- //
54 // DUN::MessageReceived -- handles incoming messages
55 void DUN::MessageReceived (BMessage
*message
)
60 BApplication::MessageReceived(message
); // pass it along ...
64 // ------------------------------------------------------------------------------- //