xref: /haiku/headers/private/bluetooth/ConnectionIncoming.h (revision 91cbfa855ee63eae9eff3131a2f8712b0333d395)
1b12daa5fSOliver Ruiz Dorantes /*
2*91cbfa85SFredrik Modéen * Copyright 2007-2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
316196fd3SFredrik Modéen * Copyright 2021, Haiku, Inc.
416196fd3SFredrik Modéen * Distributed under the terms of the MIT License.
5b12daa5fSOliver Ruiz Dorantes *
616196fd3SFredrik Modéen * Authors:
716196fd3SFredrik Modéen * 		Tri-Edge AI <triedgeai@gmail.com>
8b12daa5fSOliver Ruiz Dorantes */
9b12daa5fSOliver Ruiz Dorantes 
10b12daa5fSOliver Ruiz Dorantes #ifndef _CONNECTION_INCOMING_H_
11b12daa5fSOliver Ruiz Dorantes #define _CONNECTION_INCOMING_H_
12b12daa5fSOliver Ruiz Dorantes 
137ac433fcSMichael Lotz #include <iostream>
14b12daa5fSOliver Ruiz Dorantes #include <stdio.h>
15b12daa5fSOliver Ruiz Dorantes #include <stdlib.h>
16b12daa5fSOliver Ruiz Dorantes 
1716196fd3SFredrik Modéen #include <AppKit.h>
1816196fd3SFredrik Modéen #include <SupportKit.h>
1916196fd3SFredrik Modéen #include <InterfaceKit.h>
2016196fd3SFredrik Modéen 
2116196fd3SFredrik Modéen #include <ConnectionView.h>
2216196fd3SFredrik Modéen #include <bluetooth/RemoteDevice.h>
2316196fd3SFredrik Modéen #include <bluetooth/bdaddrUtils.h>
2416196fd3SFredrik Modéen 
2516196fd3SFredrik Modéen 
263205e523SOliver Ruiz Dorantes namespace Bluetooth {
273205e523SOliver Ruiz Dorantes 
28b12daa5fSOliver Ruiz Dorantes class RemoteDevice;
2916196fd3SFredrik Modéen class ConnectionView;
30b12daa5fSOliver Ruiz Dorantes 
3116196fd3SFredrik Modéen class ConnectionIncoming : public BWindow {
32b12daa5fSOliver Ruiz Dorantes public:
3316196fd3SFredrik Modéen 						ConnectionIncoming(bdaddr_t address);
3416196fd3SFredrik Modéen 						ConnectionIncoming(RemoteDevice* rDevice = NULL);
35b12daa5fSOliver Ruiz Dorantes 						~ConnectionIncoming();
3616196fd3SFredrik Modéen 
37b12daa5fSOliver Ruiz Dorantes 	virtual void		MessageReceived(BMessage* message);
38b12daa5fSOliver Ruiz Dorantes 	virtual bool		QuitRequested();
39b12daa5fSOliver Ruiz Dorantes 
40b12daa5fSOliver Ruiz Dorantes private:
4116196fd3SFredrik Modéen 	ConnectionView*				fView;
42b12daa5fSOliver Ruiz Dorantes };
43b12daa5fSOliver Ruiz Dorantes 
443205e523SOliver Ruiz Dorantes }
453205e523SOliver Ruiz Dorantes 
463205e523SOliver Ruiz Dorantes #ifndef _BT_USE_EXPLICIT_NAMESPACE
473205e523SOliver Ruiz Dorantes using Bluetooth::ConnectionIncoming;
483205e523SOliver Ruiz Dorantes #endif
493205e523SOliver Ruiz Dorantes 
5016196fd3SFredrik Modéen #endif /* _CONNECTION_INCOMING_H_ */
51