|
MythTV master
|
#include <libmythfreemheg/Engine.h>
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 () |
| MHRoot * | FindObject (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 ®ion) |
| 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) |
| MHOctetString & | GetGroupId () |
| MHContext * | GetContext () |
| QString | GetPathName (const MHOctetString &str) |
| MHInteractible * | GetInteraction (void) |
| void | SetInteraction (MHInteractible *p) |
| int | GetTuneInfo () |
| void | SetTuneInfo (int tuneinfo) |
Public Member Functions inherited from MHEG | |
| virtual | ~MHEG ()=default |
| virtual void | SetBooting ()=0 |
| virtual void | DrawDisplay (const QRegion &toDraw)=0 |
| virtual std::chrono::milliseconds | RunAll (void)=0 |
| virtual void | GenerateUserAction (int nCode)=0 |
| virtual void | EngineEvent (int)=0 |
| virtual void | StreamStarted (MHStream *, bool bStarted=true)=0 |
Static Public Attributes | |
| static const char * | MHEGEngineProviderIdString = "MHGGNU001" |
Protected Member Functions | |
| void | CheckLinks (const MHObjectRef &sourceRef, enum EventType ev, const MHUnion &un) |
| MHGroup * | ParseProgram (QByteArray &text) |
| void | DrawRegion (const QRegion &toDraw, int nStackPos) |
| MHApplication * | CurrentApp () |
| MHScene * | CurrentScene () |
| 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< MHPSEntry > | m_persistentStore |
| bool | m_fInTransition {false} |
| MHOctetString | m_currentGroupId |
| MHContext * | m_context {nullptr} |
| bool | m_fBooting {true} |
| MHInteractible * | m_interacting {nullptr} |
|
explicit |
Definition at line 49 of file Engine.cpp.
|
override |
Definition at line 60 of file Engine.cpp.
| void MHEngine::AddActions | ( | const MHActionSequence & | actions | ) |
Definition at line 729 of file Engine.cpp.
Referenced by MHGroup::Activation(), MHApplication::Activation(), MHTokenGroup::CallActionSlot(), MHGroup::Deactivation(), Launch(), and MHLink::MatchEvent().
| void MHEngine::AddLink | ( | MHLink * | pLink | ) |
Definition at line 718 of file Engine.cpp.
Referenced by MHLink::Activation().
| void MHEngine::AddToDisplayStack | ( | MHVisible * | pVis | ) |
Definition at line 739 of file Engine.cpp.
Referenced by MHVisible::Preparation().
| void MHEngine::BootApplication | ( | const char * | fileName | ) |
| void MHEngine::BringToFront | ( | const MHRoot * | pVis | ) |
Definition at line 771 of file Engine.cpp.
Referenced by MHVisible::BringToFront().
| void MHEngine::CancelExternalContentRequest | ( | MHIngredient * | pRequester | ) |
Definition at line 1064 of file Engine.cpp.
Referenced by MHIngredient::ContentPreparation(), MHIngredient::Destruction(), and RequestExternalContent().
|
protected |
Definition at line 1085 of file Engine.cpp.
Referenced by RunAll().
|
protected |
Definition at line 711 of file Engine.cpp.
Referenced by EventTriggered(), and RunAll().
|
inlineprotected |
Definition at line 176 of file Engine.h.
Referenced by AddToDisplayStack(), BringToFront(), CurrentScene(), DrawDisplay(), DrawRegion(), EngineEvent(), FindObject(), GetDefaultBGColour(), GetDefaultBitmapCHook(), GetDefaultButtonRefColour(), GetDefaultCharSet(), GetDefaultFontAttrs(), GetDefaultHighlightRefColour(), GetDefaultSliderRefColour(), GetDefaultStreamCHook(), GetDefaultTextCHook(), GetDefaultTextColour(), GetPathName(), GetTuneInfo(), Launch(), LockScreen(), PutBefore(), PutBehind(), Quit(), RemoveFromDisplayStack(), RunAll(), SendToBack(), SetTuneInfo(), TransitionToScene(), and UnlockScreen().
|
inlineprotected |
Definition at line 181 of file Engine.h.
Referenced by FindObject(), GenerateUserAction(), Launch(), Quit(), RunAll(), and TransitionToScene().
|
overridevirtual |
Implements MHEG.
Definition at line 912 of file Engine.cpp.
|
protected |
Definition at line 875 of file Engine.cpp.
Referenced by DrawDisplay(), and DrawRegion().
|
overridevirtual |
Implements MHEG.
Definition at line 985 of file Engine.cpp.
Referenced by CheckContentRequests(), GenerateUserAction(), Launch(), RequestExternalContent(), and TransitionToScene().
Definition at line 94 of file Engine.h.
Referenced by MHScene::Activation(), MHApplication::Activation(), MHLink::Activation(), MHProgram::Activation(), MHStream::Activation(), MHAudio::Activation(), MHTokenGroup::Activation(), MHVariable::Activation(), MHVisible::Activation(), MHStream::BeginPlaying(), MHResidentProgram::CallProgram(), MHGroup::CheckTimers(), MHBitmap::ContentArrived(), MHText::ContentArrived(), MHIngredient::ContentPreparation(), MHStream::ContentPreparation(), MHVideo::ContentPreparation(), MHRoot::Deactivation(), MHTokenGroup::Deactivation(), MHSlider::Decrement(), MHListGroup::Deselect(), MHRoot::Destruction(), EngineEvent(), EventTriggered(), GenerateUserAction(), MHSlider::Increment(), MHInteractible::InteractSetHighlightStatus(), MHInteractible::InteractSetInteractionStatus(), MHSlider::KeyEvent(), MHSendEvent::Perform(), MHRoot::Preparation(), MHListGroup::Select(), MHSlider::SetPortion(), MHSlider::SetSliderParameters(), MHSlider::SetSliderValue(), MHSlider::Step(), MHStream::StopPlaying(), StreamStarted(), MHBooleanVar::TestVariable(), MHOctetStrVar::TestVariable(), MHObjectRefVar::TestVariable(), MHContentRefVar::TestVariable(), MHIntegerVar::TestVariable(), MHTokenGroup::TransferToken(), and MHListGroup::Update().
Definition at line 645 of file Engine.cpp.
| MHRoot * MHEngine::FindObject | ( | const MHObjectRef & | oRef, |
| bool | failOnNotFound = true |
||
| ) |
Definition at line 574 of file Engine.cpp.
Referenced by MHTokenGroup::Activation(), MHClone::CallAction(), MHResidentProgram::CallProgram(), MHListGroup::GetCellItem(), MHListGroup::GetItemStatus(), MHListGroup::GetListItem(), MHGenericContentRef::GetValue(), MHGenericBoolean::GetValue(), MHGenericInteger::GetValue(), MHGenericObjectRef::GetValue(), MHGenericOctetString::GetValue(), LoadStorePersistent(), MHActionObjectRef::Perform(), MHActionObjectRef2::Perform(), MHActionGenericObjectRef::Perform(), MHSendEvent::Perform(), MHPersistent::Perform(), MHGetEngineSupport::Perform(), MHSetData::Perform(), MHGetAvailabilityStatus::Perform(), MHActionGenericObjectRefFix::Perform(), MHAddItem::Perform(), MHSetVariable::Perform(), MHTestVariable::Perform(), MHIntegerAction::Perform(), MHAppend::Perform(), MHListGroup::Preparation(), SetSuccessFlag(), and MHElemAction::Target().
|
overridevirtual |
Implements MHEG.
Definition at line 945 of file Engine.cpp.
|
inline |
Definition at line 154 of file Engine.h.
Referenced by MHAudio::Activation(), MHVideo::Activation(), MHStream::BeginPlaying(), MHAudio::BeginPlaying(), MHVideo::BeginPlaying(), MHResidentProgram::CallProgram(), MHAudio::Deactivation(), MHVideo::Deactivation(), MHVideo::Display(), MHText::Display(), MHRectangle::Display(), MHSlider::Display(), MHStream::GetCounterMaxPosition(), MHStream::GetCounterPosition(), MHBitmap::Initialise(), MHDynamicLineArt::Initialise(), MHText::Initialise(), MHText::Preparation(), MHStream::SetCounterPosition(), MHStream::SetSpeed(), MHStream::StopPlaying(), MHAudio::StopPlaying(), and MHVideo::StopPlaying().
| void MHEngine::GetDefaultBGColour | ( | MHColour & | colour | ) |
Definition at line 1402 of file Engine.cpp.
Referenced by MHText::Preparation().
| int MHEngine::GetDefaultBitmapCHook | ( | ) |
Definition at line 1494 of file Engine.cpp.
Referenced by MHBitmap::CreateContent().
| void MHEngine::GetDefaultButtonRefColour | ( | MHColour & | colour | ) |
Definition at line 1430 of file Engine.cpp.
| int MHEngine::GetDefaultCharSet | ( | ) |
Definition at line 1391 of file Engine.cpp.
| void MHEngine::GetDefaultFontAttrs | ( | MHOctetString & | str | ) |
Definition at line 1505 of file Engine.cpp.
Referenced by MHText::Preparation().
| void MHEngine::GetDefaultHighlightRefColour | ( | MHColour & | colour | ) |
Definition at line 1444 of file Engine.cpp.
Referenced by MHInteractible::Initialise().
| void MHEngine::GetDefaultSliderRefColour | ( | MHColour & | colour | ) |
Definition at line 1458 of file Engine.cpp.
Referenced by MHSlider::Initialise().
| int MHEngine::GetDefaultStreamCHook | ( | ) |
Definition at line 1483 of file Engine.cpp.
| int MHEngine::GetDefaultTextCHook | ( | ) |
Definition at line 1472 of file Engine.cpp.
| void MHEngine::GetDefaultTextColour | ( | MHColour & | colour | ) |
Definition at line 1416 of file Engine.cpp.
Referenced by MHText::Preparation().
| bool MHEngine::GetEngineSupport | ( | const MHOctetString & | feature | ) |
Definition at line 1234 of file Engine.cpp.
Referenced by MHGetEngineSupport::Perform().
|
inline |
Definition at line 153 of file Engine.h.
Referenced by MHObjectRef::Initialise(), and MHGroup::Initialise().
|
inline |
Definition at line 161 of file Engine.h.
Referenced by MHInteractible::InteractSetInteractionStatus().
| QString MHEngine::GetPathName | ( | const MHOctetString & | str | ) |
Definition at line 523 of file Engine.cpp.
Referenced by MHResidentProgram::CallProgram(), MHContentRef::Equal(), MHObjectRef::Equal(), FindObject(), Launch(), RequestExternalContent(), and TransitionToScene().
|
inline |
Definition at line 164 of file Engine.h.
Referenced by MHResidentProgram::CallProgram().
| bool MHEngine::Launch | ( | const MHObjectRef & | target, |
| bool | fIsSpawn = false |
||
| ) |
Definition at line 263 of file Engine.cpp.
Referenced by MHLaunch::Perform(), RunAll(), and Spawn().
| bool MHEngine::LoadStorePersistent | ( | bool | fIsLoad, |
| const MHOctetString & | fileName, | ||
| const MHSequence< MHObjectRef * > & | variables | ||
| ) |
Definition at line 1152 of file Engine.cpp.
Referenced by MHPersistent::Perform().
|
inline |
Definition at line 110 of file Engine.h.
Referenced by MHLockScreen::Perform().
|
protected |
Definition at line 198 of file Engine.cpp.
Referenced by Launch(), and TransitionToScene().
Definition at line 807 of file Engine.cpp.
Referenced by MHVisible::PutBefore().
Definition at line 841 of file Engine.cpp.
Referenced by MHVisible::PutBehind().
| void MHEngine::Quit | ( | ) |
Definition at line 367 of file Engine.cpp.
Referenced by MHQuit::Perform().
| void MHEngine::Redraw | ( | const QRegion & | region | ) |
Definition at line 926 of file Engine.cpp.
Referenced by MHVisible::Activation(), AddToDisplayStack(), BringToFront(), MHBitmap::CreateContent(), MHText::CreateContent(), MHVisible::Deactivation(), MHSlider::Decrement(), MHDynamicLineArt::DrawArcSector(), MHDynamicLineArt::DrawLine(), MHDynamicLineArt::DrawOval(), MHDynamicLineArt::DrawPoly(), MHDynamicLineArt::DrawRectangle(), MHSlider::Increment(), MHSlider::InteractionCompleted(), MHInteractible::InteractSetHighlightStatus(), PutBefore(), PutBehind(), RemoveFromDisplayStack(), MHBitmap::ScaleBitmap(), MHVideo::ScaleVideo(), SendToBack(), MHText::SetBackgroundColour(), MHBitmap::SetBitmapDecodeOffset(), MHVisible::SetBoxSize(), MHLineArt::SetFillColour(), MHText::SetFontAttributes(), MHLineArt::SetLineColour(), MHLineArt::SetLineStyle(), MHLineArt::SetLineWidth(), MHVisible::SetPaletteRef(), MHSlider::SetPortion(), MHVisible::SetPosition(), MHSlider::SetSliderParameters(), MHSlider::SetSliderValue(), MHText::SetTextColour(), MHVideo::SetVideoDecodeOffset(), and MHSlider::Step().
| void MHEngine::RemoveFromDisplayStack | ( | MHVisible * | pVis | ) |
Definition at line 754 of file Engine.cpp.
Referenced by MHVisible::Destruction().
| void MHEngine::RemoveLink | ( | MHLink * | pLink | ) |
Definition at line 723 of file Engine.cpp.
Referenced by MHLink::Deactivation().
| void MHEngine::RequestExternalContent | ( | MHIngredient * | pRequester | ) |
Definition at line 999 of file Engine.cpp.
Referenced by MHIngredient::ContentPreparation().
| void MHEngine::RunActions | ( | ) |
Definition at line 614 of file Engine.cpp.
Referenced by MHGroup::Activation(), MHApplication::Activation(), MHGroup::Deactivation(), Launch(), and RunAll().
|
overridevirtual |
Implements MHEG.
Definition at line 82 of file Engine.cpp.
| void MHEngine::SendToBack | ( | const MHRoot * | pVis | ) |
Definition at line 789 of file Engine.cpp.
Referenced by MHVisible::SendToBack().
|
inlineoverridevirtual |
| void MHEngine::SetInputRegister | ( | int | nReg | ) |
Definition at line 517 of file Engine.cpp.
Referenced by MHScene::SetInputRegister(), and TransitionToScene().
|
inline |
Definition at line 162 of file Engine.h.
Referenced by MHInteractible::Interaction(), MHInteractible::InteractSetInteractionStatus(), and MHSlider::KeyEvent().
|
inline |
Definition at line 165 of file Engine.h.
Referenced by MHResidentProgram::CallProgram().
|
inline |
Definition at line 85 of file Engine.h.
Referenced by MHSpawn::Perform().
Implements MHEG.
Definition at line 993 of file Engine.cpp.
| void MHEngine::TransitionToScene | ( | const MHObjectRef & | target | ) |
Definition at line 409 of file Engine.cpp.
Referenced by MHTransitionTo::Perform().
| void MHEngine::UnlockScreen | ( | ) |
Definition at line 932 of file Engine.cpp.
Referenced by MHUnlockScreen::Perform().
|
protected |
Definition at line 189 of file Engine.h.
Referenced by AddActions(), Launch(), RunActions(), RunAll(), and TransitionToScene().
|
protected |
Definition at line 175 of file Engine.h.
Referenced by CurrentApp(), Launch(), Quit(), RunAll(), and ~MHEngine().
|
protected |
Definition at line 211 of file Engine.h.
Referenced by CheckContentRequests(), DrawRegion(), GetContext(), GetEngineSupport(), Launch(), RequestExternalContent(), RunAll(), SetInputRegister(), and TransitionToScene().
|
protected |
Definition at line 209 of file Engine.h.
Referenced by GetGroupId().
|
protected |
Definition at line 193 of file Engine.h.
Referenced by EventTriggered(), Launch(), Quit(), RunAll(), TransitionToScene(), and ~MHEngine().
|
protected |
Definition at line 200 of file Engine.h.
Referenced by CancelExternalContentRequest(), CheckContentRequests(), RequestExternalContent(), RunAll(), and ~MHEngine().
Definition at line 212 of file Engine.h.
Referenced by DrawDisplay(), EngineEvent(), Launch(), Quit(), RunAll(), and SetBooting().
Definition at line 205 of file Engine.h.
Referenced by InTransition(), Launch(), Quit(), and TransitionToScene().
|
protected |
Definition at line 214 of file Engine.h.
Referenced by GenerateUserAction(), GetInteraction(), SetInteraction(), and TransitionToScene().
|
protected |
Definition at line 196 of file Engine.h.
Referenced by AddLink(), CheckLinks(), RemoveLink(), and RunAll().
|
protected |
Definition at line 203 of file Engine.h.
Referenced by LoadStorePersistent(), and MHEngine().
|
protected |
Definition at line 172 of file Engine.h.
Referenced by Redraw(), RunAll(), and TransitionToScene().
|
static |
Definition at line 158 of file Engine.h.
Referenced by MHResidentProgram::CallProgram(), and GetEngineSupport().