3205e523cd
- 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
61 lines
1.0 KiB
C++
61 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 _PINCODE_REQUEST_WINDOW_H
|
|
#define _PINCODE_REQUEST_WINDOW_H
|
|
|
|
|
|
#include <View.h>
|
|
#include <Window.h>
|
|
|
|
#include <bluetooth/bluetooth.h>
|
|
|
|
class BStringView;
|
|
class BButton;
|
|
class BTextControls;
|
|
|
|
namespace Bluetooth {
|
|
|
|
class RemoteDevice;
|
|
|
|
class PincodeView : public BView
|
|
{
|
|
public:
|
|
/* Constructors & Destructor*/
|
|
PincodeView(BRect rect);
|
|
|
|
void SetBDaddr(const char* address);
|
|
|
|
BStringView* fMessage;
|
|
BStringView* fRemoteInfo;
|
|
BButton* fAcceptButton;
|
|
BButton* fCancelButton;
|
|
BTextControl* fPincodeText;
|
|
|
|
};
|
|
|
|
class PincodeWindow : public BWindow
|
|
{
|
|
public:
|
|
PincodeWindow(bdaddr_t address, hci_id hid);
|
|
virtual void MessageReceived(BMessage *msg);
|
|
virtual bool QuitRequested();
|
|
|
|
private:
|
|
PincodeView* fView;
|
|
bdaddr_t bdaddr;
|
|
bdaddr_t fBdaddr;
|
|
hci_id fHid;
|
|
};
|
|
|
|
}
|
|
|
|
#ifndef _BT_USE_EXPLICIT_NAMESPACE
|
|
using Bluetooth::PincodeWindow;
|
|
#endif
|
|
|
|
#endif |