src/include/common/spds/SyncManagerConfig.h

00001 /*
00002  * Copyright (C) 2003-2007 Funambol, Inc
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 version 2 as
00006  * published by the Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY, TITLE, NONINFRINGEMENT or FITNESS FOR A PARTICULAR
00011  * PURPOSE.  See the GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program; if not, write to the Free Software
00015  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00016  * 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);
00044 
00045     public:
00046 
00047         SyncManagerConfig();
00048         virtual ~SyncManagerConfig();
00049 
00050         virtual SyncSourceConfig* getSyncSourceConfigs();
00051         virtual SyncSourceConfig* getSyncSourceConfig(const char*  name, BOOL refresh = FALSE);
00052         virtual SyncSourceConfig* getSyncSourceConfig(unsigned int i,    BOOL refresh = FALSE);
00053                 virtual BOOL setSyncSourceConfig(SyncSourceConfig& sc);
00054         virtual unsigned int getSyncSourceConfigsCount();
00055 
00056                 virtual AccessConfig& getAccessConfig();
00057                 virtual void setAccessConfig(AccessConfig& ac);
00058 
00059         virtual DeviceConfig& getDeviceConfig();
00060                 virtual void setDeviceConfig(DeviceConfig& dc);
00061 
00062         BOOL isDirty();
00063 
00067         void setClientDefaults();
00068 
00072         void setSourceDefaults(const char* name);
00073 };
00074 
00077 #endif

Generated on Fri Nov 9 12:21:24 2007 for Funambol Outlook Plug-in Library by  doxygen 1.5.2