36class DtOwnershipTransferExitEventFilter;
114 const std::string& roleName,
115 const std::string& displayLayout,
116 bool spectatorMode)
const;
Provides base classes for shared pointer managed objects with factory creation support.
Entity resolution and mapping system.
Definition entityResolver.h:52
Table-based access to Lua state for configuration data.
Definition initializer.h:38
bool myDisconnectPending
True when a voluntary network disconnect is waiting for divest completion.
Definition ownershipTransferManager.h:237
DtOwnershipTransferManager & operator=(const DtOwnershipTransferManager &)=delete
DtOwnershipTransferManager()=default
double acquireTimeoutSeconds() const
Returns the maximum seconds to wait for an acquire response.
virtual DtVreMessageResult handleStopConnectionRequest(DtVreMessage *message)
Defers a voluntary disconnect until owned entities are divested.
friend class DtOwnershipTransferExitEventFilter
Definition ownershipTransferManager.h:160
void setAcquireTimeoutSeconds(double seconds)
Sets the acquire timeout in seconds. Values <= 0 are ignored with a warning.
virtual void handleMainWindowCloseRequested()
Handles a close event before VR-Vantage begins shutdown.
virtual void cancelDivest(const std::string &reason)
Cancels a pending voluntary disconnect after a release failure.
bool roleTriggersOwnershipTransfer(const DtEntityIdentifier &entityId, const std::string &roleName, const std::string &displayLayout, bool spectatorMode) const
Returns true when a role engagement should trigger ownership transfer.
virtual ~DtOwnershipTransferManager() override
virtual void completeDivest()
Completes a pending exit or voluntary disconnect after every release succeeds or is skipped.
DtOwnershipTransferManager(const DtOwnershipTransferManager &)=delete
double myIdleReleaseTimeoutSeconds
Seconds an owned entity may sit idle in the choose-role panel before ownership is automatically relea...
Definition ownershipTransferManager.h:208
uint64_t myNextRequestId
Monotonic counter used to assign unique request identifiers.
Definition ownershipTransferManager.h:213
virtual bool beginDivest()
Starts releases for all owned entities.
std::set< unsigned long long > myDivestRequestIds
Release request IDs that must succeed before the deferred action may resume.
Definition ownershipTransferManager.h:234
bool isOwnershipTransferAvailable() const
Returns true when the system-level conditions for ownership transfer are met.
virtual void requestExit()
Initiates application exit after divesting all entities owned by this station.
bool myExitCloseApproved
Allows the close event posted after a successful divest to reach VR-Vantage.
Definition ownershipTransferManager.h:228
bool myDivestInProgress
True while an exit or voluntary disconnect waits for owned entities to be divested.
Definition ownershipTransferManager.h:225
virtual void initialize(DtPlayerStationApp *app)
Stores the back-pointer to the owning application.
DtPlayerStationApp * myApp
Back-pointer to the owning DtPlayerStationApp.
Definition ownershipTransferManager.h:195
bool enabled() const
Returns true when the Ownership Transfer feature is active.
bool myEnabled
Definition ownershipTransferManager.h:197
void setIdleReleaseTimeoutSeconds(double seconds)
Sets the idle-release timeout in seconds. A value of 0.0 disables the timer. Negative values are clam...
bool myExitSkipCloseDialog
Suppresses the VR-Vantage confirmation after this manager already confirmed a close.
Definition ownershipTransferManager.h:231
DtVreMessageHandlerGroup myMessageHandlers
Member-scope instance of message handler group.
Definition ownershipTransferManager.h:222
virtual DtVreMessageResult handleDivestResponse(DtVreMessage *message)
Processes terminal responses for release requests created by beginDivest().
double idleReleaseTimeoutSeconds() const
Returns the number of seconds an owned entity may sit idle in the choose-role panel before ownership ...
DtOwnershipTransferExitEventFilter * myExitEventFilter
Main-window filter that defers close events until divest succeeds.
Definition ownershipTransferManager.h:216
virtual void completeExit()
Resumes application exit after successful divest or a failed exit-time release.
void setEnabled(bool enabled)
Sets the master feature toggle.
virtual void parseConfiguration(DtInitTable table)
Populate this instance from a DtInitTable.
uint64_t nextRequestId()
Allocates and returns the next ownership transfer request identifier.
StopConnectionDriverMessage::StopConnectionDriverData myDisconnectDriverData
Driver Data retained while the voluntary disconnect is deferred.
Definition ownershipTransferManager.h:240
double myAcquireTimeoutSeconds
Definition ownershipTransferManager.h:198
Class for managing available entities and roles for engagement.
Definition playerCreationPalette.h:59
Top-level class representing the VR-Engage application.
Definition playerStationApp.h:155
Manager class for connecting message handlers to message types.
Definition vreMessageManager.h:292
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
DtVreUniqueBase()
Definition baseClass.h:358
Defines export macros for the VR-Engage Player Station library.
#define PLAYERSTATION_DLL
Definition export.h:24
Provides configuration initialization for VREngage components.
!
Definition glsVreMessageUtil.h:50
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
Data payload for StopConnectionDriverMessage.
Definition stopConnectionDriver.h:45
Defines the central message manager for the VREngage messaging system.