MythTV  master
Classes | Functions | Variables
mythuiwebbrowser.cpp File Reference

Provide a web browser widget. More...

#include "mythuiwebbrowser.h"
#include "mythpainter.h"
#include "mythimage.h"
#include "mythmainwindow.h"
#include "mythfontproperties.h"
#include "mythlogging.h"
#include "mythdb.h"
#include "mythdirs.h"
#include "mythuihelper.h"
#include "mythcorecontext.h"
#include "mythdownloadmanager.h"
#include "mythdialogbox.h"
#include "mythprogressdialog.h"
#include "mythuiscrollbar.h"
#include <QApplication>
#include <QWebFrame>
#include <QWebHistory>
#include <QPainter>
#include <QDir>
#include <QBuffer>
#include <QStyle>
#include <QKeyEvent>
#include <QDomDocument>
#include <QNetworkCookieJar>
#include <QNetworkConfiguration>
#include <chrono>
#include <thread>
Include dependency graph for mythuiwebbrowser.cpp:

Go to the source code of this file.

Classes

struct  MimeType
 

Functions

static void DestroyNetworkAccessManager (void)
 
static QNetworkAccessManager * GetNetworkAccessManager (void)
 

Variables

static MimeType SupportedMimeTypes []
 
static int SupportedMimeTypesCount
 
static MythNetworkAccessManagernetworkManager = nullptr
 
const char * kgetType
 Key event handler. More...
 

Detailed Description

Provide a web browser widget.

Author
Paul Harrison pharr.nosp@m.ison.nosp@m.@myth.nosp@m.tv.o.nosp@m.rg

Definition in file mythuiwebbrowser.cpp.

Function Documentation

◆ DestroyNetworkAccessManager()

static void DestroyNetworkAccessManager ( void  )
static

Definition at line 91 of file mythuiwebbrowser.cpp.

Referenced by GetNetworkAccessManager().

◆ GetNetworkAccessManager()

static QNetworkAccessManager* GetNetworkAccessManager ( void  )
static

Definition at line 100 of file mythuiwebbrowser.cpp.

Referenced by MythWebPage::MythWebPage().

Variable Documentation

◆ SupportedMimeTypes

MimeType SupportedMimeTypes[]
static

◆ SupportedMimeTypesCount

int SupportedMimeTypesCount
static
Initial value:
= sizeof(SupportedMimeTypes) /
sizeof(SupportedMimeTypes[0])
static MimeType SupportedMimeTypes[]

Definition at line 79 of file mythuiwebbrowser.cpp.

Referenced by MythWebView::getExtensionForMimetype(), MythWebView::isMusicFile(), and MythWebView::isVideoFile().

◆ networkManager

MythNetworkAccessManager* networkManager = nullptr
static

◆ kgetType

const char* kgetType
Initial value:
= "\
function activeElement()\
{\
var type;\
type = document.activeElement.type;\
return type;\
}\
activeElement();"

Key event handler.

Parameters
eventKeypress event

Definition at line 376 of file mythuiwebbrowser.cpp.

Referenced by MythWebView::keyPressEvent().