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
MythUIStateTracker::m_lastUpdated
QTime m_lastUpdated
Definition: mythuistatetracker.h:26
MUI_PUBLIC
#define MUI_PUBLIC
Definition: mythuiexp.h:9
MythUIStateTracker::MythUIStateTracker
MythUIStateTracker()
Definition: mythuistatetracker.h:23
MythUIStateTracker::gUIState
static MythUIStateTracker * gUIState
Definition: mythuistatetracker.h:20
MythUIStateTracker
Definition: mythuistatetracker.h:11
GetState
#define GetState(a, b)
Definition: audiooutputopensles.cpp:48
MythUIStateTracker::gUIStateLock
static QMutex * gUIStateLock
Definition: mythuistatetracker.h:21
MythUIStateTracker::m_state
QVariantMap m_state
Definition: mythuistatetracker.h:25
mythuiexp.h