ZFFramework
 
Loading...
Searching...
No Matches
ZFGlobalEvent Namespace Reference


More...

Functions

zfidentity E_AppExit (void)
 called when ZFApp::appExit
 
zfidentity E_AppRestart (void)
 called when ZFApp::appRestart
 
zfidentity E_ZFPathForSettingOnUpdate (void)
 see ZFObject::observerNotify
 
zfidentity E_ZFPathForStorageOnUpdate (void)
 see ZFObject::observerNotify
 
zfidentity E_ZFPathForStorageSharedOnUpdate (void)
 see ZFObject::observerNotify
 
zfidentity E_ZFPathForCacheOnUpdate (void)
 see ZFObject::observerNotify
 
zfidentity E_ZFPathForCacheBeforeClear (void)
 see ZFObject::observerNotify
 
zfidentity E_ZFPathForCacheAfterClear (void)
 see ZFObject::observerNotify
 
zfidentity E_AppOnCreate (void)
 see ZFObject::observerNotify
 
zfidentity E_AppOnDestroy (void)
 see ZFObject::observerNotify
 
zfidentity E_AppOnMemoryLow (void)
 see ZFObject::observerNotify
 
zfidentity E_ZFImportBegin (void)
 see ZFObject::observerNotify
 
zfidentity E_ZFImportEnd (void)
 see ZFObject::observerNotify
 
zfidentity E_LogLevelOnUpdate (void)
 see ZFObject::observerNotify
 
zfidentity E_ClassDataUpdate (void)
 see ZFObject::observerNotify
 
zfidentity E_ZFStyleOnUpdate (void)
 see ZFObject::observerNotify
 
zfidentity E_ZFStyleOnInvalid (void)
 see ZFObject::observerNotify
 
zfidentity E_LuaStateOnAttach (void)
 see ZFObject::observerNotify
 
zfidentity E_LuaStateOnDetach (void)
 see ZFObject::observerNotify
 
zfidentity E_SysWindowMainWindowOnAttach (void)
 see ZFObject::observerNotify
 
zfidentity E_ViewBlinkOn (void)
 see ZFObject::observerNotify
 
zfidentity E_ViewBlinkOff (void)
 see ZFObject::observerNotify
 
zfidentity E_TestCaseRunAllOnStart (void)
 see ZFObject::observerNotify
 
zfidentity E_TestCaseRunAllOnStop (void)
 see ZFObject::observerNotify
 

Detailed Description


Function Documentation

◆ E_AppExit()

zfidentity ZFGlobalEvent::E_AppExit ( void )
extern

called when ZFApp::appExit

param0 is a v_zfint contains appExitCode
param1 is a v_zfbool, set to true to override and ignore default impl

◆ E_AppRestart()

zfidentity ZFGlobalEvent::E_AppRestart ( void )
extern

called when ZFApp::appRestart

param0 is a v_zfbool, set to true to override and ignore default impl

◆ E_ZFPathForSettingOnUpdate()

zfidentity ZFGlobalEvent::E_ZFPathForSettingOnUpdate ( void )
extern

see ZFObject::observerNotify

notified after change, param0 is the old path value (as v_zfstring)
notified to ZFGlobalObserver only

◆ E_ZFPathForStorageOnUpdate()

zfidentity ZFGlobalEvent::E_ZFPathForStorageOnUpdate ( void )
extern

see ZFObject::observerNotify

notified after change, param0 is the old path value (as v_zfstring)
notified to ZFGlobalObserver only

◆ E_ZFPathForStorageSharedOnUpdate()

zfidentity ZFGlobalEvent::E_ZFPathForStorageSharedOnUpdate ( void )
extern

see ZFObject::observerNotify

notified after change, param0 is the old path value (as v_zfstring)
notified to ZFGlobalObserver only

◆ E_ZFPathForCacheOnUpdate()

zfidentity ZFGlobalEvent::E_ZFPathForCacheOnUpdate ( void )
extern

see ZFObject::observerNotify

notified after change, param0 is the old path value (as v_zfstring)
notified to ZFGlobalObserver only

◆ E_ZFPathForCacheBeforeClear()

zfidentity ZFGlobalEvent::E_ZFPathForCacheBeforeClear ( void )
extern

◆ E_ZFPathForCacheAfterClear()

zfidentity ZFGlobalEvent::E_ZFPathForCacheAfterClear ( void )
extern

◆ E_AppOnCreate()

zfidentity ZFGlobalEvent::E_AppOnCreate ( void )
extern

see ZFObject::observerNotify

notified when ZFFrameworkInit finished, params and result has no use and is always null

◆ E_AppOnDestroy()

zfidentity ZFGlobalEvent::E_AppOnDestroy ( void )
extern

see ZFObject::observerNotify

notified before ZFFrameworkCleanup, params and result has no use and is always null

◆ E_AppOnMemoryLow()

zfidentity ZFGlobalEvent::E_AppOnMemoryLow ( void )
extern

see ZFObject::observerNotify

notified when received memory warning (depend on implementation), params and result has no use and is always null

◆ E_ZFImportBegin()

zfidentity ZFGlobalEvent::E_ZFImportBegin ( void )
extern

see ZFObject::observerNotify

notified during zfimport
param0 is a v_ZFInput holds the item being load

◆ E_ZFImportEnd()

zfidentity ZFGlobalEvent::E_ZFImportEnd ( void )
extern

see ZFObject::observerNotify

notified during zfimport
param0 is a v_ZFInput holds the item being load, param1 is a ZFObject holds the load result

◆ E_LogLevelOnUpdate()

zfidentity ZFGlobalEvent::E_LogLevelOnUpdate ( void )
extern

see ZFObject::observerNotify

notified when ZFLogLevelDefault changed

◆ E_ClassDataUpdate()

zfidentity ZFGlobalEvent::E_ClassDataUpdate ( void )
extern

see ZFObject::observerNotify

notified when any class data changed, notified to ZFClassDataUpdateObserver, see ZFObject::observerNotify

param0 is a v_ZFClassDataUpdateData
called when:

  • class registered or unregistered
  • class's property registered or unregistered (including user registered property)
  • class's method or function method registered or unregistered (including user registered method)


for each event call, ZFClassDataUpdateData::changedClass, ZFClassDataUpdateData::changedProperty and ZFClassDataUpdateData::changedMethod are ensured only one not null


note this method would be notified only if ZFFrameworkStateCheck with ZFLevelZFFrameworkLow returned ZFFrameworkStateAvailable

Warning
app code can add observer to this event, but must not manually notify this event
also, take care of performance

◆ E_ZFStyleOnUpdate()

zfidentity ZFGlobalEvent::E_ZFStyleOnUpdate ( void )
extern

◆ E_ZFStyleOnInvalid()

zfidentity ZFGlobalEvent::E_ZFStyleOnInvalid ( void )
extern

see ZFObject::observerNotify

notified when setting an invalid style value
sender is the styleable object that changing the styleKey, param0 is a v_zfstring if chaning property's name or holds empty string if changing the styleable object itself, param1 is a v_zfstring that holds the new styleKey

◆ E_LuaStateOnAttach()

zfidentity ZFGlobalEvent::E_LuaStateOnAttach ( void )
extern

see ZFObject::observerNotify

notified when ZFLuaStateAttach, called in the same thread of ZFLuaStateAttach called, param0 is a v_zfptr to lua state

◆ E_LuaStateOnDetach()

zfidentity ZFGlobalEvent::E_LuaStateOnDetach ( void )
extern

see ZFObject::observerNotify

notified when ZFLuaStateDetach, called in the same thread of ZFLuaStateDetach called, param0 is a v_zfptr to lua state

◆ E_SysWindowMainWindowOnAttach()

zfidentity ZFGlobalEvent::E_SysWindowMainWindowOnAttach ( void )
extern

◆ E_ViewBlinkOn()

zfidentity ZFGlobalEvent::E_ViewBlinkOn ( void )
extern

see ZFObject::observerNotify

sender is the view that was blinked
notified when a view start to blink

◆ E_ViewBlinkOff()

zfidentity ZFGlobalEvent::E_ViewBlinkOff ( void )
extern

see ZFObject::observerNotify

sender is the view that was blinked
notified when a view stop blink

◆ E_TestCaseRunAllOnStart()

zfidentity ZFGlobalEvent::E_TestCaseRunAllOnStart ( void )
extern

see ZFObject::observerNotify

notified when about to start test case, see ZFTestCaseRunAllStart

◆ E_TestCaseRunAllOnStop()

zfidentity ZFGlobalEvent::E_TestCaseRunAllOnStop ( void )
extern

see ZFObject::observerNotify

notified when about to stop test case, see ZFTestCaseRunAllStop