VR-Engage  2.3
Loading...
Searching...
No Matches
vreWaitingPage.h
Go to the documentation of this file.
1/******************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4******************************************************************************/
5
6//! \file vreWaitingPage.h
7//! \brief Defines the waiting page UI component for VR-Engage
8//!
9//! This file contains the DtVreWaitingPage class which provides a UI page
10//! that displays when the user is waiting for a connection or operation to
11//! complete. It includes functionality for displaying a waiting indicator
12//! and handling back/cancel operations.
13#pragma once
14
17
18#include <QUrl>
19
20class QQuickItem;
21
22namespace makVre
23{
24//! \brief Forward declaration of the player station application class
26
27//! \brief Waiting page UI component for VR-Engage
28//!
29//! DtVreWaitingPage provides a UI page that is displayed when the user is
30//! waiting for a connection or operation to complete. It typically shows
31//! a waiting indicator or animation and provides the ability to cancel the
32//! operation and go back to the previous screen. This page follows the standard
33//! header/footer UI layout of VR-Engage.
35{
36 Q_OBJECT;
37
38public:
39 //! \brief Constructor
40 //! \param app Reference to the player station application
41 //! \param target_window Name of the window to display in (empty for default)
42 DtVreWaitingPage(DtPlayerStationApp& app, const std::string& target_window = "");
43
44 //! \brief Destructor
45 virtual ~DtVreWaitingPage() override;
46
47 //! \brief Updates the waiting page each frame
48 //! \param dt Time in seconds since the last update
49 virtual void tick(double dt) override;
50
51 //! \brief Initializes the main content of the page
52 virtual void initMain() override;
53
54 //! \brief Controls the background video playback
55 //! \param visible True to play the video, false to pause it
56 virtual void setVideoPlaying(bool visible);
57
58 //! \brief Sets the visibility of the waiting page
59 //! \param visible True to show the page, false to hide it
60 virtual void setVisibility(bool visible) override;
61
62 //! \brief Sets the visibility of the menu part of the page
63 //! \param visible True to show the menu, false to hide it
64 virtual void setMenuVisibility(bool visible);
65
66protected:
67 //! \brief Hides the menu before navigating to the connection page
68 virtual void onConnectionClicked() override;
69};
70
71} // namespace makVre
Top-level class representing the VR-Engage application.
Definition playerStationApp.h:155
DtVreBaseUI(DtPlayerStationApp &app, const std::string &file, const std::string &target_window="")
Constructor.
virtual void tick(double dt) override
Updates the waiting page each frame.
DtVreWaitingPage(DtPlayerStationApp &app, const std::string &target_window="")
Constructor.
virtual void initMain() override
Initializes the main content of the page.
virtual void onConnectionClicked() override
Hides the menu before navigating to the connection page.
virtual void setVideoPlaying(bool visible)
Controls the background video playback.
virtual ~DtVreWaitingPage() override
Destructor.
virtual void setVisibility(bool visible) override
Sets the visibility of the waiting page.
virtual void setMenuVisibility(bool visible)
Sets the visibility of the menu part of the page.
Defines export macros for the VR-Engage Player Station library.
#define PLAYERSTATION_DLL
Definition export.h:24
!
Definition glsVreMessageUtil.h:50
Defines the thin base class for VR-Engage QML page components.