Files
OpenVR-AdvancedSettings-frame/src/openvr/lh_console_util.h
T
ykearaandRTUnreal ca0ec3e07d Qt6 (#669)
* update qt6 upgrade progress

* add flawed addition for QRenderTarget and link needed libs

* update to better logging format

* move many assets and qml files into qrc

* get rid of deprecation messages

* remove additional deprecation notices

* make Qt6 finally render on desktop with some progress on vr

* initialize QRhi with QQuickRenderControl

* use default values to stop SegFaults

* fix compilation on windows

* add windows files for aiding in running exe

* fix formatting of testing qt.conf

* first attempt on using textures instead of files in AudioTabController

* Fix public/private access issue

---------

Co-authored-by: RTUnreal <unreal@rtinf.net>
2024-04-03 22:49:24 -05:00

48 lines
974 B
C++

#pragma once
#include "openvr.h"
#include <vector>
#include <utility>
#include <cstdio>
#include <iostream>
#include <memory>
#include <stdexcept>
#include <string>
#include <array>
#include <QProcess>
#include <QString>
#include <QStringList>
#include <QRegularExpression>
namespace lh_con_util
{
struct RXTX_Pair
{
QString RX_Serial = "";
QString TX_Serial = "";
bool Is_Init = false;
bool Is_Paired = false;
};
class LHCUtil
{
private:
QString path_;
bool InPairs( std::string RXSerial );
bool FindAllRX();
bool FindAllTX();
bool path_Init = false;
public:
explicit LHCUtil( QString path )
{
path_ = path;
}
std::vector<RXTX_Pair> RXTX_Pairs_;
bool FindAll();
bool FindConnectedTX( QString RXSerial );
QString GetLinkedTX( QString RXSerial );
QString GetLinkedRX( QString TXSerial );
RXTX_Pair GetConnectedTXRXPair();
bool pairDevice( QString RXSerial );
};
} // namespace lh_con_util