MythTV
master
mythtv
libs
libmyth
mythcontext.h
Go to the documentation of this file.
1
#ifndef MYTHCONTEXT_H_
2
#define MYTHCONTEXT_H_
3
4
#include <QObject>
5
#include <QString>
6
7
#include "
libmyth/mythexp.h
"
8
#include "
libmythbase/mythdbparams.h
"
9
19
class
MPUBLIC
MythContext
20
{
21
public
:
22
explicit
MythContext
(QString binversion,
bool
needsBackend =
false
);
23
virtual
~
MythContext
();
24
25
bool
Init(
bool
gui =
true
,
26
bool
promptForBackend =
false
,
27
bool
disableAutoDiscovery =
false
,
28
bool
ignoreDB =
false
);
29
30
using
CleanupFunction
= void (*)();
31
void
setCleanup
(
CleanupFunction
cleanup
) { m_cleanup =
cleanup
; }
32
33
bool
saveSettingsCache();
34
35
void
SetDisableEventPopup(
bool
check);
36
37
private
:
38
Q_DISABLE_COPY(
MythContext
)
39
40
class
Impl;
41
Impl
*m_impl {
nullptr
};
42
QString
m_appBinaryVersion
;
47
CleanupFunction
m_cleanup {
nullptr
};
48
};
49
50
#endif
51
52
/* vim: set expandtab tabstop=4 shiftwidth=4: */
MPUBLIC
#define MPUBLIC
Definition:
mythexp.h:10
MythContext::CleanupFunction
void(*)() CleanupFunction
Definition:
mythcontext.h:30
mythexp.h
MythContext::setCleanup
void setCleanup(CleanupFunction cleanup)
Definition:
mythcontext.h:31
MythContext
Startup context for MythTV.
Definition:
mythcontext.h:19
MythContext::m_appBinaryVersion
QString m_appBinaryVersion
Definition:
mythcontext.h:42
cleanup
static QString cleanup(const QString &str)
Definition:
remoteencoder.cpp:673
MythContext::Impl
Definition:
mythcontext.cpp:102
mythdbparams.h
Generated on Mon Aug 25 2025 03:15:50 for MythTV by
1.8.17