23#include <libmythbase/mythversion.h>
57 if (console->Create())
82 auto *events =
new ZMEvents(mainStack);
100 if (miniPlayer->Create())
110 QString sel = selection.toLower();
112 if (sel ==
"zm_console")
114 else if (sel ==
"zm_live_viewer")
116 else if (sel ==
"zm_event_viewer")
137 mainMenu = qobject_cast<MythThemedMenu *>(parentObject);
139 if (mainMenu && mainMenu->objectName() ==
"mainmenu")
142 parentObject = parentObject->parent();
161 if (diag->foundTheme())
166 LOG(VB_GENERAL, LOG_ERR, QString(
"Couldn't find menu %1 or theme %2")
174 REG_JUMP(QT_TRANSLATE_NOOP(
"MythControls",
"ZoneMinder Console"),
176 REG_JUMP(QT_TRANSLATE_NOOP(
"MythControls",
"ZoneMinder Live View"),
178 REG_JUMP(QT_TRANSLATE_NOOP(
"MythControls",
"ZoneMinder Events"),
180 REG_JUMPEX(QT_TRANSLATE_NOOP(
"MythControls",
"ZoneMinder Mini Live View"),
188 MYTH_BINARY_VERSION))
205 return runMenu(
"zonemindermenu.xml");
static AlarmNotifyThread * get(void)
void start(QThread::Priority p=QThread::InheritPriority)
Tell MThread to start running the thread in the near future.
static bool TestPluginVersion(const QString &name, const QString &libversion, const QString &pluginversion)
MythScreenStack * GetMainStack()
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)
virtual MythScreenType * GetTopScreen(void) const
static ZMClient * get(void)
static bool setupZMClient(void)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
MythMainWindow * GetMythMainWindow(void)
static void REG_JUMPEX(const QString &Destination, const QString &Description, const QString &Key, void(*Callback)(void), bool ExitToMain)
static void REG_JUMP(const QString &Destination, const QString &Description, const QString &Key, void(*Callback)(void))
MythUIHelper * GetMythUI()
int mythplugin_config(void)
static void(* m_callback)(void *, QString &)
void mythplugin_destroy(void)
static void runZMLiveView(void)
static void ZoneMinderCallback(void *data, QString &selection)
static void runZMMiniPlayer(void)
static void setupKeys(void)
static int runMenu(const QString &which_menu)
static void runZMEventView(void)
static bool checkConnection(void)
int mythplugin_init(const char *libversion)
static void * m_callbackdata
static void runZMConsole(void)