MythTV  master
mythuihelper.h
Go to the documentation of this file.
1 #ifndef MYTHUIHELPERS_H_
2 #define MYTHUIHELPERS_H_
3 
4 #include <QStringList>
5 #include <QString>
6 #include <QFont>
7 #include <QMutex>
8 
9 #include "mythuiexp.h"
10 #include "mythuithemecache.h"
11 #include "mythuithemehelper.h"
12 #include "mythuilocation.h"
13 
15 {
16  void (*exec_program)(const QString &cmd);
17  void (*exec_program_tv)(const QString &cmd);
18  void (*configplugin)(const QString &cmd);
19  void (*plugin)(const QString &cmd);
20  void (*eject)();
21 };
22 
24  public MythUILocation
25 {
26  public:
27  static MythUIHelper *getMythUI();
28  static void destroyMythUI();
29 
30  void Init(MythUIMenuCallbacks &cbs);
31  void Init();
32 
33  MythUIMenuCallbacks *GetMenuCBs();
34 
35  bool IsScreenSetup() const;
36 
37  protected:
38  Q_DISABLE_COPY(MythUIHelper)
41 
42  private:
43  MythUIMenuCallbacks m_callbacks { nullptr,nullptr,nullptr,nullptr,nullptr };
44  bool m_screenSetup { false };
45 };
46 
49 
50 #endif
51 
MythUILocation
Definition: mythuilocation.h:12
MUI_PUBLIC
#define MUI_PUBLIC
Definition: mythuiexp.h:9
MythUIThemeCache
Definition: mythuithemecache.h:22
MythUIThemeHelper
Definition: mythuithemehelper.h:11
mythuilocation.h
DestroyMythUI
MUI_PUBLIC void DestroyMythUI()
Definition: mythuihelper.cpp:71
mythuithemecache.h
GetMythUI
MUI_PUBLIC MythUIHelper * GetMythUI()
Definition: mythuihelper.cpp:66
mythuithemehelper.h
MythUIHelper
Definition: mythuihelper.h:25
mythuiexp.h
MythUIMenuCallbacks
Definition: mythuihelper.h:15