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
#define GetState(a, b)
static QRecursiveMutex gUIStateLock
#define MUI_PUBLIC
Definition: mythuiexp.h:9
State
Definition: zmserver.h:69