00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef INCL_DATA_STORE
00021 #define INCL_DATA_STORE
00022
00024 #include "base/fscapi.h"
00025 #include "base/util/ArrayList.h"
00026 #include "syncml/core/SourceRef.h"
00027 #include "syncml/core/ContentTypeInfo.h"
00028 #include "syncml/core/DSMem.h"
00029 #include "syncml/core/SyncCap.h"
00030
00031
00032 class DataStore : public ArrayElement {
00033
00034
00035 private:
00036 SourceRef* sourceRef;
00037 char* displayName;
00038 long maxGUIDSize;
00039 ContentTypeInfo* rxPref;
00040 ArrayList* rx;
00041 ContentTypeInfo* txPref;
00042 ArrayList* tx;
00043 DSMem* dsMem;
00044 SyncCap* syncCap;
00045
00046 void initialize();
00047
00048
00049 public:
00050
00051 DataStore();
00052 ~DataStore();
00053
00075 DataStore(SourceRef* sourceRef,
00076 char* displayName,
00077 long maxGUIDSize,
00078 ContentTypeInfo* rxPref,
00079 ArrayList* rx,
00080 ContentTypeInfo* txPref,
00081 ArrayList* tx,
00082 DSMem* dsMem,
00083 SyncCap* syncCap);
00084
00090 SourceRef* getSourceRef();
00091
00098 void setSourceRef(SourceRef* sourceRef);
00099
00105 const char* getDisplayName();
00106
00113 void setDisplayName(const char* displayName);
00114
00120 long getMaxGUIDSize();
00121
00122 void setMaxGUIDSize(long maxGUIDSize);
00123
00129 ContentTypeInfo* getRxPref();
00130
00136 void setRxPref(ContentTypeInfo* rxPref);
00137
00143 ArrayList* getRx();
00144
00150 void setRx(ArrayList* rxCTI);
00151
00152
00158 ContentTypeInfo* getTxPref();
00159
00165 void setTxPref(ContentTypeInfo* txPref);
00166
00172 ArrayList* getTx();
00173
00179 void setTx(ArrayList* txCTI);
00180
00186 DSMem* getDSMem();
00187
00193 void setDSMem(DSMem* dsMem);
00194
00200 SyncCap* getSyncCap();
00201
00208 void setSyncCap(SyncCap* syncCap);
00209
00210 ArrayElement* clone();
00211
00212 };
00213
00215 #endif