MythTV
master
|
#include <libmythfreemheg/Engine.h>
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 48 of file Engine.cpp.
|
override |
Definition at line 59 of file Engine.cpp.
|
inlineoverridevirtual |
|
overridevirtual |
Implements MHEG.
Definition at line 915 of file Engine.cpp.
void MHEngine::BootApplication | ( | const char * | fileName | ) |
void MHEngine::TransitionToScene | ( | const MHObjectRef & | target | ) |
Definition at line 420 of file Engine.cpp.
Referenced by MHTransitionTo::Perform().
bool MHEngine::Launch | ( | const MHObjectRef & | target, |
bool | fIsSpawn = false |
||
) |
Definition at line 274 of file Engine.cpp.
Referenced by MHLaunch::Perform(), RunAll(), and Spawn().
|
inline |
Definition at line 85 of file Engine.h.
Referenced by MHSpawn::Perform().
void MHEngine::Quit | ( | ) |
Definition at line 378 of file Engine.cpp.
Referenced by MHQuit::Perform().
MHRoot * MHEngine::FindObject | ( | const MHObjectRef & | oRef, |
bool | failOnNotFound = true |
||
) |
Definition at line 585 of file Engine.cpp.
Referenced by MHTokenGroup::Activation(), MHClone::CallAction(), MHResidentProgram::CallProgram(), MHListGroup::GetCellItem(), MHListGroup::GetItemStatus(), MHListGroup::GetListItem(), MHGenericBoolean::GetValue(), MHGenericInteger::GetValue(), MHGenericOctetString::GetValue(), MHGenericObjectRef::GetValue(), MHGenericContentRef::GetValue(), LoadStorePersistent(), MHActionObjectRef::Perform(), MHSetData::Perform(), MHActionObjectRef2::Perform(), MHActionGenericObjectRef::Perform(), MHSetVariable::Perform(), MHTestVariable::Perform(), MHActionGenericObjectRefFix::Perform(), MHSendEvent::Perform(), MHIntegerAction::Perform(), MHAddItem::Perform(), MHPersistent::Perform(), MHAppend::Perform(), MHGetAvailabilityStatus::Perform(), MHGetEngineSupport::Perform(), MHListGroup::Preparation(), SetSuccessFlag(), and MHElemAction::Target().
Definition at line 94 of file Engine.h.
Referenced by MHVariable::Activation(), MHStream::Activation(), MHProgram::Activation(), MHVisible::Activation(), MHLink::Activation(), MHTokenGroup::Activation(), MHAudio::Activation(), MHScene::Activation(), MHApplication::Activation(), MHStream::BeginPlaying(), MHResidentProgram::CallProgram(), MHGroup::CheckTimers(), MHText::ContentArrived(), MHBitmap::ContentArrived(), MHStream::ContentPreparation(), MHIngredient::ContentPreparation(), MHVideo::ContentPreparation(), MHRoot::Deactivation(), MHTokenGroup::Deactivation(), MHSlider::Decrement(), MHListGroup::Deselect(), MHRoot::Destruction(), EngineEvent(), 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(), MHIntegerVar::TestVariable(), MHOctetStrVar::TestVariable(), MHObjectRefVar::TestVariable(), MHContentRefVar::TestVariable(), MHTokenGroup::TransferToken(), and MHListGroup::Update().
Definition at line 651 of file Engine.cpp.
void MHEngine::AddActions | ( | const MHActionSequence & | actions | ) |
Definition at line 735 of file Engine.cpp.
Referenced by MHGroup::Activation(), MHApplication::Activation(), MHTokenGroup::CallActionSlot(), MHGroup::Deactivation(), Launch(), and MHLink::MatchEvent().
void MHEngine::AddToDisplayStack | ( | MHVisible * | pVis | ) |
Definition at line 745 of file Engine.cpp.
Referenced by MHVisible::Preparation().
void MHEngine::RemoveFromDisplayStack | ( | MHVisible * | pVis | ) |
Definition at line 760 of file Engine.cpp.
Referenced by MHVisible::Destruction().
void MHEngine::Redraw | ( | const QRegion & | region | ) |
Definition at line 929 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::BringToFront | ( | const MHRoot * | pVis | ) |
Definition at line 777 of file Engine.cpp.
Referenced by MHVisible::BringToFront().
void MHEngine::SendToBack | ( | const MHRoot * | pVis | ) |
Definition at line 795 of file Engine.cpp.
Referenced by MHVisible::SendToBack().
Definition at line 813 of file Engine.cpp.
Referenced by MHVisible::PutBefore().
Definition at line 847 of file Engine.cpp.
Referenced by MHVisible::PutBehind().
|
inline |
Definition at line 110 of file Engine.h.
Referenced by MHLockScreen::Perform().
void MHEngine::UnlockScreen | ( | ) |
Definition at line 935 of file Engine.cpp.
Referenced by MHUnlockScreen::Perform().
|
overridevirtual |
Implements MHEG.
Definition at line 81 of file Engine.cpp.
void MHEngine::RunActions | ( | ) |
Definition at line 625 of file Engine.cpp.
Referenced by MHGroup::Activation(), MHApplication::Activation(), MHGroup::Deactivation(), Launch(), and RunAll().
|
overridevirtual |
Implements MHEG.
Definition at line 948 of file Engine.cpp.
|
overridevirtual |
Implements MHEG.
Definition at line 988 of file Engine.cpp.
Referenced by CheckContentRequests(), GenerateUserAction(), Launch(), RequestExternalContent(), and TransitionToScene().
Implements MHEG.
Definition at line 996 of file Engine.cpp.
void MHEngine::RequestExternalContent | ( | MHIngredient * | pRequester | ) |
Definition at line 1002 of file Engine.cpp.
Referenced by MHIngredient::ContentPreparation().
void MHEngine::CancelExternalContentRequest | ( | MHIngredient * | pRequester | ) |
Definition at line 1061 of file Engine.cpp.
Referenced by MHIngredient::ContentPreparation(), MHIngredient::Destruction(), and RequestExternalContent().
bool MHEngine::LoadStorePersistent | ( | bool | fIsLoad, |
const MHOctetString & | fileName, | ||
const MHSequence< MHObjectRef * > & | variables | ||
) |
Definition at line 1143 of file Engine.cpp.
Referenced by MHPersistent::Perform().
void MHEngine::AddLink | ( | MHLink * | pLink | ) |
Definition at line 724 of file Engine.cpp.
Referenced by MHLink::Activation().
void MHEngine::RemoveLink | ( | MHLink * | pLink | ) |
Definition at line 729 of file Engine.cpp.
Referenced by MHLink::Deactivation().
bool MHEngine::GetEngineSupport | ( | const MHOctetString & | feature | ) |
Definition at line 1225 of file Engine.cpp.
Referenced by MHGetEngineSupport::Perform().
int MHEngine::GetDefaultCharSet | ( | ) |
Definition at line 1382 of file Engine.cpp.
void MHEngine::GetDefaultBGColour | ( | MHColour & | colour | ) |
Definition at line 1393 of file Engine.cpp.
Referenced by MHText::Preparation().
void MHEngine::GetDefaultTextColour | ( | MHColour & | colour | ) |
Definition at line 1407 of file Engine.cpp.
Referenced by MHText::Preparation().
void MHEngine::GetDefaultButtonRefColour | ( | MHColour & | colour | ) |
Definition at line 1421 of file Engine.cpp.
void MHEngine::GetDefaultHighlightRefColour | ( | MHColour & | colour | ) |
Definition at line 1435 of file Engine.cpp.
Referenced by MHInteractible::Initialise().
void MHEngine::GetDefaultSliderRefColour | ( | MHColour & | colour | ) |
Definition at line 1449 of file Engine.cpp.
Referenced by MHSlider::Initialise().
int MHEngine::GetDefaultTextCHook | ( | ) |
Definition at line 1463 of file Engine.cpp.
int MHEngine::GetDefaultStreamCHook | ( | ) |
Definition at line 1474 of file Engine.cpp.
int MHEngine::GetDefaultBitmapCHook | ( | ) |
Definition at line 1485 of file Engine.cpp.
Referenced by MHBitmap::CreateContent().
void MHEngine::GetDefaultFontAttrs | ( | MHOctetString & | str | ) |
Definition at line 1496 of file Engine.cpp.
Referenced by MHText::Preparation().
void MHEngine::SetInputRegister | ( | int | nReg | ) |
Definition at line 528 of file Engine.cpp.
Referenced by MHScene::SetInputRegister(), and TransitionToScene().
|
inline |
Definition at line 153 of file Engine.h.
Referenced by MHGroup::Initialise(), and MHObjectRef::Initialise().
|
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(), MHText::Display(), MHVideo::Display(), MHRectangle::Display(), MHSlider::Display(), MHStream::GetCounterMaxPosition(), MHStream::GetCounterPosition(), MHDynamicLineArt::Initialise(), MHText::Initialise(), MHBitmap::Initialise(), MHText::Preparation(), MHStream::SetCounterPosition(), MHStream::SetSpeed(), MHStream::StopPlaying(), MHAudio::StopPlaying(), and MHVideo::StopPlaying().
QString MHEngine::GetPathName | ( | const MHOctetString & | str | ) |
Definition at line 534 of file Engine.cpp.
Referenced by MHResidentProgram::CallProgram(), MHObjectRef::Equal(), MHContentRef::Equal(), FindObject(), Launch(), RequestExternalContent(), and TransitionToScene().
|
inline |
Definition at line 161 of file Engine.h.
Referenced by MHInteractible::InteractSetInteractionStatus().
|
inline |
Definition at line 162 of file Engine.h.
Referenced by MHInteractible::Interaction(), MHInteractible::InteractSetInteractionStatus(), and MHSlider::KeyEvent().
|
inline |
Definition at line 164 of file Engine.h.
Referenced by MHResidentProgram::CallProgram().
|
inline |
Definition at line 165 of file Engine.h.
Referenced by MHResidentProgram::CallProgram().
|
protected |
Definition at line 717 of file Engine.cpp.
Referenced by EventTriggered(), and RunAll().
|
protected |
Definition at line 195 of file Engine.cpp.
Referenced by Launch(), and TransitionToScene().
|
protected |
Definition at line 881 of file Engine.cpp.
Referenced by DrawDisplay().
|
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().
|
protected |
Definition at line 1082 of file Engine.cpp.
Referenced by RunAll().
|
static |
Definition at line 158 of file Engine.h.
Referenced by MHResidentProgram::CallProgram(), and GetEngineSupport().
|
protected |
Definition at line 172 of file Engine.h.
Referenced by Redraw(), RunAll(), and TransitionToScene().
|
protected |
Definition at line 175 of file Engine.h.
Referenced by CurrentApp(), Launch(), Quit(), RunAll(), and ~MHEngine().
|
protected |
Definition at line 189 of file Engine.h.
Referenced by AddActions(), Launch(), RunActions(), RunAll(), and TransitionToScene().
|
protected |
Definition at line 193 of file Engine.h.
Referenced by EventTriggered(), Launch(), Quit(), RunAll(), TransitionToScene(), and ~MHEngine().
|
protected |
Definition at line 196 of file Engine.h.
Referenced by AddLink(), CheckLinks(), RemoveLink(), and RunAll().
|
protected |
Definition at line 200 of file Engine.h.
Referenced by CancelExternalContentRequest(), CheckContentRequests(), RequestExternalContent(), RunAll(), and ~MHEngine().
|
protected |
Definition at line 203 of file Engine.h.
Referenced by LoadStorePersistent(), and MHEngine().
Definition at line 205 of file Engine.h.
Referenced by InTransition(), Launch(), Quit(), and TransitionToScene().
|
protected |
Definition at line 209 of file Engine.h.
Referenced by GetGroupId().
|
protected |
Definition at line 211 of file Engine.h.
Referenced by CheckContentRequests(), DrawRegion(), GetContext(), GetEngineSupport(), Launch(), RequestExternalContent(), RunAll(), SetInputRegister(), and TransitionToScene().
Definition at line 212 of file Engine.h.
Referenced by DrawDisplay(), EngineEvent(), Launch(), Quit(), RunAll(), and SetBooting().
|
protected |
Definition at line 214 of file Engine.h.
Referenced by GenerateUserAction(), GetInteraction(), SetInteraction(), and TransitionToScene().