VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtBackgroundStatus.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (c) 2026 MAK Technologies, Inc.
3  * All rights reserved.
4  ******************************************************************************/
5 
6 #pragma once
7 
11 
12 #include <vrvCore/vrvCore.h>
13 
14 #include <atomic>
15 #include <mutex>
16 #include <string>
17 
18 namespace makVrv
19 {
20 
23  {
24  Left,
25  Center,
26  Right
27  };
28 
37  {
38  public:
39 
47  DtBackgroundStatus(const std::string& name,
48  const std::string& iconName,
49  const std::string& title,
51 
56  DtBackgroundStatus(const DtBackgroundStatus&) = delete;
57  DtBackgroundStatus& operator=(const DtBackgroundStatus&) = delete;
59  DtBackgroundStatus& operator=(DtBackgroundStatus&&) = delete;
61 
63  const std::string& name() const;
64 
66  const std::string& iconName() const;
67 
69  const std::string& title() const;
70 
72  DtStatusBarAlignment alignment() const;
73 
77  void setActive(bool active, const std::string& message);
78 
81  bool isActive() const;
82 
85  std::string message() const;
86 
87  protected:
88 
90  std::string myName;
91 
93  std::string myIconName;
94 
96  std::string myTitle;
97 
99  std::atomic<bool> myActive;
100 
102  mutable std::mutex myMessageMutex;
103 
105  std::string myMessage;
106 
107  private:
108 
111  };
112 
113 } // namespace makVrv
DtStatusBarAlignment
Controls which zone of the DtBackgroundStatusWidget status bar an icon appears in.
Definition: DtBackgroundStatus.h:22
std::string myName
Logical name; immutable after construction.
Definition: DtBackgroundStatus.h:90
Icon appears in the right zone of the status bar.
std::string myIconName
Icon file name; immutable after construction.
Definition: DtBackgroundStatus.h:93
Icon appears in the left zone of the status bar.
Icon appears in the center zone of the status bar.
std::mutex myMessageMutex
Mutex protecting myMessage.
Definition: DtBackgroundStatus.h:102
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
std::atomic< bool > myActive
Atomic active flag for lockless reads.
Definition: DtBackgroundStatus.h:99
std::string myMessage
Human-readable status message; guarded by myMessageMutex.
Definition: DtBackgroundStatus.h:105
DtStatusBarAlignment myAlignment
Alignment of this status icon within the status bar. Immutable after construction.
Definition: DtBackgroundStatus.h:110
Thread-safe status object for VR-Vantage background operations.
Definition: DtBackgroundStatus.h:36
std::string myTitle
Human-readable display title; immutable after construction.
Definition: DtBackgroundStatus.h:96
Contains DLL export macros.

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)