53 LOG(VB_GENERAL, LOG_ERR,
"Cannot load screen 'functionpopup'");
94 LOG(VB_GENERAL, LOG_INFO,
97 ", enable value " + QString::number(
m_monitor->
enabled) +
" -> " + QString::number(enabled) +
105 LOG(VB_GENERAL, LOG_WARNING,
106 "Monitor Function/Enable values not changed so not updating.");
124 m_timeTimer(new QTimer(this)),
125 m_timeFormat(
gCoreContext->GetSetting(
"TimeFormat",
"h:mm AP")),
126 m_updateTimer(new QTimer(this))
157 LOG(VB_GENERAL, LOG_ERR,
"Cannot load screen 'zmconsole'");
226 for (
int i = 0; i < actions.size() && !handled; i++)
228 const QString&
action = actions[i];
278 item->SetData(QVariant::fromValue(monitor));
279 item->SetText(monitor->
name,
"name");
280 item->SetText(monitor->
zmcStatus,
"zmcstatus");
281 item->SetText(monitor->
zmaStatus,
"zmastatus");
282 item->SetText(QString(
"%1").arg(monitor->
events),
"eventcount");
MythUICheckBox * m_notificationCheck
MythUIButtonList * m_functionList
MythUIButton * m_okButton
void setMonitorFunction(void)
MythUICheckBox * m_enabledCheck
MythUIText * m_captionText
bool TranslateKeyPress(const QString &Context, QKeyEvent *Event, QStringList &Actions, bool AllowJumps=true)
Get a list of actions for a keypress in the given context.
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)
Screen in which all other widgets are contained and rendered.
void BuildFocusList(void)
MythUIType * GetFocusWidget(void) const
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
bool SetFocusWidget(MythUIType *widget=nullptr)
void SetCheckState(MythUIStateType::StateType state)
MythUIStateType::StateType GetCheckState() const
QString GetText(void) const
void SetFontState(const QString &state)
virtual void SetText(const QString &text)
static bool LoadWindowFromXML(const QString &xmlfile, const QString &windowname, MythUIType *parent)
int getMonitorCount(void)
void updateMonitorStatus(void)
Monitor * getMonitorAt(int pos)
void getServerStatus(QString &status, QString &cpuStat, QString &diskStat)
static ZMClient * get(void)
void saveNotificationMonitors(void)
void setMonitorFunction(int monitorID, const QString &function, bool enabled)
void getMonitorStatus(void)
MythUIText * m_statusText
void functionChanged(bool changed)
FunctionDialog * m_functionDialog
MythUIButtonList * m_monitorList
void showEditFunctionPopup()
bool Create(void) override
ZMConsole(MythScreenStack *parent)
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
MythScreenStack * m_popupStack
MythCoreContext * gCoreContext
This global variable contains the MythCoreContext instance for the app.
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
MythMainWindow * GetMythMainWindow(void)
QDateTime current(bool stripped)
Returns current Date and Time in UTC.
static bool Assign(ContainerType *container, UIType *&item, const QString &name, bool *err=nullptr)
constexpr std::chrono::milliseconds TIME_UPDATE_TIME
constexpr std::chrono::milliseconds STATUS_UPDATE_TIME