ZFFramework
 
Loading...
Searching...
No Matches
ZFAppSkin.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFAppSkin_h_
7#define _ZFI_ZFAppSkin_h_
8
9#include "ZFAppUtilDef.h"
11
15zfclass ZFLIB_ZFAppUtil ZFAppSkinData : zfextend ZFObject {
16 ZFOBJECT_DECLARE(ZFAppSkinData, ZFObject)
17public:
22
23public:
25 zfobj<ZFArray> resList; // v_ZFPathInfo
26
27protected:
29 virtual inline void objectInfoImpl(ZF_IN_OUT zfstring &ret) {
30 ret += this->skinId();
31 }
32};
33
81 , ZFMP_IN_OPT(const ZFPathInfo &, base, zfnull)
82 , ZFMP_IN_OPT(zfbool, enableCache, zftrue)
83 )
91 , ZFMP_IN_OPT(const zfstring &, skinId, zfnull)
92 , ZFMP_IN_OPT(const ZFListener &, finishCallback, zfnull)
93 , ZFMP_IN_OPT(const ZFPathInfo &, base, zfnull)
94 , ZFMP_IN_OPT(zfbool, enableCache, zftrue)
95 )
98
99// ============================================================
104 , ZFMP_IN_OPT(const zfstring &, skinId, zfnull)
105 , ZFMP_IN_OPT(const ZFPathInfo &, base, zfnull)
106 , ZFMP_IN_OPT(zfbool, enableCache, zftrue)
108
110#endif // #ifndef _ZFI_ZFAppSkin_h_
111
zfautoT< ZFArray > ZFAppSkinList(const ZFPathInfo &base=(zft_zfnull), zfbool enableCache=(_ZFT_t_zftrue))
get a list of supported skin
zfstring ZFAppSkin()
see ZFAppSkinList
zfautoT< ZFTask > ZFAppSkinLoadTask(const zfstring &skinId=(zft_zfnull), const ZFPathInfo &base=(zft_zfnull), zfbool enableCache=(_ZFT_t_zftrue))
util to create a task for ZFAppSkinLoad
zfautoT< ZFTaskId > ZFAppSkinLoad(const zfstring &skinId=(zft_zfnull), const ZFListener &finishCallback=(zft_zfnull), const ZFPathInfo &base=(zft_zfnull), zfbool enableCache=(_ZFT_t_zftrue))
see ZFAppSkinList
global header for ZFAppUtil module
#define ZFLIB_ZFAppUtil
used to export symbols
Definition ZFAppUtilDef.h:22
#define zfextend
dummy macro shows class inherit from another
Definition ZFCoreTypeDef_ClassType.h:53
#define zfoverride
dummy macro shows that method override parent's method
Definition ZFCoreTypeDef_ClassType.h:58
#define ZF_IN_OUT
dummy macro that shows the param used as required input and output
Definition ZFCoreTypeDef_ClassType.h:200
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
#define zftrue
bool true type
Definition ZFCoreTypeDef_CoreType.h:107
#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
#define ZFMP_IN_OPT(ParamType, paramName, DefaultValue)
see ZFMP_IN
Definition ZFMethod.h:108
#define ZFMETHOD_DECLARE_0(ReturnType, MethodName)
see ZFMethod
Definition ZFMethodDeclare.h:693
#define ZFMETHOD_FUNC_DECLARE_2(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:763
#define ZFMETHOD_FUNC_DECLARE_3(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:910
#define ZFMETHOD_FUNC_DECLARE_4(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:1065
#define ZFMETHOD_FUNC_DECLARE_0(ZFLIB_, ReturnType, MethodName)
declare function type of ZFMethod
Definition ZFMethodFuncDeclare.h:493
#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 ZFPROPERTY_ASSIGN(Type, Name,...)
see ZFPROPERTY_RETAIN
Definition ZFPropertyDeclare.h:127
virtual zfstring skinName()
skin name for display, same as skinId if not available
virtual zfstring & skinId()
skinId according to child dir name of skin dir
Definition ZFAppSkin.h:19
zfobj< ZFArray > resList
list of items to load
Definition ZFAppSkin.h:25
virtual void objectInfoImpl(zfstring &ret)
see objectInfo
Definition ZFAppSkin.h:29
container of ZFObject, see ZFContainer
Definition ZFArray.h:17
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
abstract task id
Definition ZFTaskId.h:16
type restrict version of zfauto
Definition zfautoFwd.h:108
util class to alloc and hold ZFObject type
Definition ZFObjectAutoPtr.h:79