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_DATA_STORE
00038 #define INCL_DATA_STORE
00039
00041 #include "base/fscapi.h"
00042 #include "base/util/ArrayList.h"
00043 #include "syncml/core/SourceRef.h"
00044 #include "syncml/core/ContentTypeInfo.h"
00045 #include "syncml/core/DSMem.h"
00046 #include "syncml/core/SyncCap.h"
00047 #include "base/globalsdef.h"
00048
00049 BEGIN_NAMESPACE
00050
00051
00052 class DataStore : public ArrayElement {
00053
00054
00055 private:
00056 SourceRef* sourceRef;
00057 char* displayName;
00058 long maxGUIDSize;
00059 ContentTypeInfo* rxPref;
00060 ArrayList* rx;
00061 ContentTypeInfo* txPref;
00062 ArrayList* tx;
00063 ArrayList* ctCaps;
00064 DSMem* dsMem;
00065 SyncCap* syncCap;
00066
00067 void initialize();
00068
00069
00070 public:
00071
00072 DataStore();
00073 ~DataStore();
00074
00096 DataStore(SourceRef* sourceRef,
00097 const char* displayName,
00098 long maxGUIDSize,
00099 ContentTypeInfo* rxPref,
00100 ArrayList* rx,
00101 ContentTypeInfo* txPref,
00102 ArrayList* tx,
00103 ArrayList* ct_Caps,
00104 DSMem* dsMem,
00105 SyncCap* syncCap);
00106
00112 SourceRef* getSourceRef();
00113
00120 void setSourceRef(SourceRef* sourceRef);
00121
00127 const char* getDisplayName();
00128
00135 void setDisplayName(const char* displayName);
00136
00142 long getMaxGUIDSize();
00143
00144 void setMaxGUIDSize(long maxGUIDSize);
00145
00151 ContentTypeInfo* getRxPref();
00152
00158 void setRxPref(ContentTypeInfo* rxPref);
00159
00165 ArrayList* getRx();
00166
00172 void setRx(ArrayList* rxCTI);
00173
00174
00180 ContentTypeInfo* getTxPref();
00181
00187 void setTxPref(ContentTypeInfo* txPref);
00188
00194 ArrayList* getTx();
00195
00201 void setTx(ArrayList* txCTI);
00202
00208 DSMem* getDSMem();
00209
00215 void setDSMem(DSMem* dsMem);
00216
00222 SyncCap* getSyncCap();
00223
00230 void setSyncCap(SyncCap* syncCap);
00231
00237 ArrayList* getCtCaps();
00238
00244 void setCtCaps(ArrayList* Ct_Caps);
00245
00246
00247 ArrayElement* clone();
00248
00249 };
00250
00251
00252 END_NAMESPACE
00253
00255 #endif