haiku/headers/private/bluetooth/PincodeWindow.h
Fredrik Modéen 91cbfa855e Bluetooth Pref: Inactiveate button and things that don't do anything.
* Inactiveate button and things that don't do anything.
* Those button and controlles that hade any actions in the Bluetooth Pref now saves in settings.
* Fix some windows/views.
* Fix Copyright in last Bluetooth commit.
* Last commit before we move saving settings with BMessage.
* Changed PoupMenu to BOptionPopUp

Change-Id: I32b85f1985b558d24b294a184665e08e6ce18a7d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3829
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-04-10 20:28:43 +00:00

65 lines
1.3 KiB
C++

/*
* Copyright 2007-2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
* Copyright 2021, Haiku, Inc.
* Distributed under the terms of the MIT License.
*
* Authors:
* Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>
* Tri-Edge AI <triedgeai@gmail.com>
*/
#ifndef _PINCODE_REQUEST_WINDOW_H_
#define _PINCODE_REQUEST_WINDOW_H_
#include <View.h>
#include <Window.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/HCI/btHCI.h>
#include <BluetoothIconView.h>
class BStringView;
class BButton;
class BTextControl;
namespace Bluetooth {
class RemoteDevice;
class PincodeWindow : public BWindow {
public:
PincodeWindow(bdaddr_t address, hci_id hid);
PincodeWindow(RemoteDevice* rDevice);
virtual void MessageReceived(BMessage* msg);
virtual bool QuitRequested();
void SetBDaddr(BString address);
private:
void InitUI();
bdaddr_t fBdaddr;
hci_id fHid;
BStringView* fMessage;
BStringView* fRemoteInfo;
BButton* fAcceptButton;
BButton* fCancelButton;
BTextControl* fPincodeText;
BluetoothIconView* fIcon;
BStringView* fMessage2;
BStringView* fDeviceLabel;
BStringView* fDeviceText;
BStringView* fAddressLabel;
BStringView* fAddressText;
};
}
#ifndef _BT_USE_EXPLICIT_NAMESPACE
using Bluetooth::PincodeWindow;
#endif
#endif /* _PINCODE_REQUEST_WINDOW_H_ */