MythTV  0.26-pre
Public Member Functions | Private Member Functions | Private Attributes
ProgDetails Class Reference

#include <progdetails.h>

Inheritance diagram for ProgDetails:
MythScreenType MythUIType XMLParseBase

List of all members.

Public Member Functions

 ProgDetails (MythScreenStack *parent, const ProgramInfo *progInfo)
 ~ProgDetails ()
bool Create (void)
bool keyPressEvent (QKeyEvent *event)
 Key event handler.
void Init (void)
 Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in Load()

Private Member Functions

QString getRatings (bool recorded, uint chanid, QDateTime startts)
void loadPage (void)
void updatePage (void)
bool loadHTML (void)
void addItem (const QString &key, const QString &title, const QString &data)
void removeItem (const QString &key)
void showMenu (void)
void customEvent (QEvent *event)

Private Attributes

ProgramInfo m_progInfo
MythUIWebBrowserm_browser
int m_currentPage
QString m_page [2]
QStringList m_html

Detailed Description

Definition at line 13 of file progdetails.h.


Constructor & Destructor Documentation

ProgDetails::ProgDetails ( MythScreenStack parent,
const ProgramInfo progInfo 
)

Definition at line 21 of file progdetails.cpp.

Definition at line 116 of file progdetails.cpp.


Member Function Documentation

bool ProgDetails::Create ( void  ) [virtual]

Reimplemented from MythScreenType.

Definition at line 28 of file progdetails.cpp.

Referenced by ScheduleCommon::ShowDetails().

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

Key event handler.

Parameters:
eventKeypress event

Reimplemented from MythScreenType.

Definition at line 122 of file progdetails.cpp.

void ProgDetails::Init ( void  ) [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 111 of file progdetails.cpp.

QString ProgDetails::getRatings ( bool  recorded,
uint  chanid,
QDateTime  startts 
) [private]

Definition at line 57 of file progdetails.cpp.

Referenced by loadPage().

void ProgDetails::loadPage ( void  ) [private]

Definition at line 203 of file progdetails.cpp.

Referenced by updatePage().

Definition at line 156 of file progdetails.cpp.

Referenced by customEvent(), Init(), and keyPressEvent().

bool ProgDetails::loadHTML ( void  ) [private]

Definition at line 701 of file progdetails.cpp.

Referenced by loadPage().

void ProgDetails::addItem ( const QString &  key,
const QString &  title,
const QString &  data 
) [private]

Definition at line 164 of file progdetails.cpp.

Referenced by loadPage().

void ProgDetails::removeItem ( const QString &  key) [private]

Definition at line 189 of file progdetails.cpp.

Referenced by addItem().

void ProgDetails::showMenu ( void  ) [private]

Definition at line 730 of file progdetails.cpp.

Referenced by keyPressEvent().

void ProgDetails::customEvent ( QEvent *  event) [private, virtual]

Reimplemented from MythUIType.

Definition at line 753 of file progdetails.cpp.


Member Data Documentation

Definition at line 34 of file progdetails.h.

Referenced by loadPage().

Definition at line 35 of file progdetails.h.

Referenced by Create(), customEvent(), updatePage(), and ~ProgDetails().

Definition at line 37 of file progdetails.h.

Referenced by customEvent(), keyPressEvent(), loadHTML(), loadPage(), and updatePage().

QString ProgDetails::m_page[2] [private]

Definition at line 38 of file progdetails.h.

Referenced by loadPage(), and updatePage().

QStringList ProgDetails::m_html [private]

Definition at line 40 of file progdetails.h.

Referenced by addItem(), loadHTML(), loadPage(), and removeItem().


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