src/include/common/spds/SyncSourceConfig.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 
00019 
00020 
00021 #ifndef INCL_SYNC_SOURCE_CONFIG
00022     #define INCL_SYNC_SOURCE_CONFIG
00023 
00027     #include "base/fscapi.h"
00028     #include "spds/constants.h"
00029     #include "syncml/core/CTCap.h"
00030 
00031 
00037 class SyncSourceConfig {
00038 
00039     protected:
00040 
00041         char*  name          ;
00042         char*  uri           ;
00043         char*  syncModes     ;
00044         char*  type          ;
00045         char*  sync          ;
00046         char*  encodings     ;
00047         char*  version       ;
00048         char*  supportedTypes;
00049         CTCap  ctCap         ;
00050         char*  encryption    ;
00051 
00052         unsigned long last;
00053 
00054     public:
00055 
00059         SyncSourceConfig() EXTRA_SECTION_02;
00060 
00064         ~SyncSourceConfig() EXTRA_SECTION_02;
00065 
00069         const char*  getName() const EXTRA_SECTION_02;
00070 
00076         void setName(const char*  n) EXTRA_SECTION_02;
00077 
00078 
00082         const char*  getURI() const EXTRA_SECTION_02;
00083 
00089         void setURI(const char*  u) EXTRA_SECTION_02;
00090 
00104         const char*  getSyncModes() const EXTRA_SECTION_02;
00105 
00112         void setSyncModes(const char*  s) EXTRA_SECTION_02;
00113 
00117         const char*  getType() const EXTRA_SECTION_02;
00118 
00124         void setType(const char*  t) EXTRA_SECTION_02;
00125 
00129         const char*  getSync() const EXTRA_SECTION_02;
00130 
00134         void setSync(const char*  s) EXTRA_SECTION_02;
00135         
00142         const char*  getEncoding() const EXTRA_SECTION_02;
00143         void setEncoding(const char*  s) EXTRA_SECTION_02;
00144 
00145 
00149         const char*  getVersion() const EXTRA_SECTION_02;
00150 
00156         void setVersion(const char*  n) EXTRA_SECTION_02;
00157 
00158 
00166         const char*  getSupportedTypes() const EXTRA_SECTION_02;
00167 
00173         void setSupportedTypes(const char*  s) EXTRA_SECTION_02;
00174 
00175         CTCap getCtCap() const           EXTRA_SECTION_02;
00176         void setCtCap(CTCap v)           EXTRA_SECTION_02;
00177 
00183         void setLast(unsigned long timestamp) EXTRA_SECTION_02;
00184 
00188         unsigned long getLast() const EXTRA_SECTION_02;
00189         
00195         const char* getEncryption() const EXTRA_SECTION_02;
00196         
00202         void setEncryption(const char* n) EXTRA_SECTION_02;
00203 
00209         void assign(const SyncSourceConfig& sc);
00210 
00214         SyncSourceConfig& operator = (const SyncSourceConfig& sc) {
00215             assign(sc);
00216             return *this;
00217         }
00218     };
00219 
00222 #endif

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