xref: /haiku/src/preferences/bluetooth/BluetoothMain.cpp (revision adb0d19d561947362090081e81d90dde59142026)
1 /*
2  * Copyright 2008-09, Oliver Ruiz Dorantes, <oliver.ruiz.dorantes_at_gmail.com>
3  * All rights reserved. Distributed under the terms of the MIT License.
4  */
5 #include <stdio.h>
6 
7 #include <Alert.h>
8 
9 #include "BluetoothMain.h"
10 #include "BluetoothWindow.h"
11 #include "defs.h"
12 
13 
14 
15 BluetoothApplication::BluetoothApplication(void)
16  :	BApplication(BLUETOOTH_APP_SIGNATURE)
17 {
18 	fWindow = new BluetoothWindow(BRect(100, 100, 550, 420));
19 	fWindow->Show();
20 }
21 
22 
23 void
24 BluetoothApplication::AboutRequested()
25 {
26 
27 	(new BAlert("about", "Haiku Bluetooth System, (ARCE)\n\n"
28                              "Created by Oliver Ruiz Dorantes\n\n"
29                              "With support of:\n"
30                              "	- Mika Lindqvist\n"
31                              "	- Maksym Yevmenkin\n\n"
32                              "Thanks to the individuals who helped...\n\n"
33                              "Shipping/donating hardware:\n"
34                              "	- Henry Jair Abril Florez(el Colombian)\n"
35                              "		 & Stefanie Bartolich\n"
36                              "	- Edwin Erik Amsler\n"
37                              "	- Dennis d'Entremont\n"
38                              "	- Luroh\n"
39                              "	- Pieter Panman\n\n"
40                              "Economically:\n"
41                              "	- Karl von Dorf, Andrea Bernardi (OSDrawer),\n"
42                              "	- Matt M, Doug F, Hubert H,\n"
43                              "	- Sebastian B, Andrew M, Jared E,\n"
44                              "	- Frederik H, Tom S, Ferry B,\n"
45                              "	- Greg G, David F, Richard S, Martin W:\n\n"
46                              "With patches:\n"
47                              "	- Fredrik Ekdahl\n"
48                              "	- Raynald Lesieur\n"
49                              "	- Andreas Färber\n\n"
50                              "	- Jörg Meyer\n"
51                              "Testing:\n"
52                              "	- Petter H. Juliussen\n"
53                              "	- Adrien Destugues\n\n"
54                              "Who gave me all the knowledge:\n"
55                              "	- the yellowTAB team", "OK"))->Go();
56 
57 }
58 
59 void
60 BluetoothApplication::MessageReceived(BMessage *message)
61 {
62 	switch (message->what) {
63 		case kMsgAddToRemoteList:
64 			fWindow->PostMessage(message);
65 			break;
66 		default:
67 			BApplication::MessageReceived(message);
68 	}
69 }
70 
71 int
72 main(int, char**)
73 {
74 	BluetoothApplication myApplication;
75 	myApplication.Run();
76 
77 	return 0;
78 }
79