34#include "NDEVRBluetooth/Headers/DLLInfo.h"
35#include "HardwareWidgets/Headers/ConnectionDialog.h"
36#include <NDEVR/Connection.h>
37#include "Base/Headers/Dictionary.h"
41 class BluetoothSetupUI;
45class QBluetoothSocket;
46class QBluetoothDeviceInfo;
55 class NDEVR_BLUETOOTH_API BluetoothConnectionDialog :
public ConnectionDialog
63 explicit BluetoothConnectionDialog(QWidget* parent =
nullptr);
67 ~BluetoothConnectionDialog();
72 void setDevice(
const ConnectionInfo& device);
77 QBluetoothSocket* getBluetoothPort()
const;
82 ConnectionInfo device()
const;
86 virtual void clear()
override;
91 virtual ConnectionInfo connectionInfo()
const override;
96 virtual void setConnectionInfo(
const ConnectionInfo& connection)
override;
102 virtual bool handlesConnection(
const ConnectionInfo& connection)
override;
107 virtual void showEvent(QShowEvent* event)
override;
113 void showPortInfo(
int idx);
126 void fillPortsParameters();
130 void fillPortsInfo();
133 Dictionary<String, ConnectionInfo> m_devices;
134 Dictionary<String, ConnectionInfo> m_services;
135 Ui::BluetoothSetupUI* ui =
nullptr;
136 ConnectionSearchParameters m_params;
137 ConnectionInfo m_selected_device;
138 Thread* m_find_device_thread =
nullptr;
139 Thread* m_find_service_thread =
nullptr;
A ConnectionDialog that allows the user to modify a Bluetooth connection.
virtual ConnectionDialog * createConnectionDialog() const override
Creates a new BluetoothConnectionDialog instance.
virtual StringView icon() const override
Returns the icon name associated with Bluetooth connections.
virtual TranslatedString title() const override
Returns the display title for Bluetooth connections.
virtual bool handlesType(const StringView &connection) const override
Checks whether this factory handles the given connection type string.
Used to, given a Connection, generate an appropriate ConnectionDialog to allow adjustment of paramete...
A virtual dialog that provides an interface that allows the user to adjust certain parameters for a C...
A standard interface for all types of connections that allow transmitting and receiving of data betwe...
A light-weight base class for Log that allows processes to update, without the need for additional in...
The core String View class for the NDEVR API.
The default thread class for executing concurrent sequences in the NDEVR API.
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
The primary namespace for the NDEVR SDK.