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
38zfclass ZFLIB_ZFAppUtil ZFAppEntry : zfextend ZFObject {
39 ZFOBJECT_DECLARE(ZFAppEntry, ZFObject)
40
41public:
43 ZFEVENT(OnLoadState)
45 ZFEVENT(OnLoadRes)
47 ZFEVENT(OnLoadEntry)
49 ZFEVENT(OnLoadStop)
50
51 // ============================================================
52public:
55 , ZFMP_IN(const ZFListener &, callback)
56 )
59 , ZFMP_IN(const ZFListener &, callback)
60 )
63 , ZFMP_IN(const ZFListener &, callback)
64 )
67 , ZFMP_IN(const ZFListener &, callback)
68 )
69
70 // ============================================================
71public:
74 , ZFMP_IN(ZFTask *, task)
75 )
78 , ZFMP_IN(ZFTask *, task)
79 )
82 , ZFMP_IN(ZFTask *, task)
83 )
86 , ZFMP_IN(ZFTask *, task)
87 )
88
89 // ============================================================
90public:
99 , ZFPathInfo(ZFPathType_res(), "debug.lua")
100 , ZFPathInfo(ZFPathType_res(), "zf.lua")
101 , ZFPathInfo(ZFPathType_res(), "main.lua")
102 ))
103
104 // ============================================================
105public:
110 , ZFMP_IN(const ZFPathInfo &, pathInfo)
116 , ZFMP_IN(const ZFPathInfo &, packagePathInfo)
117 , ZFMP_IN_OPT(const zfstring &, packagePwd, zfnull)
123 , ZFMP_IN(const ZFListener &, packageGetter)
124 , ZFMP_IN_OPT(const zfstring &, moduleName, zfnull)
130 , ZFMP_IN(const ZFCoreArray<ZFPathInfo> &, packageInfoList)
131 , ZFMP_IN_OPT(const zfstring &, packagePwd, zfnull)
132 , ZFMP_IN_OPT(const zfstring &, moduleName, zfnull)
134
135 // ============================================================
136public:
141 , ZFMP_IN_OPT(const ZFListener &, finishCallback, zfnull)
143};
144
146#endif // #ifndef _ZFI_ZFAppEntry_h_
147
global header for ZFAppUtil module
#define ZFLIB_ZFAppUtil
used to export symbols
Definition ZFAppUtilDef.h:22
#define ZFCoreArrayCreate(ElementType, values,...)
util macro to create a temp array for short
Definition ZFCoreArray.h:1078
#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:1025
#define ZFMETHOD_DECLARE_3(ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2)
see ZFMethod
Definition ZFMethodDeclare.h:1206
#define ZFMETHOD_DECLARE_1(ReturnType, MethodName, ZFMP_0)
see ZFMethod
Definition ZFMethodDeclare.h:854
#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:126
#define ZFEVENT(YourEvent)
see ZFObject::observerNotify
Definition ZFObjectObserver.h:316
#define ZFPROPERTY_ASSIGN(Type, Name,...)
see ZFPROPERTY_RETAIN
Definition ZFPropertyDeclare.h:127
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 zfstring & stateEncryptKey()
the encrypt key for encrypting ZFState
Definition ZFAppEntry.h:94
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:102
virtual void onLoadState(const ZFListener &callback)
load event helper
virtual void onLoadStop(const ZFListener &callback)
load event helper
light weight array
Definition ZFCoreArray.h:344
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