ZFFramework
Loading...
Searching...
No Matches
ZFAppEntry.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFAppEntry_h_
7#define _ZFI_ZFAppEntry_h_
8
9#include "ZFAppUtilDef.h"
11
41zfclass ZFLIB_ZFAppUtil ZFAppEntry : zfextend ZFObject {
42 ZFOBJECT_DECLARE(ZFAppEntry, ZFObject)
43
44public:
46 ZFEVENT(OnLoadState)
48 ZFEVENT(OnLoadPreload)
50 ZFEVENT(OnLoadRes)
52 ZFEVENT(OnLoadEntry)
54 ZFEVENT(OnLoadStop)
55
56 // ============================================================
57public:
60 , ZFMP_IN(const ZFListener &, callback)
61 )
64 , ZFMP_IN(const ZFListener &, callback)
65 )
68 , ZFMP_IN(const ZFListener &, callback)
69 )
72 , ZFMP_IN(const ZFListener &, callback)
73 )
76 , ZFMP_IN(const ZFListener &, callback)
77 )
78
79 // ============================================================
80public:
83 , ZFMP_IN(ZFTask *, task)
84 )
87 , ZFMP_IN(ZFTask *, task)
88 )
91 , ZFMP_IN(ZFTask *, task)
92 )
95 , ZFMP_IN(ZFTask *, task)
96 )
99 , ZFMP_IN(ZFTask *, task)
101
102 // ============================================================
103public:
108 , ZFPathInfo(ZFPathType_res(), "preload.lua")
109 ))
114 , ZFPathInfo(ZFPathType_res(), "debug.lua")
115 , ZFPathInfo(ZFPathType_res(), "zf.lua")
116 , ZFPathInfo(ZFPathType_res(), "main.lua")
117 ))
118
119 // ============================================================
120public:
125 , ZFMP_IN(const zfstring &, encryptKey)
127
132 , ZFMP_IN(const ZFPathInfo &, pathInfo)
138 , ZFMP_IN(const ZFPathInfo &, packagePathInfo)
139 , ZFMP_IN_OPT(const zfstring &, packagePwd, zfnull)
145 , ZFMP_IN(const ZFListener &, packageGetter)
146 , ZFMP_IN_OPT(const zfstring &, moduleName, zfnull)
152 , ZFMP_IN(const ZFCoreArray<ZFPathInfo> &, packageInfoList)
153 , ZFMP_IN_OPT(const zfstring &, packagePwd, zfnull)
154 , ZFMP_IN_OPT(const zfstring &, moduleName, zfnull)
156
157 // ============================================================
158public:
163 , ZFMP_IN_OPT(const ZFListener &, finishCallback, zfnull)
165};
166
168#endif // #ifndef _ZFI_ZFAppEntry_h_
169
global header for ZFAppUtil module
#define ZFLIB_ZFAppUtil
used to export symbols
Definition ZFAppUtilDef.h:21
#define ZFCoreArrayCreate(ElementType, values,...)
util macro to create a temp array for short
Definition ZFCoreArray.h:1055
#define zfextend
dummy macro shows class inherit from another
Definition ZFCoreTypeDef_ClassType.h:53
#define zfnull
same as NULL, defined for future use
Definition ZFCoreTypeDef_CoreType.h:88
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
const zfstring & ZFPathType_res()
see ZFPathInfo
#define ZFMP_IN_OPT(ParamType, paramName, DefaultValue)
see ZFMP_IN
Definition ZFMethod.h:108
#define ZFMP_IN(ParamType, paramName)
macro to wrap param types for ZFMETHOD_INLINE_0 series
Definition ZFMethod.h:105
#define ZFMETHOD_DECLARE_2(ReturnType, MethodName, ZFMP_0, ZFMP_1)
see ZFMethod
Definition ZFMethodDeclare.h:1024
#define ZFMETHOD_DECLARE_3(ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2)
see ZFMethod
Definition ZFMethodDeclare.h:1205
#define ZFMETHOD_DECLARE_1(ReturnType, MethodName, ZFMP_0)
see ZFMethod
Definition ZFMethodDeclare.h:853
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
#define zfclass
same as class, shows that this class is a ZFObject type
Definition ZFObjectClassTypeFwd.h:38
#define ZFOBJECT_DECLARE(ChildClass, SuperClass,...)
necessary for every class inherit from ZFObject
Definition ZFObjectDeclare.h:122
#define ZFEVENT(YourEvent)
see ZFObject::observerNotify
Definition ZFObjectObserver.h:316
#define ZFPROPERTY_ASSIGN(Type, Name,...)
see ZFPROPERTY_RETAIN
Definition ZFPropertyDeclare.h:120
virtual void onLoadPreload(const ZFListener &callback)
load event helper
virtual void resPack(const ZFPathInfo &packagePathInfo, const zfstring &packagePwd=(zft_zfnull))
add additional res by ZFAppRes::pathInfoForPackage
virtual void onLoadEntry(const ZFListener &callback)
load event helper
virtual void res(const ZFPathInfo &pathInfo)
add additional res by ZFResExtPathAdd
virtual ZFCoreArray< ZFPathInfo > & preloadList()
list of contents to preload
Definition ZFAppEntry.h:109
virtual void start(const ZFListener &finishCallback=(zft_zfnull))
see ZFAppEntry
virtual void onLoadRes(const ZFListener &callback)
load event helper
virtual ZFCoreArray< ZFPathInfo > & entryList()
list of contents to entry
Definition ZFAppEntry.h:117
virtual void onLoadState(const ZFListener &callback)
load event helper
virtual void stateEncrypt(const zfstring &encryptKey)
util to set ZFState::stateFile to ecrypted, by ZFPathInfoForEncrypt
virtual void onLoadStop(const ZFListener &callback)
load event helper
light weight array
Definition ZFCoreArray.h:297
listener as ZFCallback, mostly used by ZFObject::observerNotify
Definition ZFObjectObserver.h:30
path related info storage for impl, actual meaning of the info depends on impl
Definition ZFPathInfo.h:34
abstract task util
Definition ZFTask.h:15