MHEngine Class Reference

#include <Engine.h>

Inheritance diagram for MHEngine:

MHEG

List of all members.


Detailed Description

Definition at line 68 of file Engine.h.


Public Member Functions

 MHEngine (MHContext *context)
virtual ~MHEngine ()
virtual void SetBooting ()
virtual void DrawDisplay (QRegion toDraw)
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 &objr, 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 (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 ()
virtual int RunAll (void)
void RunActions ()
virtual void GenerateUserAction (int nCode)
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)

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 (QRegion toDraw, int nStackPos)
MHApplicationCurrentApp ()
MHSceneCurrentScene ()
void CheckContentRequests ()

Protected Attributes

QRegion m_redrawRegion
QPtrStack< MHApplicationm_ApplicationStack
QPtrStack< MHElemActionm_ActionStack
QPtrList< MHAsynchEventm_EventQueue
QPtrList< MHLinkm_LinkTable
QPtrList< MHExternContentm_ExternContentTable
MHOwnPtrSequence< MHPSEntrym_PersistentStore
bool m_fInTransition
MHOctetString m_CurrentGroupId
MHContextm_Context
bool m_fBooting
MHInteractiblem_Interacting

Constructor & Destructor Documentation

MHEngine::MHEngine ( MHContext context  ) 

Definition at line 46 of file Engine.cpp.

MHEngine::~MHEngine (  )  [virtual]

Definition at line 57 of file Engine.cpp.


Member Function Documentation

virtual void MHEngine::SetBooting (  )  [inline, virtual]

Implements MHEG.

Definition at line 73 of file Engine.h.

void MHEngine::DrawDisplay ( QRegion  toDraw  )  [virtual]

Implements MHEG.

Definition at line 584 of file Engine.cpp.

void MHEngine::BootApplication ( const char *  fileName  ) 

void MHEngine::TransitionToScene ( const MHObjectRef target  ) 

Definition at line 261 of file Engine.cpp.

Referenced by MHTransitionTo::Perform().

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

Definition at line 180 of file Engine.cpp.

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

void MHEngine::Spawn ( const MHObjectRef target  )  [inline]

Definition at line 80 of file Engine.h.

Referenced by MHSpawn::Perform().

void MHEngine::Quit (  ) 

Definition at line 236 of file Engine.cpp.

Referenced by MHQuit::Perform().

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

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

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

Definition at line 401 of file Engine.cpp.

void MHEngine::AddActions ( const MHActionSequence actions  ) 

void MHEngine::AddToDisplayStack ( MHVisible pVis  ) 

Definition at line 489 of file Engine.cpp.

Referenced by MHVisible::Preparation().

void MHEngine::RemoveFromDisplayStack ( MHVisible pVis  ) 

Definition at line 497 of file Engine.cpp.

Referenced by MHVisible::Destruction().

void MHEngine::Redraw ( QRegion  region  ) 

void MHEngine::BringToFront ( const MHRoot pVis  ) 

Definition at line 506 of file Engine.cpp.

Referenced by MHVisible::BringToFront().

void MHEngine::SendToBack ( const MHRoot pVis  ) 

Definition at line 516 of file Engine.cpp.

Referenced by MHVisible::SendToBack().

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

Definition at line 526 of file Engine.cpp.

Referenced by MHVisible::PutBefore().

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

Definition at line 542 of file Engine.cpp.

Referenced by MHVisible::PutBehind().

void MHEngine::LockScreen (  )  [inline]

Definition at line 105 of file Engine.h.

Referenced by MHLockScreen::Perform().

void MHEngine::UnlockScreen (  ) 

Definition at line 599 of file Engine.cpp.

Referenced by MHUnlockScreen::Perform().

int MHEngine::RunAll ( void   )  [virtual]

Implements MHEG.

Definition at line 65 of file Engine.cpp.

void MHEngine::RunActions (  ) 

void MHEngine::GenerateUserAction ( int  nCode  )  [virtual]

Implements MHEG.

Definition at line 606 of file Engine.cpp.

void MHEngine::RequestExternalContent ( MHIngredient pRequester  ) 

Definition at line 636 of file Engine.cpp.

Referenced by MHIngredient::ContentPreparation().

void MHEngine::CancelExternalContentRequest ( MHIngredient pRequester  ) 

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

Definition at line 688 of file Engine.cpp.

Referenced by MHPersistent::Perform().

void MHEngine::AddLink ( MHLink pLink  ) 

Definition at line 471 of file Engine.cpp.

Referenced by MHLink::Activation().

void MHEngine::RemoveLink ( MHLink pLink  ) 

Definition at line 476 of file Engine.cpp.

Referenced by MHLink::Deactivation().

bool MHEngine::InTransition (  )  [inline]

Definition at line 128 of file Engine.h.

bool MHEngine::GetEngineSupport ( const MHOctetString feature  ) 

Definition at line 728 of file Engine.cpp.

Referenced by MHGetEngineSupport::Perform().

int MHEngine::GetDefaultCharSet (  ) 

Definition at line 808 of file Engine.cpp.

void MHEngine::GetDefaultBGColour ( MHColour colour  ) 

Definition at line 815 of file Engine.cpp.

Referenced by MHText::Preparation().

void MHEngine::GetDefaultTextColour ( MHColour colour  ) 

Definition at line 822 of file Engine.cpp.

Referenced by MHText::Preparation().

void MHEngine::GetDefaultButtonRefColour ( MHColour colour  ) 

Definition at line 829 of file Engine.cpp.

void MHEngine::GetDefaultHighlightRefColour ( MHColour colour  ) 

Definition at line 836 of file Engine.cpp.

Referenced by MHInteractible::Initialise().

void MHEngine::GetDefaultSliderRefColour ( MHColour colour  ) 

Definition at line 843 of file Engine.cpp.

Referenced by MHSlider::Initialise().

int MHEngine::GetDefaultTextCHook (  ) 

Definition at line 850 of file Engine.cpp.

int MHEngine::GetDefaultStreamCHook (  ) 

Definition at line 857 of file Engine.cpp.

int MHEngine::GetDefaultBitmapCHook (  ) 

Definition at line 864 of file Engine.cpp.

Referenced by MHBitmap::ContentArrived().

void MHEngine::GetDefaultFontAttrs ( MHOctetString str  ) 

Definition at line 871 of file Engine.cpp.

Referenced by MHText::Preparation().

void MHEngine::SetInputRegister ( int  nReg  ) 

Definition at line 327 of file Engine.cpp.

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

MHOctetString& MHEngine::GetGroupId (  )  [inline]

Definition at line 146 of file Engine.h.

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

MHContext* MHEngine::GetContext ( void   )  [inline]

QString MHEngine::GetPathName ( const MHOctetString str  ) 

MHInteractible* MHEngine::GetInteraction ( void   )  [inline]

Definition at line 154 of file Engine.h.

Referenced by MHInteractible::InteractSetInteractionStatus().

void MHEngine::SetInteraction ( MHInteractible p  )  [inline]

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

Definition at line 464 of file Engine.cpp.

Referenced by EventTriggered(), and RunAll().

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

Definition at line 143 of file Engine.cpp.

Referenced by Launch(), and TransitionToScene().

void MHEngine::DrawRegion ( QRegion  toDraw,
int  nStackPos 
) [protected]

Definition at line 558 of file Engine.cpp.

Referenced by DrawDisplay().

MHApplication* MHEngine::CurrentApp (  )  [inline, protected]

MHScene* MHEngine::CurrentScene (  )  [inline, protected]

Definition at line 167 of file Engine.h.

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

void MHEngine::CheckContentRequests (  )  [protected]

Definition at line 674 of file Engine.cpp.

Referenced by RunAll().


Member Data Documentation

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

Definition at line 151 of file Engine.h.

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

QRegion MHEngine::m_redrawRegion [protected]

Definition at line 162 of file Engine.h.

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

Definition at line 165 of file Engine.h.

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

QPtrStack<MHElemAction> MHEngine::m_ActionStack [protected]

Definition at line 172 of file Engine.h.

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

QPtrList<MHAsynchEvent> MHEngine::m_EventQueue [protected]

Definition at line 176 of file Engine.h.

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

QPtrList<MHLink> MHEngine::m_LinkTable [protected]

Definition at line 179 of file Engine.h.

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

Definition at line 186 of file Engine.h.

Referenced by LoadStorePersistent().

Definition at line 188 of file Engine.h.

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

Definition at line 192 of file Engine.h.

Referenced by GetGroupId().

Definition at line 195 of file Engine.h.

Referenced by DrawDisplay(), MHEngine(), Quit(), RunAll(), and SetBooting().


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

Generated on Sat Dec 18 05:16:05 2010 for MythTV by  doxygen 1.5.5