Files
Plugin/Source/ThirdParty/include/SenseGlove/Connect/SGBleDevice.hpp
T

53 lines
909 BLFS
C++

/**
* @file
*
* @author Max Lammers <max@senseglove.com>
*
* @section LICENSE
*
* Copyright (c) 2020 - 2025 SenseGlove
*
* @section DESCRIPTION
*
*/
#pragma once
#include "Platform.hpp"
#include "SGDevice.hpp"
namespace SGConnect
{
class IdResponse;
class SGBleDevice;
}// namespace SGConnect
class SGConnect::SGBleDevice : public SGConnect::SGDevice
{
private:
struct Impl;
std::unique_ptr<Impl> Pimpl;
public:
SGBleDevice();
explicit SGBleDevice(const IdResponse& idInfo, const std::string& constantsResponse,
std::string& hapticsResponse, int32_t deviceIndex);
virtual ~SGBleDevice();
public:
virtual void StopUpdating() override;
/// <summary> Retrieve the IPC string for deviceInfo. </summary>
virtual std::string GetDeviceString() const override;
SG_NODISCARD virtual bool IsConnected() const override;
};