haiku/headers/private/bluetooth/ConnectionIncoming.h
Oliver Ruiz Dorantes 3205e523cd Implement pairing with a remote bluetooth device
- Fix PincodeWindow to send the pincode commands dissapear after clicking 
- Improve the debug output of bluetooth_server
- Handle all needed events for the pairing
- Simple request could send and receive the event before adding the request to the events wanted list. Inverted the order of this sequence.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26614 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-07-24 20:50:49 +00:00

60 lines
1.0 KiB
C++

/*
* Copyright 2007-2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
*
* All rights reserved. Distributed under the terms of the MIT License.
*
*/
#ifndef _CONNECTION_INCOMING_H_
#define _CONNECTION_INCOMING_H_
//----------------------- Global includes ----------------------
#include <AppKit.h>
#include <SupportKit.h>
#include <InterfaceKit.h>
#include <iostream.h>
#include <stdio.h>
#include <stdlib.h>
namespace Bluetooth {
class RemoteDevice;
class ConnectionView
: public BView
{
public:
ConnectionView(BRect frame, const char *name);
~ConnectionView();
virtual void MessageReceived(BMessage *message);
void Draw(BRect update);
void Pulse();
private:
};
class ConnectionIncoming : public BWindow
{
public:
ConnectionIncoming(RemoteDevice* rDevice);
~ConnectionIncoming();
virtual void MessageReceived(BMessage *message);
virtual bool QuitRequested();
private:
ConnectionView* _ConnectionView;
};
}
#ifndef _BT_USE_EXPLICIT_NAMESPACE
using Bluetooth::ConnectionIncoming;
#endif
#endif