Subclass of QWebView. More...
#include <mythuiwebbrowser.h>
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 | |
| MythWebPage * | m_webpage |
| MythUIWebBrowser * | m_parentBrowser |
| BrowserApi * | m_api |
| QNetworkRequest | m_downloadRequest |
| QNetworkReply * | m_downloadReply |
| MythUIBusyDialog * | m_busyPopup |
| bool | m_downloadAndPlay |
Subclass of QWebView.
Definition at line 75 of file mythuiwebbrowser.h.
| 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.
| 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().
MythWebPage* MythWebView::m_webpage [private] |
Definition at line 105 of file mythuiwebbrowser.h.
Referenced by MythWebView(), and ~MythWebView().
MythUIWebBrowser* MythWebView::m_parentBrowser [private] |
Definition at line 106 of file mythuiwebbrowser.h.
Referenced by doDownloadRequested(), keyPressEvent(), and MythWebView().
BrowserApi* MythWebView::m_api [private] |
Definition at line 107 of file mythuiwebbrowser.h.
Referenced by MythWebView(), and ~MythWebView().
QNetworkRequest MythWebView::m_downloadRequest [private] |
Definition at line 108 of file mythuiwebbrowser.h.
Referenced by customEvent(), doDownload(), doDownloadRequested(), handleUnsupportedContent(), and showDownloadMenu().
QNetworkReply* MythWebView::m_downloadReply [private] |
Definition at line 109 of file mythuiwebbrowser.h.
Referenced by getReplyMimetype(), handleDownloadRequested(), handleUnsupportedContent(), and MythWebView().
MythUIBusyDialog* MythWebView::m_busyPopup [private] |
Definition at line 110 of file mythuiwebbrowser.h.
Referenced by closeBusyPopup(), MythWebView(), and openBusyPopup().
bool MythWebView::m_downloadAndPlay [private] |
Definition at line 111 of file mythuiwebbrowser.h.
Referenced by customEvent(), doDownloadRequested(), handleUnsupportedContent(), and MythWebView().
1.6.3