MythTV  0.26-pre
Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes
StatusBox Class Reference

Reports on various status items. More...

#include <statusbox.h>

Inheritance diagram for StatusBox:
MythScreenType MythUIType XMLParseBase

List of all members.

Signals

void updateLog ()

Public Member Functions

 StatusBox (MythScreenStack *parent)
 ~StatusBox (void)
bool Create (void)
bool keyPressEvent (QKeyEvent *)
 Key event handler.
void customEvent (QEvent *)

Protected Member Functions

virtual void Init (void)
 Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in Load()

Private Slots

void setHelpText (MythUIButtonListItem *item)
void updateLogList (MythUIButtonListItem *item)
void clicked (MythUIButtonListItem *item)
void doListingsStatus ()
void doScheduleStatus ()
void doTunerStatus ()
void doLogEntries ()
void doJobQueueStatus ()
void doMachineStatus ()
 Show machine status.
void doAutoExpireList (bool updateExpList=true)
 Show list of recordings which may AutoExpire.

Private Member Functions

MythUIButtonListItemAddLogLine (const QString &line, const QString &help="", const QString &detail="", const QString &helpdetail="", const QString &state="", const QString &data="")
void getActualRecordedBPS (QString hostnames)
 Fills in recordingProfilesBPS w/ average bitrate from recorded table.

Private Attributes

MythUITextm_helpText
MythUITextm_justHelpText
MythUIButtonListm_categoryList
MythUIButtonListm_logList
MythUIStateTypem_iconState
QMap< int, QString > contentData
recprof2bps_t recordingProfilesBPS
vector< ProgramInfo * > m_expList
MythScreenStackm_popupStack
int m_minLevel
bool m_isBackendActive

Detailed Description

Reports on various status items.

StatusBox reports on the listing status, that is how far into the future program listings exists. It also reports on the status of each tuner, the log entries, the status of the job queue, and the machine status.

Definition at line 18 of file statusbox.h.


Constructor & Destructor Documentation

Definition at line 48 of file statusbox.cpp.

Definition at line 72 of file statusbox.cpp.


Member Function Documentation

bool StatusBox::Create ( void  ) [virtual]

Reimplemented from MythScreenType.

Definition at line 79 of file statusbox.cpp.

Referenced by showStatus().

bool StatusBox::keyPressEvent ( QKeyEvent *  ) [virtual]

Key event handler.

Parameters:
eventKeypress event

Reimplemented from MythScreenType.

Definition at line 181 of file statusbox.cpp.

void StatusBox::customEvent ( QEvent *  event) [virtual]

Reimplemented from MythUIType.

Definition at line 385 of file statusbox.cpp.

void StatusBox::updateLog ( ) [signal]

Referenced by updateLogList().

void StatusBox::Init ( void  ) [protected, virtual]

Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in Load()

Warning:
Do NOT confuse this with Load(), they serve very different purposes and most often both should be used when creating a new screen.

Reimplemented from MythScreenType.

Definition at line 109 of file statusbox.cpp.

void StatusBox::setHelpText ( MythUIButtonListItem item) [private, slot]

Definition at line 242 of file statusbox.cpp.

Referenced by Create().

void StatusBox::updateLogList ( MythUIButtonListItem item) [private, slot]

Definition at line 254 of file statusbox.cpp.

Referenced by Create().

void StatusBox::clicked ( MythUIButtonListItem item) [private, slot]

Definition at line 267 of file statusbox.cpp.

Referenced by Create().

void StatusBox::doListingsStatus ( ) [private, slot]

Definition at line 511 of file statusbox.cpp.

Referenced by Init().

void StatusBox::doScheduleStatus ( ) [private, slot]

Definition at line 606 of file statusbox.cpp.

Referenced by Init().

void StatusBox::doTunerStatus ( ) [private, slot]

Definition at line 780 of file statusbox.cpp.

Referenced by Init().

void StatusBox::doLogEntries ( void  ) [private, slot]

Definition at line 870 of file statusbox.cpp.

Referenced by customEvent(), and keyPressEvent().

void StatusBox::doJobQueueStatus ( ) [private, slot]

Definition at line 924 of file statusbox.cpp.

Referenced by customEvent(), and Init().

void StatusBox::doMachineStatus ( ) [private, slot]

Show machine status.

This returns statisics for master backend when using a frontend only machine. And returns info on the current system if frontend is running on a backend machine.

Bug:
We should report on all backends and the current frontend.

Definition at line 1177 of file statusbox.cpp.

Referenced by Init().

void StatusBox::doAutoExpireList ( bool  updateExpList = true) [private, slot]

Show list of recordings which may AutoExpire.

Definition at line 1357 of file statusbox.cpp.

Referenced by customEvent(), and Init().

MythUIButtonListItem * StatusBox::AddLogLine ( const QString &  line,
const QString &  help = "",
const QString &  detail = "",
const QString &  helpdetail = "",
const QString &  state = "",
const QString &  data = "" 
) [private]
void StatusBox::getActualRecordedBPS ( QString  hostnames) [private]

Fills in recordingProfilesBPS w/ average bitrate from recorded table.

Definition at line 1121 of file statusbox.cpp.

Referenced by doMachineStatus().


Member Data Documentation

Definition at line 60 of file statusbox.h.

Referenced by clicked(), Create(), Init(), keyPressEvent(), and StatusBox().

QMap<int, QString> StatusBox::contentData [private]

Definition at line 64 of file statusbox.h.

Definition at line 65 of file statusbox.h.

Referenced by doMachineStatus(), and getActualRecordedBPS().

vector<ProgramInfo *> StatusBox::m_expList [private]

Definition at line 67 of file statusbox.h.

Referenced by clicked(), customEvent(), and doAutoExpireList().

Definition at line 69 of file statusbox.h.

Referenced by clicked(), keyPressEvent(), and StatusBox().

Definition at line 71 of file statusbox.h.

Referenced by customEvent(), doLogEntries(), keyPressEvent(), and StatusBox().

Definition at line 73 of file statusbox.h.

Referenced by doMachineStatus(), and StatusBox().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends