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)
 
virtual ~MHEngine ()
 
void SetBooting () override
 
void DrawDisplay (QRegion toDraw) override
 
void BootApplication (const char *fileName)
 
void TransitionToScene (const MHObjectRef &)
 
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, 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 ()
 
int RunAll (void) override
 
void RunActions ()
 
void GenerateUserAction (int nCode) override
 
void EngineEvent (int nCode) override
 
void StreamStarted (MHStream *, 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 ()
 
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 ()
 

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 71 of file Engine.h.

Constructor & Destructor Documentation

◆ MHEngine()

MHEngine::MHEngine ( MHContext context)

Definition at line 48 of file Engine.cpp.

◆ ~MHEngine()

MHEngine::~MHEngine ( )
virtual

Definition at line 59 of file Engine.cpp.

Member Function Documentation

◆ SetBooting()

void MHEngine::SetBooting ( )
inlineoverridevirtual

Implements MHEG.

Definition at line 76 of file Engine.h.

◆ DrawDisplay()

void MHEngine::DrawDisplay ( QRegion  toDraw)
overridevirtual

Implements MHEG.

Definition at line 888 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 273 of file Engine.cpp.

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

◆ Spawn()

void MHEngine::Spawn ( const MHObjectRef target)
inline

Definition at line 84 of file Engine.h.

Referenced by MHSpawn::Perform().

◆ Quit()

void MHEngine::Quit ( )

Definition at line 377 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 640 of file Engine.cpp.

◆ AddActions()

void MHEngine::AddActions ( const MHActionSequence actions)

◆ AddToDisplayStack()

void MHEngine::AddToDisplayStack ( MHVisible pVis)

Definition at line 736 of file Engine.cpp.

Referenced by MHVisible::Preparation().

◆ RemoveFromDisplayStack()

void MHEngine::RemoveFromDisplayStack ( MHVisible pVis)

Definition at line 748 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 762 of file Engine.cpp.

Referenced by MHVisible::BringToFront().

◆ SendToBack()

void MHEngine::SendToBack ( const MHRoot pVis)

Definition at line 777 of file Engine.cpp.

Referenced by MHVisible::SendToBack().

◆ PutBefore()

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

Definition at line 792 of file Engine.cpp.

Referenced by MHVisible::PutBefore().

◆ PutBehind()

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

Definition at line 823 of file Engine.cpp.

Referenced by MHVisible::PutBehind().

◆ LockScreen()

void MHEngine::LockScreen ( )
inline

Definition at line 109 of file Engine.h.

Referenced by MHLockScreen::Perform().

◆ UnlockScreen()

void MHEngine::UnlockScreen ( )

Definition at line 907 of file Engine.cpp.

Referenced by MHUnlockScreen::Perform().

◆ RunAll()

int 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 917 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 965 of file Engine.cpp.

◆ RequestExternalContent()

void MHEngine::RequestExternalContent ( MHIngredient pRequester)

Definition at line 971 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 1113 of file Engine.cpp.

Referenced by MHPersistent::Perform().

◆ AddLink()

void MHEngine::AddLink ( MHLink pLink)

Definition at line 715 of file Engine.cpp.

Referenced by MHLink::Activation().

◆ RemoveLink()

void MHEngine::RemoveLink ( MHLink pLink)

Definition at line 720 of file Engine.cpp.

Referenced by MHLink::Deactivation().

◆ InTransition()

bool MHEngine::InTransition ( )
inline

Definition at line 134 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 1347 of file Engine.cpp.

◆ GetDefaultBGColour()

void MHEngine::GetDefaultBGColour ( MHColour colour)

Definition at line 1358 of file Engine.cpp.

Referenced by MHText::Preparation().

◆ GetDefaultTextColour()

void MHEngine::GetDefaultTextColour ( MHColour colour)

Definition at line 1372 of file Engine.cpp.

Referenced by MHText::Preparation().

◆ GetDefaultButtonRefColour()

void MHEngine::GetDefaultButtonRefColour ( MHColour colour)

Definition at line 1386 of file Engine.cpp.

◆ GetDefaultHighlightRefColour()

void MHEngine::GetDefaultHighlightRefColour ( MHColour colour)

Definition at line 1400 of file Engine.cpp.

Referenced by MHInteractible::Initialise().

◆ GetDefaultSliderRefColour()

void MHEngine::GetDefaultSliderRefColour ( MHColour colour)

Definition at line 1414 of file Engine.cpp.

Referenced by MHSlider::Initialise().

◆ GetDefaultTextCHook()

int MHEngine::GetDefaultTextCHook ( )

Definition at line 1428 of file Engine.cpp.

◆ GetDefaultStreamCHook()

int MHEngine::GetDefaultStreamCHook ( )

Definition at line 1439 of file Engine.cpp.

◆ GetDefaultBitmapCHook()

int MHEngine::GetDefaultBitmapCHook ( )

Definition at line 1450 of file Engine.cpp.

Referenced by MHBitmap::CreateContent().

◆ GetDefaultFontAttrs()

void MHEngine::GetDefaultFontAttrs ( MHOctetString str)

Definition at line 1461 of file Engine.cpp.

Referenced by MHText::Preparation().

◆ SetInputRegister()

void MHEngine::SetInputRegister ( int  nReg)

Definition at line 519 of file Engine.cpp.

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

◆ GetGroupId()

MHOctetString& MHEngine::GetGroupId ( )
inline

Definition at line 152 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 160 of file Engine.h.

Referenced by MHInteractible::InteractSetInteractionStatus().

◆ SetInteraction()

void MHEngine::SetInteraction ( MHInteractible p)
inline

◆ GetTuneInfo()

int MHEngine::GetTuneInfo ( )
inline

Definition at line 163 of file Engine.h.

Referenced by MHResidentProgram::CallProgram().

◆ SetTuneInfo()

void MHEngine::SetTuneInfo ( int  tuneinfo)
inline

Definition at line 164 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 706 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 854 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 1052 of file Engine.cpp.

Referenced by RunAll().

Member Data Documentation

◆ MHEGEngineProviderIdString

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

Definition at line 157 of file Engine.h.

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

◆ m_redrawRegion

QRegion MHEngine::m_redrawRegion
protected

Definition at line 171 of file Engine.h.

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

◆ m_ApplicationStack

QStack<MHApplication*> MHEngine::m_ApplicationStack
protected

Definition at line 174 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: