00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #ifndef INCL_FOLDERDATA
00038 #define INCL_FOLDERDATA
00039
00041 #include "base/util/ArrayElement.h"
00042 #include "base/util/WString.h"
00043 #include "base/util/StringBuffer.h"
00044 #include "base/util/ArrayList.h"
00045 #include "base/globalsdef.h"
00046
00047
00048
00049 #include "base/fscapi.h"
00050
00051 BEGIN_NAMESPACE
00052
00053 class FolderData : public ArrayElement {
00054
00055
00056 protected:
00057 StringBuffer parent;
00058 StringBuffer name;
00059 StringBuffer created;
00060 StringBuffer modified;
00061 StringBuffer accessed;
00062 StringBuffer attributes;
00063 bool hidden;
00064 bool system;
00065 bool archived;
00066 bool deleted;
00067 bool writable;
00068 bool readable;
00069 bool executable;
00070 StringBuffer role;
00071 ArrayList extended;
00072
00074 WString fid;
00075
00076
00077 bool isHiddenPresent;
00078 bool isSystemPresent;
00079 bool isArchivedPresent;
00080 bool isDeletedPresent;
00081 bool isWritablePresent;
00082 bool isReadablePresent;
00083 bool isExecutablePresent;
00084
00085
00086
00087
00088 int lengthForB64(int len);
00089 const char* getValueByName(const char* valName) const;
00090 void setValueByName(const char* valName, const char* setVal);
00091
00092
00093
00094
00095 public:
00096
00097 FolderData();
00098 ~FolderData();
00099
00100
00101
00102
00103
00104
00105
00106 const StringBuffer& getParent() const { return parent; }
00107 void setParent(const char* v) { parent = v; }
00108
00109 const StringBuffer& getName() const { return name; }
00110 void setName(const char* v) { name = v; }
00111
00112 const StringBuffer& getCreated() const { return created; }
00113 void setCreated(const char* v) { created = v; }
00114
00115 const StringBuffer& getModified() const { return modified; }
00116 void setModified(const char* v) { modified = v; }
00117
00118 const StringBuffer& getAccessed() const { return accessed; }
00119 void setAccessed(const char* v) { accessed = v; }
00120
00121 const StringBuffer& getAttributes() const { return attributes; }
00122 void setAttributes(const char* v) { attributes = v; }
00123
00124 bool getHidden() const { return hidden; }
00125 void setHidden(bool v) { hidden = v; }
00126
00127 bool getSystem() const { return system; }
00128 void setSystem(bool v) { system = v; }
00129
00130 bool getArchived() const { return archived; }
00131 void setArchived(bool v) { archived = v; }
00132
00133 bool getDel() const { return deleted; }
00134 void setDel(bool v) { deleted = v; }
00135
00136 bool getWritable() const { return writable; }
00137 void setWritable(bool v) { writable = v; }
00138
00139 bool getReadable() const { return readable; }
00140 void setReadable(bool v) { readable = v; }
00141
00142 bool getExecutable() const { return executable; }
00143 void setExecutable(bool v) { executable = v; }
00144
00145 const StringBuffer& getRole() const { return role; }
00146 void setRole(const char* v) { role = v; }
00147
00148 const WCHAR* getID() const;
00149 void setID(const WCHAR* val);
00150
00151
00152 void setExtList(ArrayList& list){extended = list;};
00157 ArrayList& getExtList() { return extended; };
00158
00159
00160
00161 int parse(const char *syncmlData, size_t len = StringBuffer::npos) ;
00162 char *format() ;
00163
00164 ArrayElement* clone() { return new FolderData(*this); }
00165
00166 };
00167
00168
00169 END_NAMESPACE
00170
00172 #endif