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
40zfclass ZFLIB_ZFAppUtil ZFAppEntry : zfextend ZFObject {
41 ZFOBJECT_DECLARE(ZFAppEntry, ZFObject)
42
43public:
45 ZFEVENT(OnLoadState)
47 ZFEVENT(OnLoadLang)
49 ZFEVENT(OnLoadSkin)
51 ZFEVENT(OnLoadEntry)
53 ZFEVENT(OnLoadStop)
54
55public:
58 , ZFMP_IN(const ZFListener &, callback)
59 )
62 , ZFMP_IN(const ZFListener &, callback)
63 )
66 , ZFMP_IN(const ZFListener &, callback)
67 )
70 , ZFMP_IN(const ZFListener &, callback)
71 )
74 , ZFMP_IN(const ZFListener &, callback)
75 )
76
77 // ============================================================
78public:
87 , ZFPathInfo(ZFPathType_res(), "debug.lua")
88 , ZFPathInfo(ZFPathType_res(), "zf.lua")
89 , ZFPathInfo(ZFPathType_res(), "main.lua")
90 ))
91
92 // ============================================================
93public:
98 , ZFMP_IN(const ZFPathInfo &, pathInfo)
99 )
104 , ZFMP_IN(const ZFPathInfo &, packagePathInfo)
105 , ZFMP_IN_OPT(const zfstring &, packagePwd, zfnull)
111 , ZFMP_IN(const ZFListener &, packageGetter)
112 , ZFMP_IN_OPT(const zfstring &, moduleName, zfnull)
118 , ZFMP_IN(const ZFCoreArray<ZFPathInfo> &, packageInfoList)
119 , ZFMP_IN_OPT(const zfstring &, packagePwd, zfnull)
120 , ZFMP_IN_OPT(const zfstring &, moduleName, zfnull)
122
123public:
128
129 // ============================================================
130public:
135 , ZFMP_IN(ZFTask *, task)
137
138 // ============================================================
139public:
144 , ZFMP_IN_OPT(const ZFListener &, finishCallback, zfnull)
146};
147
149#endif // #ifndef _ZFI_ZFAppEntry_h_
150
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:1072
#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 ZFPathInfo & langPath()
empty to use default
Definition ZFAppEntry.h:125
virtual ZFPathInfo & skinPath()
empty to use default
Definition ZFAppEntry.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 void onLoadSkin(const ZFListener &callback)
load event helper
virtual zfstring & stateEncryptKey()
the encrypt key for encrypting ZFState
Definition ZFAppEntry.h:82
virtual void start(const ZFListener &finishCallback=(zft_zfnull))
see ZFAppEntry
virtual void onLoadLang(const ZFListener &callback)
load event helper
virtual void task(ZFTask *task)
util to run custom task, just before E_OnLoadEntry
virtual ZFCoreArray< ZFPathInfo > & entryList()
list of contents to entry
Definition ZFAppEntry.h:90
virtual void onLoadState(const ZFListener &callback)
load event helper
virtual void onLoadStop(const ZFListener &callback)
load event helper
light weight array
Definition ZFCoreArray.h:342
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