VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtVreSelectConnectionPageQML Class Reference

Detailed Description

DtVreSelectConnectionPageQML provides the interface between the C++ backend and the QML frontend of the connection selection page. It manages the list of available connection drivers and handles communication between the UI and the underlying connection system.

#include <vreSelectConnectionPage.h>

Inheritance diagram for makVre::DtVreSelectConnectionPageQML:
[legend]

Public Slots

void setDrivers (QVariantList list)
 
void addDriver (DtVreSelectConnectionPageDriver *driver)
 

Signals

void driversChanged (QVariantList list)
 
void driversDoneLoading ()
 

Public Member Functions

 DtVreSelectConnectionPageQML (QObject *parent=nullptr)
 
virtual ~DtVreSelectConnectionPageQML () override
 
virtual QVariantList getDrivers ()
 
virtual Q_INVOKABLE void back ()
 

Protected Member Functions

virtual DtVreMessageResult handleHLADriverMessage (DtVreMessage *msg)
 
virtual DtVreMessageResult handleDISDriverMessage (DtVreMessage *msg)
 

Protected Attributes

QList< DtVreSelectConnectionPageDriver * > myDrivers
 
DtPlayerStationAppmyApp
 

Properties

QVariantList drivers
 

Constructor & Destructor Documentation

◆ DtVreSelectConnectionPageQML()

makVre::DtVreSelectConnectionPageQML::DtVreSelectConnectionPageQML ( QObject * parent = nullptr)
explicit

Constructor.

Parameters
parentOptional parent QObject for memory management

Creates a new QML interface for the connection selection page. Registers message handlers and requests connection information.

◆ ~DtVreSelectConnectionPageQML()

virtual makVre::DtVreSelectConnectionPageQML::~DtVreSelectConnectionPageQML ( )
overridevirtual

Destructor.

Cleans up resources and unregisters message handlers.

Member Function Documentation

◆ getDrivers()

virtual QVariantList makVre::DtVreSelectConnectionPageQML::getDrivers ( )
virtual

Gets the list of available connection drivers.

Returns
List of connection drivers as QVariantList

Returns the current list of available connection drivers (DIS, HLA) for display in the QML interface. Each driver contains information about the connection protocol and its configuration options.

◆ back()

virtual Q_INVOKABLE void makVre::DtVreSelectConnectionPageQML::back ( )
virtual

Invokable method to navigate back.

QML-invokable method that handles back navigation requests from the UI. This is typically connected to back buttons in the QML interface.

◆ handleHLADriverMessage()

virtual DtVreMessageResult makVre::DtVreSelectConnectionPageQML::handleHLADriverMessage ( DtVreMessage * msg)
protectedvirtual

Handles HLA connection information messages.

Parameters
msgPointer to the HLA connection info message
Returns
Message handling result

Processes messages containing information about available HLA connections and updates the driver list accordingly.

◆ handleDISDriverMessage()

virtual DtVreMessageResult makVre::DtVreSelectConnectionPageQML::handleDISDriverMessage ( DtVreMessage * msg)
protectedvirtual

Handles DIS connection information messages.

Parameters
msgPointer to the DIS connection info message
Returns
Message handling result

Processes messages containing information about available DIS connections and updates the driver list accordingly.

◆ setDrivers

void makVre::DtVreSelectConnectionPageQML::setDrivers ( QVariantList list)
slot

Sets the list of connection drivers.

Parameters
listNew list of connection drivers

Updates the internal list of connection drivers and notifies the QML interface of the change.

◆ addDriver

void makVre::DtVreSelectConnectionPageQML::addDriver ( DtVreSelectConnectionPageDriver * driver)
slot

Adds a connection driver to the list.

Parameters
driverPointer to the driver to add

Adds a new connection driver to the list of available drivers and updates the QML interface.

◆ driversChanged

void makVre::DtVreSelectConnectionPageQML::driversChanged ( QVariantList list)
signal

Signal emitted when the driver list changes.

Parameters
listUpdated list of drivers

Notifies the QML interface that the list of available connection drivers has changed.

◆ driversDoneLoading

void makVre::DtVreSelectConnectionPageQML::driversDoneLoading ( )
signal

Signal emitted when all drivers have finished loading.

Notifies the QML interface that all connection drivers have finished loading and the UI can be updated accordingly.

Member Data Documentation

◆ myDrivers

QList<DtVreSelectConnectionPageDriver*> makVre::DtVreSelectConnectionPageQML::myDrivers
protected

List of available connection drivers.

Stores the current list of available connection drivers that can be selected and configured by the user.

◆ myApp

DtPlayerStationApp* makVre::DtVreSelectConnectionPageQML::myApp
protected

Pointer to the player station application.

Provides access to application services and state. Not owned by this class, simply a convenience pointer.

Property Documentation

◆ drivers

QVariantList makVre::DtVreSelectConnectionPageQML::drivers
readwrite

List of available connection drivers.

QML property that exposes the list of available connection drivers to the QML frontend. Can be accessed and modified from QML.


The documentation for this class was generated from the following file: