xref: /haiku/headers/private/bluetooth/ConnectionIncoming.h (revision d4e4909c6a3fe4290b78be2b78035c4774e3ff18)
1 /*
2 * Copyright 2007-2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
3 * Copyright 2021, Haiku, Inc.
4 * Distributed under the terms of the MIT License.
5 *
6 * Authors:
7 * 		Tri-Edge AI <triedgeai@gmail.com>
8 */
9 
10 #ifndef _CONNECTION_INCOMING_H_
11 #define _CONNECTION_INCOMING_H_
12 
13 #include <iostream>
14 #include <stdio.h>
15 #include <stdlib.h>
16 
17 #include <AppKit.h>
18 #include <SupportKit.h>
19 #include <InterfaceKit.h>
20 
21 #include <ConnectionView.h>
22 #include <bluetooth/RemoteDevice.h>
23 #include <bluetooth/bdaddrUtils.h>
24 
25 
26 namespace Bluetooth {
27 
28 class RemoteDevice;
29 class ConnectionView;
30 
31 class ConnectionIncoming : public BWindow {
32 public:
33 						ConnectionIncoming(bdaddr_t address);
34 						ConnectionIncoming(RemoteDevice* rDevice = NULL);
35 						~ConnectionIncoming();
36 
37 	virtual void		MessageReceived(BMessage* message);
38 	virtual bool		QuitRequested();
39 
40 private:
41 	ConnectionView*				fView;
42 };
43 
44 }
45 
46 #ifndef _BT_USE_EXPLICIT_NAMESPACE
47 using Bluetooth::ConnectionIncoming;
48 #endif
49 
50 #endif /* _CONNECTION_INCOMING_H_ */
51