src/include/common/spds/SyncSourceConfig.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 
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();
00060 
00064         ~SyncSourceConfig();
00065 
00069         const char*  getName() const;
00070 
00076         void setName(const char*  n);
00077 
00078 
00082         const char*  getURI() const;
00083 
00089         void setURI(const char*  u);
00090 
00104         const char*  getSyncModes() const;
00105 
00112         void setSyncModes(const char*  s);
00113 
00117         const char*  getType() const;
00118 
00124         void setType(const char*  t);
00125 
00129         const char*  getSync() const;
00130 
00134         void setSync(const char*  s);
00135 
00142         const char*  getEncoding() const;
00143         void setEncoding(const char*  s);
00144 
00145 
00149         const char*  getVersion() const;
00150 
00156         void setVersion(const char*  n);
00157 
00158 
00166         const char*  getSupportedTypes() const;
00167 
00173         void setSupportedTypes(const char*  s);
00174 
00175         CTCap getCtCap() const          ;
00176         void setCtCap(CTCap v)          ;
00177 
00183         void setLast(unsigned long timestamp);
00184 
00188         unsigned long getLast() const;
00189 
00195         const char* getEncryption() const;
00196 
00202         void setEncryption(const char* n);
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 Tue Oct 30 15:11:25 2007 for Funambol C++ Client Library by  doxygen 1.5.2