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
00048
00049 class DataStore : public ArrayElement {
00050
00051
00052 private:
00053 SourceRef* sourceRef;
00054 char* displayName;
00055 long maxGUIDSize;
00056 ContentTypeInfo* rxPref;
00057 ArrayList* rx;
00058 ContentTypeInfo* txPref;
00059 ArrayList* tx;
00060 DSMem* dsMem;
00061 SyncCap* syncCap;
00062
00063 void initialize();
00064
00065
00066 public:
00067
00068 DataStore();
00069 ~DataStore();
00070
00092 DataStore(SourceRef* sourceRef,
00093 char* displayName,
00094 long maxGUIDSize,
00095 ContentTypeInfo* rxPref,
00096 ArrayList* rx,
00097 ContentTypeInfo* txPref,
00098 ArrayList* tx,
00099 DSMem* dsMem,
00100 SyncCap* syncCap);
00101
00107 SourceRef* getSourceRef();
00108
00115 void setSourceRef(SourceRef* sourceRef);
00116
00122 const char* getDisplayName();
00123
00130 void setDisplayName(const char* displayName);
00131
00137 long getMaxGUIDSize();
00138
00139 void setMaxGUIDSize(long maxGUIDSize);
00140
00146 ContentTypeInfo* getRxPref();
00147
00153 void setRxPref(ContentTypeInfo* rxPref);
00154
00160 ArrayList* getRx();
00161
00167 void setRx(ArrayList* rxCTI);
00168
00169
00175 ContentTypeInfo* getTxPref();
00176
00182 void setTxPref(ContentTypeInfo* txPref);
00183
00189 ArrayList* getTx();
00190
00196 void setTx(ArrayList* txCTI);
00197
00203 DSMem* getDSMem();
00204
00210 void setDSMem(DSMem* dsMem);
00211
00217 SyncCap* getSyncCap();
00218
00225 void setSyncCap(SyncCap* syncCap);
00226
00227 ArrayElement* clone();
00228
00229 };
00230
00232 #endif