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 <QMutex>
6 #include <QTime>
7 
8 #include "mythuiexp.h"
9 
11 {
12  public:
13  static void SetState(QVariantMap &newstate);
14  static void GetState(QVariantMap &state);
15  static void GetFreshState(QVariantMap &state);
16 
17  protected:
18  static MythUIStateTracker* GetMythUIStateTracker(void);
19  static int TimeSinceLastUpdate(void);
21  static QMutex *gUIStateLock;
22 
23  MythUIStateTracker(): m_lastUpdated(QTime::currentTime().addSecs(-1)) { }
24 
25  QVariantMap m_state;
27 };
28 
29 #endif // MYTHUISTATETRACKER_H
static MythUIStateTracker * gUIState
#define GetState(a, b)
#define MUI_PUBLIC
Definition: mythuiexp.h:9
static QMutex * gUIStateLock