MythTV  master
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
MHEngine Class Reference

#include <Engine.h>

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

Public Member Functions

 MHEngine (MHContext *context)
 
 ~MHEngine () override
 
void SetBooting () override
 
void DrawDisplay (const QRegion &toDraw) override
 
void BootApplication (const char *fileName)
 
void TransitionToScene (const MHObjectRef &target)
 
bool Launch (const MHObjectRef &target, bool fIsSpawn=false)
 
void Spawn (const MHObjectRef &target)
 
void Quit ()
 
MHRootFindObject (const MHObjectRef &oRef, bool failOnNotFound=true)
 
void EventTriggered (MHRoot *pSource, enum EventType ev)
 
void EventTriggered (MHRoot *pSource, enum EventType ev, const MHUnion &evData)
 
void AddActions (const MHActionSequence &actions)
 
void AddToDisplayStack (MHVisible *pVis)
 
void RemoveFromDisplayStack (MHVisible *pVis)
 
void Redraw (const QRegion &region)
 
void BringToFront (const MHRoot *pVis)
 
void SendToBack (const MHRoot *pVis)
 
void PutBefore (const MHRoot *pVis, const MHRoot *pRef)
 
void PutBehind (const MHRoot *pVis, const MHRoot *pRef)
 
void LockScreen ()
 
void UnlockScreen ()
 
std::chrono::milliseconds RunAll (void) override
 
void RunActions ()
 
void GenerateUserAction (int nCode) override
 
void EngineEvent (int nCode) override
 
void StreamStarted (MHStream *stream, bool bStarted) override
 
void RequestExternalContent (MHIngredient *pRequester)
 
void CancelExternalContentRequest (MHIngredient *pRequester)
 
bool LoadStorePersistent (bool fIsLoad, const MHOctetString &fileName, const MHSequence< MHObjectRef * > &variables)
 
void AddLink (MHLink *pLink)
 
void RemoveLink (MHLink *pLink)
 
bool InTransition () const
 
bool GetEngineSupport (const MHOctetString &feature)
 
int GetDefaultCharSet ()
 
void GetDefaultBGColour (MHColour &colour)
 
void GetDefaultTextColour (MHColour &colour)
 
void GetDefaultButtonRefColour (MHColour &colour)
 
void GetDefaultHighlightRefColour (MHColour &colour)
 
void GetDefaultSliderRefColour (MHColour &colour)
 
int GetDefaultTextCHook ()
 
int GetDefaultStreamCHook ()
 
int GetDefaultBitmapCHook ()
 
void GetDefaultFontAttrs (MHOctetString &str)
 
void SetInputRegister (int nReg)
 
MHOctetStringGetGroupId ()
 
MHContextGetContext ()
 
QString GetPathName (const MHOctetString &str)
 
MHInteractibleGetInteraction (void)
 
void SetInteraction (MHInteractible *p)
 
int GetTuneInfo ()
 
void SetTuneInfo (int tuneinfo)
 
- Public Member Functions inherited from MHEG
virtual ~MHEG ()=default
 

Static Public Attributes

static const char * MHEGEngineProviderIdString = "MHGGNU001"
 

Protected Member Functions

void CheckLinks (const MHObjectRef &sourceRef, enum EventType ev, const MHUnion &un)
 
MHGroupParseProgram (QByteArray &text)
 
void DrawRegion (const QRegion &toDraw, int nStackPos)
 
MHApplicationCurrentApp ()
 
MHSceneCurrentScene ()
 
void CheckContentRequests ()
 

Protected Attributes

QRegion m_redrawRegion
 
QStack< MHApplication * > m_applicationStack
 
QStack< MHElemAction * > m_actionStack
 
QQueue< MHAsynchEvent * > m_eventQueue
 
QList< MHLink * > m_linkTable
 
QList< MHExternContent * > m_externContentTable
 
MHOwnPtrSequence< MHPSEntrym_persistentStore
 
bool m_fInTransition {false}
 
MHOctetString m_currentGroupId
 
MHContextm_context {nullptr}
 
bool m_fBooting {true}
 
MHInteractiblem_interacting {nullptr}
 

Detailed Description

Definition at line 72 of file Engine.h.

Constructor & Destructor Documentation

◆ MHEngine()

MHEngine::MHEngine ( MHContext context)
explicit

Definition at line 48 of file Engine.cpp.

◆ ~MHEngine()

MHEngine::~MHEngine ( )
override

Definition at line 59 of file Engine.cpp.

Member Function Documentation

◆ SetBooting()

void MHEngine::SetBooting ( )
inlineoverridevirtual

Implements MHEG.

Definition at line 77 of file Engine.h.

◆ DrawDisplay()

void MHEngine::DrawDisplay ( const QRegion &  toDraw)
overridevirtual

Implements MHEG.

Definition at line 885 of file Engine.cpp.

◆ BootApplication()

void MHEngine::BootApplication ( const char *  fileName)

◆ TransitionToScene()

void MHEngine::TransitionToScene ( const MHObjectRef target)

Definition at line 418 of file Engine.cpp.

Referenced by MHTransitionTo::Perform().

◆ Launch()

bool MHEngine::Launch ( const MHObjectRef target,
bool  fIsSpawn = false 
)

Definition at line 274 of file Engine.cpp.

Referenced by MHLaunch::Perform(), RunAll(), and Spawn().

◆ Spawn()

void MHEngine::Spawn ( const MHObjectRef target)
inline

Definition at line 85 of file Engine.h.

Referenced by MHSpawn::Perform().

◆ Quit()

void MHEngine::Quit ( )

Definition at line 378 of file Engine.cpp.

Referenced by MHQuit::Perform().

◆ FindObject()

MHRoot * MHEngine::FindObject ( const MHObjectRef oRef,
bool  failOnNotFound = true 
)

◆ EventTriggered() [1/2]

void MHEngine::EventTriggered ( MHRoot pSource,
enum EventType  ev 
)
inline

◆ EventTriggered() [2/2]

void MHEngine::EventTriggered ( MHRoot pSource,
enum EventType  ev,
const MHUnion evData 
)

Definition at line 639 of file Engine.cpp.

◆ AddActions()

void MHEngine::AddActions ( const MHActionSequence actions)

◆ AddToDisplayStack()

void MHEngine::AddToDisplayStack ( MHVisible pVis)

Definition at line 733 of file Engine.cpp.

Referenced by MHVisible::Preparation().

◆ RemoveFromDisplayStack()

void MHEngine::RemoveFromDisplayStack ( MHVisible pVis)

Definition at line 745 of file Engine.cpp.

Referenced by MHVisible::Destruction().

◆ Redraw()

void MHEngine::Redraw ( const QRegion &  region)

◆ BringToFront()

void MHEngine::BringToFront ( const MHRoot pVis)

Definition at line 759 of file Engine.cpp.

Referenced by MHVisible::BringToFront().

◆ SendToBack()

void MHEngine::SendToBack ( const MHRoot pVis)

Definition at line 774 of file Engine.cpp.

Referenced by MHVisible::SendToBack().

◆ PutBefore()

void MHEngine::PutBefore ( const MHRoot pVis,
const MHRoot pRef 
)

Definition at line 789 of file Engine.cpp.

Referenced by MHVisible::PutBefore().

◆ PutBehind()

void MHEngine::PutBehind ( const MHRoot pVis,
const MHRoot pRef 
)

Definition at line 820 of file Engine.cpp.

Referenced by MHVisible::PutBehind().

◆ LockScreen()

void MHEngine::LockScreen ( )
inline

Definition at line 110 of file Engine.h.

Referenced by MHLockScreen::Perform().

◆ UnlockScreen()

void MHEngine::UnlockScreen ( )

Definition at line 904 of file Engine.cpp.

Referenced by MHUnlockScreen::Perform().

◆ RunAll()

std::chrono::milliseconds MHEngine::RunAll ( void  )
overridevirtual

Implements MHEG.

Definition at line 81 of file Engine.cpp.

◆ RunActions()

void MHEngine::RunActions ( )

◆ GenerateUserAction()

void MHEngine::GenerateUserAction ( int  nCode)
overridevirtual

Implements MHEG.

Definition at line 914 of file Engine.cpp.

◆ EngineEvent()

void MHEngine::EngineEvent ( int  nCode)
overridevirtual

◆ StreamStarted()

void MHEngine::StreamStarted ( MHStream stream,
bool  bStarted 
)
overridevirtual

Implements MHEG.

Definition at line 962 of file Engine.cpp.

◆ RequestExternalContent()

void MHEngine::RequestExternalContent ( MHIngredient pRequester)

Definition at line 968 of file Engine.cpp.

Referenced by MHIngredient::ContentPreparation().

◆ CancelExternalContentRequest()

void MHEngine::CancelExternalContentRequest ( MHIngredient pRequester)

◆ LoadStorePersistent()

bool MHEngine::LoadStorePersistent ( bool  fIsLoad,
const MHOctetString fileName,
const MHSequence< MHObjectRef * > &  variables 
)

Definition at line 1109 of file Engine.cpp.

Referenced by MHPersistent::Perform().

◆ AddLink()

void MHEngine::AddLink ( MHLink pLink)

Definition at line 712 of file Engine.cpp.

Referenced by MHLink::Activation().

◆ RemoveLink()

void MHEngine::RemoveLink ( MHLink pLink)

Definition at line 717 of file Engine.cpp.

Referenced by MHLink::Deactivation().

◆ InTransition()

bool MHEngine::InTransition ( ) const
inline

Definition at line 135 of file Engine.h.

◆ GetEngineSupport()

bool MHEngine::GetEngineSupport ( const MHOctetString feature)

Definition at line 1191 of file Engine.cpp.

Referenced by MHGetEngineSupport::Perform().

◆ GetDefaultCharSet()

int MHEngine::GetDefaultCharSet ( )

Definition at line 1348 of file Engine.cpp.

◆ GetDefaultBGColour()

void MHEngine::GetDefaultBGColour ( MHColour colour)

Definition at line 1359 of file Engine.cpp.

Referenced by MHText::Preparation().

◆ GetDefaultTextColour()

void MHEngine::GetDefaultTextColour ( MHColour colour)

Definition at line 1373 of file Engine.cpp.

Referenced by MHText::Preparation().

◆ GetDefaultButtonRefColour()

void MHEngine::GetDefaultButtonRefColour ( MHColour colour)

Definition at line 1387 of file Engine.cpp.

◆ GetDefaultHighlightRefColour()

void MHEngine::GetDefaultHighlightRefColour ( MHColour colour)

Definition at line 1401 of file Engine.cpp.

Referenced by MHInteractible::Initialise().

◆ GetDefaultSliderRefColour()

void MHEngine::GetDefaultSliderRefColour ( MHColour colour)

Definition at line 1415 of file Engine.cpp.

Referenced by MHSlider::Initialise().

◆ GetDefaultTextCHook()

int MHEngine::GetDefaultTextCHook ( )

Definition at line 1429 of file Engine.cpp.

◆ GetDefaultStreamCHook()

int MHEngine::GetDefaultStreamCHook ( )

Definition at line 1440 of file Engine.cpp.

◆ GetDefaultBitmapCHook()

int MHEngine::GetDefaultBitmapCHook ( )

Definition at line 1451 of file Engine.cpp.

Referenced by MHBitmap::CreateContent().

◆ GetDefaultFontAttrs()

void MHEngine::GetDefaultFontAttrs ( MHOctetString str)

Definition at line 1462 of file Engine.cpp.

Referenced by MHText::Preparation().

◆ SetInputRegister()

void MHEngine::SetInputRegister ( int  nReg)

Definition at line 517 of file Engine.cpp.

Referenced by MHScene::SetInputRegister(), and TransitionToScene().

◆ GetGroupId()

MHOctetString& MHEngine::GetGroupId ( )
inline

Definition at line 153 of file Engine.h.

Referenced by MHGroup::Initialise(), and MHObjectRef::Initialise().

◆ GetContext()

MHContext* MHEngine::GetContext ( )
inline

◆ GetPathName()

QString MHEngine::GetPathName ( const MHOctetString str)

◆ GetInteraction()

MHInteractible* MHEngine::GetInteraction ( void  )
inline

Definition at line 161 of file Engine.h.

Referenced by MHInteractible::InteractSetInteractionStatus().

◆ SetInteraction()

void MHEngine::SetInteraction ( MHInteractible p)
inline

◆ GetTuneInfo()

int MHEngine::GetTuneInfo ( )
inline

Definition at line 164 of file Engine.h.

Referenced by MHResidentProgram::CallProgram().

◆ SetTuneInfo()

void MHEngine::SetTuneInfo ( int  tuneinfo)
inline

Definition at line 165 of file Engine.h.

Referenced by MHResidentProgram::CallProgram().

◆ CheckLinks()

void MHEngine::CheckLinks ( const MHObjectRef sourceRef,
enum EventType  ev,
const MHUnion un 
)
protected

Definition at line 705 of file Engine.cpp.

Referenced by EventTriggered(), and RunAll().

◆ ParseProgram()

MHGroup * MHEngine::ParseProgram ( QByteArray &  text)
protected

Definition at line 195 of file Engine.cpp.

Referenced by Launch(), and TransitionToScene().

◆ DrawRegion()

void MHEngine::DrawRegion ( const QRegion &  toDraw,
int  nStackPos 
)
protected

Definition at line 851 of file Engine.cpp.

Referenced by DrawDisplay().

◆ CurrentApp()

MHApplication* MHEngine::CurrentApp ( )
inlineprotected

◆ CurrentScene()

MHScene* MHEngine::CurrentScene ( )
inlineprotected

Definition at line 181 of file Engine.h.

Referenced by FindObject(), GenerateUserAction(), Launch(), Quit(), RunAll(), and TransitionToScene().

◆ CheckContentRequests()

void MHEngine::CheckContentRequests ( )
protected

Definition at line 1048 of file Engine.cpp.

Referenced by RunAll().

Member Data Documentation

◆ MHEGEngineProviderIdString

const char * MHEngine::MHEGEngineProviderIdString = "MHGGNU001"
static

Definition at line 158 of file Engine.h.

Referenced by MHResidentProgram::CallProgram(), and GetEngineSupport().

◆ m_redrawRegion

QRegion MHEngine::m_redrawRegion
protected

Definition at line 172 of file Engine.h.

Referenced by Redraw(), RunAll(), and TransitionToScene().

◆ m_applicationStack

QStack<MHApplication*> MHEngine::m_applicationStack
protected

Definition at line 175 of file Engine.h.

Referenced by CurrentApp(), Launch(), Quit(), RunAll(), and ~MHEngine().

◆ m_actionStack

QStack<MHElemAction*> MHEngine::m_actionStack
protected

Definition at line 186 of file Engine.h.

Referenced by AddActions(), Launch(), RunActions(), RunAll(), and TransitionToScene().

◆ m_eventQueue

QQueue<MHAsynchEvent*> MHEngine::m_eventQueue
protected

Definition at line 190 of file Engine.h.

Referenced by EventTriggered(), Launch(), Quit(), RunAll(), TransitionToScene(), and ~MHEngine().

◆ m_linkTable

QList<MHLink*> MHEngine::m_linkTable
protected

Definition at line 193 of file Engine.h.

Referenced by AddLink(), CheckLinks(), RemoveLink(), and RunAll().

◆ m_externContentTable

QList<MHExternContent*> MHEngine::m_externContentTable
protected

◆ m_persistentStore

MHOwnPtrSequence<MHPSEntry> MHEngine::m_persistentStore
protected

Definition at line 200 of file Engine.h.

Referenced by LoadStorePersistent(), and MHEngine().

◆ m_fInTransition

bool MHEngine::m_fInTransition {false}
protected

Definition at line 202 of file Engine.h.

Referenced by InTransition(), Launch(), Quit(), and TransitionToScene().

◆ m_currentGroupId

MHOctetString MHEngine::m_currentGroupId
protected

Definition at line 206 of file Engine.h.

Referenced by GetGroupId().

◆ m_context

MHContext* MHEngine::m_context {nullptr}
protected

◆ m_fBooting

bool MHEngine::m_fBooting {true}
protected

Definition at line 209 of file Engine.h.

Referenced by DrawDisplay(), EngineEvent(), Launch(), Quit(), RunAll(), and SetBooting().

◆ m_interacting

MHInteractible* MHEngine::m_interacting {nullptr}
protected

Definition at line 211 of file Engine.h.

Referenced by GenerateUserAction(), GetInteraction(), SetInteraction(), and TransitionToScene().


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