MythTV master
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"
9
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 (*)();
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};
47 CleanupFunction m_cleanup {nullptr};
48};
49
50#endif
51
52/* vim: set expandtab tabstop=4 shiftwidth=4: */
Startup context for MythTV.
Definition: mythcontext.h:20
void(*)() CleanupFunction
Definition: mythcontext.h:30
QString m_appBinaryVersion
Definition: mythcontext.h:42
void setCleanup(CleanupFunction cleanup)
Definition: mythcontext.h:31
#define MPUBLIC
Definition: mythexp.h:10
static QString cleanup(const QString &str)