FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kPropertyList.h
1 #ifndef K_FIRESYNC_PROPERTY_LIST_H
2 #define K_FIRESYNC_PROPERTY_LIST_H
3 
4 #include <kFireSync/kFsDef.h>
5 
6 //typedef kObject kPropertyList; --forward-declared in kFsDef.x.h
7 
8 kDeclareClassEx(kFs, kPropertyList, kObject)
9 kDeclareValueEx(kFs, kPropertyListProperty, kValue)
10 
11 kFsFx(kStatus) kPropertyList_Construct(kPropertyList* id, kAlloc alloc);
12 
13 kFsFx(kStatus) kPropertyList_Read(kPropertyList id, kXml xml);
14 kFsFx(kStatus) kPropertyList_Write(kPropertyList id, kXml xml);
15 
16 kFsFx(kStatus) kPropertyList_SetText(kPropertyList id, const kChar* name, const kChar* value);
17 kFsFx(kStatus) kPropertyList_SetInt(kPropertyList id, const kChar* name, k64s value);
18 kFsFx(kStatus) kPropertyList_SetFloat(kPropertyList id, const kChar* name, k64f value);
19 kFsFx(kStatus) kPropertyList_SetVersion(kPropertyList id, const kChar* name, kVersion version);
20 
21 kFsFx(kStatus) kPropertyList_Delete(kPropertyList id, const kChar* name);
22 kFsFx(kStatus) kPropertyList_Clear(kPropertyList id);
23 
24 kFsFx(kSize) kPropertyList_Count(kPropertyList id);
25 kFsFx(const kChar*) kPropertyList_NameAt(kPropertyList id, kSize index);
26 
27 kFsFx(kBool) kPropertyList_Exists(kPropertyList id, const kChar* name);
28 kFsFx(const kChar*) kPropertyList_Text(kPropertyList id, const kChar* name);
29 kFsFx(k64s) kPropertyList_Int(kPropertyList id, const kChar* name);
30 kFsFx(k64f) kPropertyList_Float(kPropertyList id, const kChar* name);
31 kFsFx(kVersion) kPropertyList_Version(kPropertyList id, const kChar* name);
32 
33 #endif
#define kDeclareClassEx(PREFIX, SYMBOL, BASE)
Essential API declarations for the kFireSync library.