Go to the documentation of this file.
24 m_updateScreenTimer(new QTimer(this))
61 LOG(VB_GENERAL, LOG_ERR,
"Cannot load screen 'standbymode'");
104 QString state =
"idle";
109 state =
"shuttingdown";
130 QString status = tr(
"Backend will shutdown in %n "
204 QVariant::fromValue(progInfo));
207 progInfo->
ToMap(infoMap);
208 item->SetTextFromMap(infoMap,
"");
251 auto *me =
dynamic_cast<MythEvent *
>(event);
255 if (me->Message().startsWith(
"RECONNECT_"))
260 else if (me->Message().startsWith(
"SHUTDOWN_COUNTDOWN"))
262 QString secs = me->Message().mid(19);
266 else if (me->Message().startsWith(
"SHUTDOWN_NOW"))
274 LOG(VB_GENERAL, LOG_NOTICE,
275 "Backend has gone offline, Shutting down frontend");
276 QString poweroff_cmd =
278 if (!poweroff_cmd.isEmpty())
283 else if (me->Message().startsWith(
"SCHEDULE_CHANGE") ||
284 me->Message().startsWith(
"RECORDING_LIST_CHANGE") ||
285 me->Message() ==
"UPDATE_PROG_INFO")
void SetPendingSchedUpdate(bool newState)
static const Type kMythEventMessage
bool Create(void) override
bool LoadFromScheduler(AutoDeleteDeque< TYPE * > &destination, bool &hasConflicts, const QString &altTable="", int recordid=-1)
void Reset(void) override
Reset the widget to it's original state, should not reset changes made by the theme.
bool IsFrontendOnly(void)
is there a frontend, but no backend, running on this host
void Load(void) override
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
MythUIType * GetState(const QString &name)
MythUIButtonList * m_currentRecordings
MythUIType * GetChild(const QString &name) const
Get a named child of this UIType.
This class is used as a container for messages.
void SetCanTakeFocus(bool set=true)
Set whether this widget can take focus.
void customEvent(QEvent *event) override
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
Screen in which all other widgets are contained and rendered.
MythUIText * m_conflictWarning
MythUIButtonList * m_conflictingRecordings
uint myth_system(const QString &command, uint flags, std::chrono::seconds timeout)
QTimer * m_updateScreenTimer
virtual void Load(void)
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
bool SafeConnectToMasterServer(bool blockingClient=true, bool openEventSocket=true)
QHash< QString, QString > InfoMap
void addListener(QObject *listener)
Add a listener to the observable.
bool IsConnectedToMaster(void)
void customEvent(QEvent *e) override
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
RecStatus::Type GetRecordingStatus(void) const
bool PendingSchedUpdate() const
int RemoteGetRecordingStatus(const ProgramInfo *pginfo, int overrecsecs, int underrecsecs)
Get status of an individual programme (with pre-post roll?).
IdleScreen(MythScreenStack *parent)
virtual void ToMap(InfoMap &progMap, bool showrerecord=false, uint star_range=10, uint date_format=0) const
Converts ProgramInfo into QString QHash containing each field in ProgramInfo converted into localized...
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
MythCoreContext * gCoreContext
This global variable contains the MythCoreContext instance for the app.
int GetNumSetting(const QString &key, int defaultval=0)
static bool Assign(ContainerType *container, UIType *&item, const QString &name, bool *err=nullptr)
bool CheckConnectionToServer(void)
The base class on which all widgets and screens are based.
ProgramList m_scheduledList
Holds information on recordings and videos.
All purpose text widget, displays a text string.
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
MythUIStateType * m_statusState
void EnterStandby(bool Manual=true)
static bool LoadWindowFromXML(const QString &xmlfile, const QString &windowname, MythUIType *parent)
bool UpdateScheduledList()
virtual void SetText(const QString &text)
virtual void SetVisible(bool visible)
MythMainWindow * GetMythMainWindow(void)
MythUIButtonList * m_nextRecordings
QMutex m_schedUpdateMutex
static constexpr std::chrono::milliseconds UPDATE_INTERVAL
void ExitStandby(bool Manual=true)
void removeListener(QObject *listener)
Remove a listener to the observable.
bool DisplayState(const QString &name)
std::chrono::seconds m_secondsToShutdown
QString GetSetting(const QString &key, const QString &defaultval="")