ZFFramework
 
Loading...
Searching...
No Matches
ZFProtocolZFApp.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFProtocolZFApp_h_
7#define _ZFI_ZFProtocolZFApp_h_
8
9#include "ZFCore/ZFProtocol.h"
10#include "ZFCore/ZFApp.h"
12
13// ============================================================
19public:
23 virtual void appExit(ZF_IN zfint appExitCode);
27 virtual void appRestart(void);
28public:
36
38#endif // #ifndef _ZFI_ZFProtocolZFApp_h_
39
global app control util
#define ZFLIB_ZFCore
used to export symbols
Definition ZFCoreEnvDef.h:30
#define zffinal
dummy macro shows that a method or class is designed must not to be overrided
Definition ZFCoreTypeDef_ClassType.h:63
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:180
_ZFT_t_zfint zfint
same as int, see zfindex
Definition ZFCoreTypeDef_CoreType.h:165
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
ZFObserver & ZFGlobalObserver(void)
all event notified by ZFObject::observerNotify would also be notified to the observers added by this ...
protocol definitions for ZFFramework
#define ZFPROTOCOL_INTERFACE_OPTIONAL
macro to show that the protocol is optional
Definition ZFProtocol.h:420
#define ZFPROTOCOL_INTERFACE_END(ModuleName)
for more information, please refer to ZFPROTOCOL_INTERFACE_BEGIN
Definition ZFProtocol.h:414
#define ZFPROTOCOL_INTERFACE_BEGIN(ZFLIB_, ModuleName)
declare a protocol interface for ZFFramework
Definition ZFProtocol.h:408
void observerNotify(zfidentity eventId, ZFObject *param0=zft_zfnull, ZFObject *param1=zft_zfnull) const
see ZFObject::observerNotify
Definition ZFObjectObserver.h:185
virtual void appRestart(void)
see ZFApp::appRestart
void notifyAppCrash(const zfstring &hint)
implementation must notify when app crashed
Definition ZFProtocolZFApp.h:32
virtual void appExit(zfint appExitCode)
see ZFApp::appExit
util class to alloc and hold ZFObject type
Definition ZFObjectAutoPtr.h:157
Definition ZFApp.h:36
zfidentity E_AppCrash(void)
called when app crashed