2008-06-19 00:57:27 +04:00
|
|
|
/*
|
2021-03-31 22:58:20 +03:00
|
|
|
* Copyright 2007-2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
|
2021-03-27 15:57:27 +03:00
|
|
|
* Copyright 2021, Haiku, Inc.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Tri-Edge AI <triedgeai@gmail.com>
|
|
|
|
*/
|
2008-06-19 00:57:27 +04:00
|
|
|
|
|
|
|
#ifndef _CONNECTION_INCOMING_H_
|
|
|
|
#define _CONNECTION_INCOMING_H_
|
|
|
|
|
2009-02-01 20:29:42 +03:00
|
|
|
#include <iostream>
|
2008-06-19 00:57:27 +04:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2021-03-27 15:57:27 +03:00
|
|
|
#include <AppKit.h>
|
|
|
|
#include <SupportKit.h>
|
|
|
|
#include <InterfaceKit.h>
|
2008-06-19 00:57:27 +04:00
|
|
|
|
2021-03-27 15:57:27 +03:00
|
|
|
#include <ConnectionView.h>
|
|
|
|
#include <bluetooth/RemoteDevice.h>
|
|
|
|
#include <bluetooth/bdaddrUtils.h>
|
2008-06-19 00:57:27 +04:00
|
|
|
|
|
|
|
|
2021-03-27 15:57:27 +03:00
|
|
|
namespace Bluetooth {
|
2008-06-19 00:57:27 +04:00
|
|
|
|
2021-03-27 15:57:27 +03:00
|
|
|
class RemoteDevice;
|
|
|
|
class ConnectionView;
|
2008-06-19 00:57:27 +04:00
|
|
|
|
2021-03-27 15:57:27 +03:00
|
|
|
class ConnectionIncoming : public BWindow {
|
2008-06-19 00:57:27 +04:00
|
|
|
public:
|
2021-03-27 15:57:27 +03:00
|
|
|
ConnectionIncoming(bdaddr_t address);
|
|
|
|
ConnectionIncoming(RemoteDevice* rDevice = NULL);
|
2008-06-19 00:57:27 +04:00
|
|
|
~ConnectionIncoming();
|
2021-03-27 15:57:27 +03:00
|
|
|
|
|
|
|
virtual void MessageReceived(BMessage* message);
|
2008-06-19 00:57:27 +04:00
|
|
|
virtual bool QuitRequested();
|
|
|
|
|
|
|
|
private:
|
2021-03-27 15:57:27 +03:00
|
|
|
ConnectionView* fView;
|
2008-06-19 00:57:27 +04:00
|
|
|
};
|
|
|
|
|
2008-07-25 00:50:49 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
#ifndef _BT_USE_EXPLICIT_NAMESPACE
|
|
|
|
using Bluetooth::ConnectionIncoming;
|
|
|
|
#endif
|
|
|
|
|
2021-03-27 15:57:27 +03:00
|
|
|
#endif /* _CONNECTION_INCOMING_H_ */
|