src/include/common/spds/SyncManagerConfig.h

00001 /*
00002  * Copyright (C) 2003-2007 Funambol
00003  *
00004  * This program is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License as published by
00006  * the Free Software Foundation; either version 2 of the License, or
00007  * (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
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

Generated on Fri Apr 27 12:29:18 2007 for Funambol C++ Client Library by  doxygen 1.5.2