MythTV
master
mythtv
libs
libmythui
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
14
struct
MUI_PUBLIC
MythUIMenuCallbacks
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
23
class
MUI_PUBLIC
MythUIHelper
:
public
MythUIThemeCache
,
public
MythUIThemeHelper
,
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
)
39
MythUIHelper
() =
default
;
40
~
MythUIHelper
() =
default
;
41
42
private
:
43
MythUIMenuCallbacks
m_callbacks {
nullptr
,
nullptr
,
nullptr
,
nullptr
,
nullptr
};
44
bool
m_screenSetup {
false
};
45
};
46
47
MUI_PUBLIC
MythUIHelper
*
GetMythUI
();
48
MUI_PUBLIC
void
DestroyMythUI
();
49
50
#endif
51
MythUILocation
Definition:
mythuilocation.h:11
MUI_PUBLIC
#define MUI_PUBLIC
Definition:
mythuiexp.h:9
MythUIThemeCache
Definition:
mythuithemecache.h:22
MythUIThemeHelper
Definition:
mythuithemehelper.h:10
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:23
mythuiexp.h
MythUIMenuCallbacks
Definition:
mythuihelper.h:14
Generated on Mon Nov 25 2024 03:16:14 for MythTV by
1.8.17