133965Sjdp/*
289857Sobrien * Copyright 2008-09, Oliver Ruiz Dorantes, <oliver.ruiz.dorantes_at_gmail.com>
389857Sobrien * All rights reserved. Distributed under the terms of the MIT License.
433965Sjdp */
533965Sjdp#ifndef EXTENDEDLOCALDEVICEVIEW_H_
633965Sjdp#define EXTENDEDLOCALDEVICEVIEW_H_
733965Sjdp
833965Sjdp#include <View.h>
933965Sjdp#include <Message.h>
1033965Sjdp#include <Invoker.h>
1133965Sjdp#include <Box.h>
1233965Sjdp#include <Bitmap.h>
1333965Sjdp
1433965Sjdp#include <bluetooth/LocalDevice.h>
1533965Sjdp
1633965Sjdp#include "BluetoothDeviceView.h"
1733965Sjdp
1833965Sjdpclass BStringView;
1933965Sjdpclass BitmapView;
2033965Sjdpclass BCheckBox;
2133965Sjdp
2233965Sjdpclass ExtendedLocalDeviceView : public BView
2333965Sjdp{
2433965Sjdppublic:
2533965Sjdp	ExtendedLocalDeviceView(BRect frame, LocalDevice* bDevice,
2633965Sjdp		uint32 resizingMode = B_FOLLOW_LEFT | B_FOLLOW_TOP,
2733965Sjdp		uint32 flags = B_WILL_DRAW);
2833965Sjdp	~ExtendedLocalDeviceView(void);
2933965Sjdp
3033965Sjdp	void SetLocalDevice(LocalDevice* lDevice);
3133965Sjdp
3233965Sjdp
3389857Sobrien	virtual void MessageReceived(BMessage* message);
3489857Sobrien	virtual void AttachedToWindow();
3589857Sobrien	virtual void SetTarget(BHandler* target);
3689857Sobrien	virtual void SetEnabled(bool value);
3789857Sobrien			void ClearDevice();
3889857Sobrien
3989857Sobrienprotected:
4033965Sjdp	LocalDevice*		fDevice;
4133965Sjdp	BCheckBox*			fAuthentication;
4233965Sjdp	BCheckBox*			fDiscoverable;
4389857Sobrien	BCheckBox*			fVisible;
4433965Sjdp	BluetoothDeviceView* fDeviceView;
4533965Sjdp	uint8 fScanMode;
4633965Sjdp
4733965Sjdp};
4833965Sjdp
4933965Sjdp
5033965Sjdp#endif
5133965Sjdp