1 /* 2 * Copyright 2007-2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com 3 * Copyright 2021, Haiku, Inc. 4 * Distributed under the terms of the MIT License. 5 * 6 * Authors: 7 * Tri-Edge AI <triedgeai@gmail.com> 8 */ 9 10 #ifndef _CONNECTION_VIEW_H_ 11 #define _CONNECTION_VIEW_H_ 12 13 #include <Window.h> 14 #include <View.h> 15 #include <StringView.h> 16 #include <GroupLayout.h> 17 #include <GroupLayoutBuilder.h> 18 #include <Font.h> 19 #include <String.h> 20 21 namespace Bluetooth { 22 23 class BluetoothIconView; 24 25 class ConnectionView : public BView { 26 public: 27 ConnectionView(BRect frame, 28 BString device, BString address); 29 30 void Pulse(); 31 32 private: 33 BString strMessage; 34 BluetoothIconView* fIcon; 35 BStringView* fMessage; 36 BStringView* fDeviceLabel; 37 BStringView* fDeviceText; 38 BStringView* fAddressLabel; 39 BStringView* fAddressText; 40 }; 41 42 } 43 44 #endif /* _CONNECTION_VIEW_H_ */ 45