00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef INCL_SYNC_CONFIG
00019 #define INCL_SYNC_CONFIG
00020
00024 #include "base/fscapi.h"
00025 #include "spds/AccessConfig.h"
00026 #include "spds/DeviceConfig.h"
00027 #include "spds/SyncSourceConfig.h"
00028
00034 class SyncManagerConfig {
00035 protected:
00036
00037 AccessConfig accessConfig;
00038 DeviceConfig deviceConfig;
00039 SyncSourceConfig* sourceConfigs;
00040
00041 unsigned int sourceConfigsCount;
00042
00043 virtual BOOL addSyncSourceConfig(SyncSourceConfig& sc) EXTRA_SECTION_01;
00044
00045 public:
00046
00047 SyncManagerConfig() EXTRA_SECTION_01;
00048 virtual ~SyncManagerConfig() EXTRA_SECTION_01;
00049
00050 virtual SyncSourceConfig* getSyncSourceConfigs() EXTRA_SECTION_01;
00051 virtual SyncSourceConfig* getSyncSourceConfig(const char* name, BOOL refresh = FALSE) EXTRA_SECTION_01;
00052 virtual SyncSourceConfig* getSyncSourceConfig(unsigned int i, BOOL refresh = FALSE) EXTRA_SECTION_01;
00053 virtual BOOL setSyncSourceConfig(SyncSourceConfig& sc) EXTRA_SECTION_01;
00054 virtual unsigned int getSyncSourceConfigsCount() EXTRA_SECTION_01;
00055
00056 virtual AccessConfig& getAccessConfig() EXTRA_SECTION_01;
00057 virtual void setAccessConfig(AccessConfig& ac) EXTRA_SECTION_01;
00058
00059 virtual DeviceConfig& getDeviceConfig() EXTRA_SECTION_01;
00060 virtual void setDeviceConfig(DeviceConfig& dc) EXTRA_SECTION_01;
00061
00062 BOOL isDirty() EXTRA_SECTION_01;
00063
00067 void setClientDefaults();
00068
00072 void setSourceDefaults(const char* name);
00073 };
00074
00077 #endif