MythWebView Class Reference

Subclass of QWebView. More...

#include <mythuiwebbrowser.h>

List of all members.

Public Member Functions

 MythWebView (QWidget *parent, MythUIWebBrowser *parentBrowser)
 ~MythWebView (void)
virtual void keyPressEvent (QKeyEvent *event)
virtual void wheelEvent (QWheelEvent *event)
virtual void customEvent (QEvent *e)

Protected Slots

void handleUnsupportedContent (QNetworkReply *reply)
void handleDownloadRequested (const QNetworkRequest &request)
QWebView * createWindow (QWebPage::WebWindowType type)

Private Member Functions

void showDownloadMenu (void)
void doDownloadRequested (const QNetworkRequest &request)
void doDownload (const QString &saveFilename)
void openBusyPopup (const QString &message)
void closeBusyPopup (void)
bool isMusicFile (const QString &extension, const QString &mimetype)
bool isVideoFile (const QString &extension, const QString &mimetype)
QString getReplyMimetype (void)
QString getExtensionForMimetype (const QString &mimetype)

Private Attributes

MythWebPagem_webpage
MythUIWebBrowserm_parentBrowser
BrowserApim_api
QNetworkRequest m_downloadRequest
QNetworkReply * m_downloadReply
MythUIBusyDialogm_busyPopup
bool m_downloadAndPlay

Detailed Description

Subclass of QWebView.

Note:
allows us to intercept keypresses

Definition at line 75 of file mythuiwebbrowser.h.


Constructor & Destructor Documentation

MythWebView::MythWebView ( QWidget *  parent,
MythUIWebBrowser parentBrowser 
)

Definition at line 339 of file mythuiwebbrowser.cpp.

MythWebView::~MythWebView ( void   ) 

Definition at line 363 of file mythuiwebbrowser.cpp.


Member Function Documentation

void MythWebView::keyPressEvent ( QKeyEvent *  event  )  [virtual]

Definition at line 382 of file mythuiwebbrowser.cpp.

Referenced by MythUIWebBrowser::keyPressEvent().

void MythWebView::wheelEvent ( QWheelEvent *  event  )  [virtual]

Definition at line 447 of file mythuiwebbrowser.cpp.

void MythWebView::customEvent ( QEvent *  e  )  [virtual]

Definition at line 594 of file mythuiwebbrowser.cpp.

void MythWebView::handleUnsupportedContent ( QNetworkReply *  reply  )  [protected, slot]

Definition at line 453 of file mythuiwebbrowser.cpp.

Referenced by MythWebView().

void MythWebView::handleDownloadRequested ( const QNetworkRequest &  request  )  [protected, slot]

Definition at line 475 of file mythuiwebbrowser.cpp.

Referenced by MythWebView().

QWebView * MythWebView::createWindow ( QWebPage::WebWindowType  type  )  [protected, slot]

Definition at line 777 of file mythuiwebbrowser.cpp.

void MythWebView::showDownloadMenu ( void   )  [private]

Definition at line 681 of file mythuiwebbrowser.cpp.

Referenced by handleUnsupportedContent().

void MythWebView::doDownloadRequested ( const QNetworkRequest &  request  )  [private]

Definition at line 481 of file mythuiwebbrowser.cpp.

Referenced by customEvent(), and handleDownloadRequested().

void MythWebView::doDownload ( const QString &  saveFilename  )  [private]

Definition at line 556 of file mythuiwebbrowser.cpp.

Referenced by customEvent(), and doDownloadRequested().

void MythWebView::openBusyPopup ( const QString &  message  )  [private]

Definition at line 569 of file mythuiwebbrowser.cpp.

Referenced by doDownload().

void MythWebView::closeBusyPopup ( void   )  [private]

Definition at line 586 of file mythuiwebbrowser.cpp.

Referenced by customEvent().

bool MythWebView::isMusicFile ( const QString &  extension,
const QString &  mimetype 
) [private]

Definition at line 725 of file mythuiwebbrowser.cpp.

Referenced by customEvent(), and showDownloadMenu().

bool MythWebView::isVideoFile ( const QString &  extension,
const QString &  mimetype 
) [private]

Definition at line 744 of file mythuiwebbrowser.cpp.

Referenced by customEvent(), and showDownloadMenu().

QString MythWebView::getReplyMimetype ( void   )  [private]

Definition at line 763 of file mythuiwebbrowser.cpp.

Referenced by customEvent(), doDownloadRequested(), and showDownloadMenu().

QString MythWebView::getExtensionForMimetype ( const QString &  mimetype  )  [private]

Definition at line 714 of file mythuiwebbrowser.cpp.

Referenced by doDownloadRequested().


Member Data Documentation

Definition at line 105 of file mythuiwebbrowser.h.

Referenced by MythWebView(), and ~MythWebView().

Definition at line 106 of file mythuiwebbrowser.h.

Referenced by doDownloadRequested(), keyPressEvent(), and MythWebView().

Definition at line 107 of file mythuiwebbrowser.h.

Referenced by MythWebView(), and ~MythWebView().

QNetworkRequest MythWebView::m_downloadRequest [private]
QNetworkReply* MythWebView::m_downloadReply [private]

Definition at line 110 of file mythuiwebbrowser.h.

Referenced by closeBusyPopup(), MythWebView(), and openBusyPopup().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:18 2012 for MythTV by  doxygen 1.6.3