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
00038 #ifndef INCL_SYNC_SOURCE_CONFIG
00039 #define INCL_SYNC_SOURCE_CONFIG
00040
00044 #include "spds/AbstractSyncSourceConfig.h"
00045 #include "base/globalsdef.h"
00046
00047 BEGIN_NAMESPACE
00048
00054 class SyncSourceConfig : public AbstractSyncSourceConfig {
00055
00056 protected:
00057
00058 char* name ;
00059 char* uri ;
00060 char* syncModes ;
00061 char* type ;
00062 char* sync ;
00063 char* encodings ;
00064 char* version ;
00065 char* supportedTypes ;
00066 char* encryption ;
00067
00068 unsigned long last ;
00069
00070 bool fieldLevel ;
00071 ArrayList ctCaps ;
00072
00078 CTCap* createCtCap(ArrayList *props, const char *ct_Type, const char *ver_CT, bool fLevel);
00079
00080 public:
00081
00085 SyncSourceConfig();
00086
00090 ~SyncSourceConfig();
00091
00095 const char* getName() const;
00096
00102 void setName(const char* n);
00103
00107 const char* getURI() const;
00108
00114 void setURI(const char* u);
00115
00129 const char* getSyncModes() const;
00130
00137 void setSyncModes(const char* s);
00138
00142 const char* getType() const;
00143
00149 void setType(const char* t);
00150
00154 const char* getSync() const;
00155
00159 void setSync(const char* s);
00160
00167 const char* getEncoding() const;
00168 void setEncoding(const char* s);
00169
00170
00174 const char* getVersion() const;
00175
00181 void setVersion(const char* n);
00182
00183
00191 const char* getSupportedTypes() const;
00192
00198 void setSupportedTypes(const char* s);
00199
00205 void setLast(unsigned long timestamp);
00206
00210 unsigned long getLast() const;
00211
00217 const char* getEncryption() const;
00218
00224 void setEncryption(const char* n);
00225
00232
00233
00240
00241
00247 const ArrayList& getCtCaps() const {return ctCaps;};
00248 ArrayList& getCtCaps() {return ctCaps;};
00249
00266 void addCtCap(ArrayList* props, const char* ct_Type = 0 , const char* ver_CT = 0, int fLevel = FLEVEL_UNDEFINED);
00267
00273 void assign(const SyncSourceConfig& sc);
00274
00280 bool getFieldLevel(){ return false;}
00281
00285 SyncSourceConfig& operator = (const SyncSourceConfig& sc) {
00286 assign(sc);
00287 return *this;
00288 }
00289 };
00290
00291
00292 END_NAMESPACE
00293
00296 #endif