MythTV
master
|
#include <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 885 of file Engine.cpp.
void MHEngine::BootApplication | ( | const char * | fileName | ) |
void MHEngine::TransitionToScene | ( | const MHObjectRef & | target | ) |
Definition at line 418 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 573 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(), MHActionGenericObjectRefFix::Perform(), MHTestVariable::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 639 of file Engine.cpp.
void MHEngine::AddActions | ( | const MHActionSequence & | actions | ) |
Definition at line 723 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 733 of file Engine.cpp.
Referenced by MHVisible::Preparation().
void MHEngine::RemoveFromDisplayStack | ( | MHVisible * | pVis | ) |
Definition at line 745 of file Engine.cpp.
Referenced by MHVisible::Destruction().
void MHEngine::Redraw | ( | const QRegion & | region | ) |
Definition at line 898 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 759 of file Engine.cpp.
Referenced by MHVisible::BringToFront().
void MHEngine::SendToBack | ( | const MHRoot * | pVis | ) |
Definition at line 774 of file Engine.cpp.
Referenced by MHVisible::SendToBack().
Definition at line 789 of file Engine.cpp.
Referenced by MHVisible::PutBefore().
Definition at line 820 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 904 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 613 of file Engine.cpp.
Referenced by MHGroup::Activation(), MHApplication::Activation(), MHGroup::Deactivation(), Launch(), and RunAll().
|
overridevirtual |
Implements MHEG.
Definition at line 914 of file Engine.cpp.
|
overridevirtual |
Implements MHEG.
Definition at line 954 of file Engine.cpp.
Referenced by CheckContentRequests(), GenerateUserAction(), Launch(), RequestExternalContent(), and TransitionToScene().
Implements MHEG.
Definition at line 962 of file Engine.cpp.
void MHEngine::RequestExternalContent | ( | MHIngredient * | pRequester | ) |
Definition at line 968 of file Engine.cpp.
Referenced by MHIngredient::ContentPreparation().
void MHEngine::CancelExternalContentRequest | ( | MHIngredient * | pRequester | ) |
Definition at line 1027 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 1109 of file Engine.cpp.
Referenced by MHPersistent::Perform().
void MHEngine::AddLink | ( | MHLink * | pLink | ) |
Definition at line 712 of file Engine.cpp.
Referenced by MHLink::Activation().
void MHEngine::RemoveLink | ( | MHLink * | pLink | ) |
Definition at line 717 of file Engine.cpp.
Referenced by MHLink::Deactivation().
bool MHEngine::GetEngineSupport | ( | const MHOctetString & | feature | ) |
Definition at line 1191 of file Engine.cpp.
Referenced by MHGetEngineSupport::Perform().
int MHEngine::GetDefaultCharSet | ( | ) |
Definition at line 1348 of file Engine.cpp.
void MHEngine::GetDefaultBGColour | ( | MHColour & | colour | ) |
Definition at line 1359 of file Engine.cpp.
Referenced by MHText::Preparation().
void MHEngine::GetDefaultTextColour | ( | MHColour & | colour | ) |
Definition at line 1373 of file Engine.cpp.
Referenced by MHText::Preparation().
void MHEngine::GetDefaultButtonRefColour | ( | MHColour & | colour | ) |
Definition at line 1387 of file Engine.cpp.
void MHEngine::GetDefaultHighlightRefColour | ( | MHColour & | colour | ) |
Definition at line 1401 of file Engine.cpp.
Referenced by MHInteractible::Initialise().
void MHEngine::GetDefaultSliderRefColour | ( | MHColour & | colour | ) |
Definition at line 1415 of file Engine.cpp.
Referenced by MHSlider::Initialise().
int MHEngine::GetDefaultTextCHook | ( | ) |
Definition at line 1429 of file Engine.cpp.
int MHEngine::GetDefaultStreamCHook | ( | ) |
Definition at line 1440 of file Engine.cpp.
int MHEngine::GetDefaultBitmapCHook | ( | ) |
Definition at line 1451 of file Engine.cpp.
Referenced by MHBitmap::CreateContent().
void MHEngine::GetDefaultFontAttrs | ( | MHOctetString & | str | ) |
Definition at line 1462 of file Engine.cpp.
Referenced by MHText::Preparation().
void MHEngine::SetInputRegister | ( | int | nReg | ) |
Definition at line 517 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 523 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 705 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 851 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 1048 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 186 of file Engine.h.
Referenced by AddActions(), Launch(), RunActions(), RunAll(), and TransitionToScene().
|
protected |
Definition at line 190 of file Engine.h.
Referenced by EventTriggered(), Launch(), Quit(), RunAll(), TransitionToScene(), and ~MHEngine().
|
protected |
Definition at line 193 of file Engine.h.
Referenced by AddLink(), CheckLinks(), RemoveLink(), and RunAll().
|
protected |
Definition at line 197 of file Engine.h.
Referenced by CancelExternalContentRequest(), CheckContentRequests(), RequestExternalContent(), RunAll(), and ~MHEngine().
|
protected |
Definition at line 200 of file Engine.h.
Referenced by LoadStorePersistent(), and MHEngine().
Definition at line 202 of file Engine.h.
Referenced by InTransition(), Launch(), Quit(), and TransitionToScene().
|
protected |
Definition at line 206 of file Engine.h.
Referenced by GetGroupId().
|
protected |
Definition at line 208 of file Engine.h.
Referenced by CheckContentRequests(), DrawRegion(), GetContext(), GetEngineSupport(), Launch(), RequestExternalContent(), RunAll(), SetInputRegister(), and TransitionToScene().
Definition at line 209 of file Engine.h.
Referenced by DrawDisplay(), EngineEvent(), Launch(), Quit(), RunAll(), and SetBooting().
|
protected |
Definition at line 211 of file Engine.h.
Referenced by GenerateUserAction(), GetInteraction(), SetInteraction(), and TransitionToScene().