MythTV  master
Public Slots | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
BrowserApi Class Reference

Adds a JavaScript object. More...

#include <mythuiwebbrowser.h>

Inheritance diagram for BrowserApi:
Inheritance graph
[legend]
Collaboration diagram for BrowserApi:
Collaboration graph
[legend]

Public Slots

static void Play (void)
 
static void Stop (void)
 
static void Pause (void)
 
static void SetVolume (int volumn)
 
int GetVolume (void)
 
static void PlayFile (const QString &filename)
 
static void PlayTrack (int trackID)
 
static void PlayURL (const QString &url)
 
QString GetMetadata (void)
 

Public Member Functions

 BrowserApi (QObject *parent)
 
 ~BrowserApi (void)
 
void setWebView (QWebView *view)
 

Private Slots

void attachObject ()
 

Private Member Functions

void customEvent (QEvent *e) override
 

Private Attributes

QWebFrame * m_frame
 
bool m_gotAnswer
 
QString m_answer
 

Detailed Description

Adds a JavaScript object.

Note
allows the browser to control the music player

Definition at line 23 of file mythuiwebbrowser.h.

Constructor & Destructor Documentation

◆ BrowserApi()

BrowserApi::BrowserApi ( QObject *  parent)
explicit

Definition at line 124 of file mythuiwebbrowser.cpp.

◆ ~BrowserApi()

BrowserApi::~BrowserApi ( void  )

Definition at line 131 of file mythuiwebbrowser.cpp.

Member Function Documentation

◆ setWebView()

void BrowserApi::setWebView ( QWebView *  view)

Definition at line 136 of file mythuiwebbrowser.cpp.

Referenced by MythWebView::MythWebView().

◆ Play

void BrowserApi::Play ( void  )
staticslot

Definition at line 151 of file mythuiwebbrowser.cpp.

◆ Stop

void BrowserApi::Stop ( void  )
staticslot

Definition at line 157 of file mythuiwebbrowser.cpp.

◆ Pause

void BrowserApi::Pause ( void  )
staticslot

Definition at line 163 of file mythuiwebbrowser.cpp.

◆ SetVolume

void BrowserApi::SetVolume ( int  volumn)
staticslot

Definition at line 169 of file mythuiwebbrowser.cpp.

◆ GetVolume

int BrowserApi::GetVolume ( void  )
slot

Definition at line 176 of file mythuiwebbrowser.cpp.

◆ PlayFile

void BrowserApi::PlayFile ( const QString &  filename)
staticslot

Definition at line 199 of file mythuiwebbrowser.cpp.

◆ PlayTrack

void BrowserApi::PlayTrack ( int  trackID)
staticslot

Definition at line 206 of file mythuiwebbrowser.cpp.

◆ PlayURL

void BrowserApi::PlayURL ( const QString &  url)
staticslot

Definition at line 213 of file mythuiwebbrowser.cpp.

◆ GetMetadata

QString BrowserApi::GetMetadata ( void  )
slot

Definition at line 220 of file mythuiwebbrowser.cpp.

◆ attachObject

void BrowserApi::attachObject ( void  )
privateslot

Definition at line 146 of file mythuiwebbrowser.cpp.

Referenced by setWebView().

◆ customEvent()

void BrowserApi::customEvent ( QEvent *  e)
overrideprivate

Definition at line 243 of file mythuiwebbrowser.cpp.

Member Data Documentation

◆ m_frame

QWebFrame* BrowserApi::m_frame
private

Definition at line 52 of file mythuiwebbrowser.h.

Referenced by attachObject(), and setWebView().

◆ m_gotAnswer

bool BrowserApi::m_gotAnswer
private

Definition at line 54 of file mythuiwebbrowser.h.

Referenced by customEvent(), GetMetadata(), and GetVolume().

◆ m_answer

QString BrowserApi::m_answer
private

Definition at line 55 of file mythuiwebbrowser.h.

Referenced by customEvent(), GetMetadata(), and GetVolume().


The documentation for this class was generated from the following files: