MythTV  master
mythuistatetracker.h
Go to the documentation of this file.
1 #ifndef MYTHUISTATETRACKER_H
2 #define MYTHUISTATETRACKER_H
3 
4 #include <QVariantMap>
5 #include <QRecursiveMutex>
6 #include <QTime>
7 
8 #include "mythuiexp.h"
9 
11 {
12  public:
13  static void SetState(const QVariantMap& NewState);
14  static void GetState(QVariantMap& State);
15  static void GetFreshState(QVariantMap& State);
16 
17  protected:
18  static MythUIStateTracker* GetMythUIStateTracker();
19  static std::chrono::milliseconds TimeSinceLastUpdate();
20  static inline MythUIStateTracker* gUIState { nullptr };
21  static inline QRecursiveMutex gUIStateLock;
22 
24  QVariantMap m_state;
26 };
27 
28 #endif
MythUIStateTracker::m_lastUpdated
QTime m_lastUpdated
Definition: mythuistatetracker.h:25
MUI_PUBLIC
#define MUI_PUBLIC
Definition: mythuiexp.h:9
State
State
Definition: zmserver.h:68
MythUIStateTracker
Definition: mythuistatetracker.h:10
GetState
#define GetState(a, b)
Definition: audiooutputopensles.cpp:55
MythUIStateTracker::m_state
QVariantMap m_state
Definition: mythuistatetracker.h:24
MythUIStateTracker::gUIStateLock
static QRecursiveMutex gUIStateLock
Definition: mythuistatetracker.h:21
mythuiexp.h