haiku/headers/private/bluetooth/BluetoothIconView.h
Fredrik Modéen 16196fd3b7 Bluetooth Pref: Updating view of incomming connection when Paring
This is not my code but from ticket #9265
* Made a picture of how it looks, old left andnew right. https://imagebin.ca/v/5wIe6TIMzw4C
* Think we have a bug somewhere and don't store the name of the Bluetooth device (shown i the image).
* I have made som small changes but other than that it's the same code as in the ticket
* Ran the src/tools/checkstyle/checkstyle.py to get som style stuff, probably missed some anyway.

Change-Id: Ifeb75c8ad890f541e100cdcf78b394675a48ada9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3825
Reviewed-by: Fredrik Modéen <fredrik@modeen.se>
2021-03-30 17:25:13 +00:00

34 lines
556 B
C++

/*
* Copyright 2021, Haiku, Inc.
* Distributed under the terms of the MIT License.
*
* Authors:
* Tri-Edge AI <triedgeai@gmail.com>
*/
#ifndef _BLUETOOTH_ICON_VIEW_H_
#define _BLUETOOTH_ICON_VIEW_H_
#include <View.h>
#include <Bitmap.h>
#include <MimeType.h>
#include <IconUtils.h>
namespace Bluetooth {
class BluetoothIconView : public BView {
public:
BluetoothIconView();
~BluetoothIconView();
void Draw(BRect rect);
private:
static BBitmap* fBitmap;
static int32 fRefCount;
};
}
#endif /* _BLUETOOTH_ICON_VIEW_H_ */