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

Plugin for browsing RSS news feeds. More...

#include <mythnews.h>

Inheritance diagram for MythNews:
MythScreenType MythUIType XMLParseBase

List of all members.

Public Member Functions

 MythNews (MythScreenStack *parent, const QString &name)
 Creates a new MythNews Screen.
 ~MythNews ()
bool Create (void)
bool keyPressEvent (QKeyEvent *)
 Key event handler.
void customEvent (QEvent *)

Private Slots

void loadSites (void)
void updateInfoView (MythUIButtonListItem *)
void slotViewArticle (MythUIButtonListItem *)
void slotRetrieveNews (void)
void slotNewsRetrieved (NewsSite *)
void slotSiteSelected (MythUIButtonListItem *)
void slotProgressCancelled ()

Private Member Functions

void updateInfoView (void)
void clearSites (void)
void cancelRetrieve (void)
void processAndShowNews (NewsSite *site)
bool getHttpFile (const QString &sFilename, const QString &cmdURL)
void createProgress (const QString &title)
QString formatSize (long long bytes, int prec)
void playVideo (const NewsArticle &article)
void ShowMenu (void)
void deleteNewsSite (void)
void ShowEditDialog (bool edit)
void ShowFeedManager ()

Private Attributes

QMutex m_lock
NewsSite::List m_NewsSites
QTimer * m_RetrieveTimer
int m_TimerTimeout
unsigned int m_UpdateFreq
QString m_zoom
QString m_browser
MythDialogBoxm_menuPopup
MythUIProgressDialogm_progressPopup
HttpCommsm_httpGrabber
bool m_abortHttp
MythUIButtonListm_sitesList
MythUIButtonListm_articlesList
QMap< MythUIButtonListItem
*, NewsArticle
m_articles
MythUITextm_nositesText
MythUITextm_updatedText
MythUITextm_titleText
MythUITextm_descText
MythUIImagem_thumbnailImage
MythUIImagem_downloadImage
MythUIImagem_enclosureImage
MythUIImagem_podcastImage

Detailed Description

Plugin for browsing RSS news feeds.

Definition at line 23 of file mythnews.h.


Constructor & Destructor Documentation

MythNews::MythNews ( MythScreenStack parent,
const QString &  name 
)

Creates a new MythNews Screen.

Parameters:
parentPointer to the screen stack
nameThe name of the window

Definition at line 43 of file mythnews.cpp.

Definition at line 84 of file mythnews.cpp.


Member Function Documentation

bool MythNews::Create ( void  ) [virtual]

Reimplemented from MythScreenType.

Definition at line 89 of file mythnews.cpp.

Referenced by RunNews().

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

Key event handler.

Parameters:
eventKeypress event

Reimplemented from MythScreenType.

Definition at line 504 of file mythnews.cpp.

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

Reimplemented from MythUIType.

Definition at line 940 of file mythnews.cpp.

Referenced by Create(), and slotSiteSelected().

void MythNews::clearSites ( void  ) [private]

Definition at line 144 of file mythnews.cpp.

Referenced by loadSites().

Definition at line 595 of file mythnews.cpp.

Referenced by keyPressEvent().

Definition at line 607 of file mythnews.cpp.

Referenced by cancelRetrieve(), slotNewsRetrieved(), and slotRetrieveNews().

bool MythNews::getHttpFile ( const QString &  sFilename,
const QString &  cmdURL 
) [private]

Definition at line 692 of file mythnews.cpp.

Referenced by updateInfoView().

void MythNews::createProgress ( const QString &  title) [private]

Definition at line 669 of file mythnews.cpp.

Referenced by getHttpFile().

QString MythNews::formatSize ( long long  bytes,
int  prec 
) [private]

Definition at line 481 of file mythnews.cpp.

Referenced by getHttpFile(), and updateInfoView().

void MythNews::playVideo ( const NewsArticle article) [private]

Definition at line 933 of file mythnews.cpp.

Referenced by slotViewArticle().

void MythNews::ShowMenu ( void  ) [private, virtual]

Reimplemented from MythScreenType.

Definition at line 883 of file mythnews.cpp.

Referenced by keyPressEvent().

Definition at line 915 of file mythnews.cpp.

Referenced by customEvent(), and keyPressEvent().

void MythNews::ShowEditDialog ( bool  edit) [private]

Definition at line 837 of file mythnews.cpp.

Referenced by customEvent(), and keyPressEvent().

Definition at line 867 of file mythnews.cpp.

Referenced by customEvent().

void MythNews::loadSites ( void  ) [private, slot]

Definition at line 170 of file mythnews.cpp.

Referenced by Create(), deleteNewsSite(), ShowEditDialog(), and ShowFeedManager().

void MythNews::updateInfoView ( MythUIButtonListItem selected) [private, slot]

Definition at line 220 of file mythnews.cpp.

void MythNews::slotViewArticle ( MythUIButtonListItem articlesListItem) [private, slot]

Definition at line 787 of file mythnews.cpp.

Referenced by Create().

void MythNews::slotRetrieveNews ( void  ) [private, slot]

Definition at line 557 of file mythnews.cpp.

Referenced by keyPressEvent(), loadSites(), and MythNews().

void MythNews::slotNewsRetrieved ( NewsSite site) [private, slot]

Definition at line 580 of file mythnews.cpp.

Referenced by loadSites().

Definition at line 636 of file mythnews.cpp.

Referenced by Create().

void MythNews::slotProgressCancelled ( void  ) [private, slot]

Definition at line 662 of file mythnews.cpp.


Member Data Documentation

QMutex MythNews::m_lock [mutable, private]
QTimer* MythNews::m_RetrieveTimer [private]

Definition at line 55 of file mythnews.h.

Referenced by keyPressEvent(), MythNews(), and slotRetrieveNews().

Definition at line 56 of file mythnews.h.

Referenced by MythNews(), and slotRetrieveNews().

unsigned int MythNews::m_UpdateFreq [private]

Definition at line 57 of file mythnews.h.

Referenced by MythNews(), and slotRetrieveNews().

QString MythNews::m_zoom [private]

Definition at line 59 of file mythnews.h.

Referenced by MythNews(), and slotViewArticle().

QString MythNews::m_browser [private]

Definition at line 60 of file mythnews.h.

Referenced by MythNews(), and slotViewArticle().

Definition at line 61 of file mythnews.h.

Referenced by customEvent(), MythNews(), and ShowMenu().

Definition at line 63 of file mythnews.h.

Referenced by createProgress(), getHttpFile(), keyPressEvent(), and MythNews().

Definition at line 64 of file mythnews.h.

Referenced by getHttpFile(), keyPressEvent(), MythNews(), and updateInfoView().

Definition at line 65 of file mythnews.h.

Referenced by getHttpFile(), keyPressEvent(), and slotProgressCancelled().

Definition at line 71 of file mythnews.h.

Referenced by Create(), and loadSites().

Definition at line 72 of file mythnews.h.

Referenced by clearSites(), Create(), getHttpFile(), MythNews(), and updateInfoView().

Definition at line 73 of file mythnews.h.

Referenced by clearSites(), Create(), MythNews(), and updateInfoView().

Definition at line 74 of file mythnews.h.

Referenced by clearSites(), Create(), MythNews(), and updateInfoView().

Definition at line 76 of file mythnews.h.

Referenced by clearSites(), Create(), MythNews(), and updateInfoView().

Definition at line 77 of file mythnews.h.

Referenced by clearSites(), Create(), MythNews(), and updateInfoView().

Definition at line 78 of file mythnews.h.

Referenced by clearSites(), Create(), MythNews(), and updateInfoView().

Definition at line 79 of file mythnews.h.

Referenced by clearSites(), Create(), and updateInfoView().


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