VR-Engage  2.2
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 //!
43 //! Creates a new waiting page UI for the specified application and target window.
44 DtVreWaitingPage(DtPlayerStationApp& app, const std::string& target_window = "");
45
46 //! \brief Destructor
47 //!
48 //! Cleans up resources used by the waiting page.
49 virtual ~DtVreWaitingPage() override;
50
51 //! \brief Updates the waiting page each frame
52 //! \param dt Time in seconds since the last update
53 //!
54 //! Called once per frame to update the waiting page UI elements,
55 //! such as progress indicators or animations.
56 virtual void tick(double dt) override;
57
58 //! \brief Initializes the main content of the page
59 //!
60 //! Sets up the main content area of the page, including any
61 //! waiting indicators and cancel buttons. Called during initialization.
62 virtual void initMain() override;
63
64 //! \brief Controls the background video playback
65 //! \param visible True to play the video, false to pause it
66 //!
67 //! Controls whether any background video is playing or paused.
68 virtual void setVideoPlaying(bool visible);
69
70 //! \brief Sets the visibility of the waiting page
71 //! \param visible True to show the page, false to hide it
72 //!
73 //! Controls whether the waiting page is visible. This override adds
74 //! additional page-specific handling when visibility changes, such as
75 //! updating waiting indicators or timers.
76 virtual void setVisibility(bool visible) override;
77
78 //! \brief Sets the visibility of the menu part of the page
79 //! \param visible True to show the menu, false to hide it
80 //!
81 //! Controls whether the menu portion of the waiting page is visible.
82 //! This allows showing/hiding just the menu while keeping the rest
83 //! of the page visible.
84 virtual void setMenuVisibility(bool visible);
85
86public slots:
87 //! \brief Handles back button clicks
88 //!
89 //! Called when the back button is clicked. This typically cancels
90 //! the current operation and returns to the previous screen.
91 virtual void slot_backClicked() override;
92
93 //! \brief Handles connection button clicks
94 //!
95 //! Called when the connection button is clicked. This typically
96 //! initiates or retries a connection operation.
97 virtual void slot_connectionClicked() override;
98};
99
100} // namespace makVre
Top-level class representing the VR-Engage application.
Definition playerStationApp.h:163
virtual void slot_backClicked() override
Handles back button clicks.
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 setVideoPlaying(bool visible)
Controls the background video playback.
virtual ~DtVreWaitingPage() override
Destructor.
virtual void slot_connectionClicked() override
Handles connection button clicks.
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
Include export definitions for this library.
Definition glsVreMessageUtil.h:49