src/include/common/spds/AbstractSyncConfig.h

00001 /*
00002  * Funambol is a mobile platform developed by Funambol, Inc. 
00003  * Copyright (C) 2003 - 2007 Funambol, Inc.
00004  * 
00005  * This program is free software; you can redistribute it and/or modify it under
00006  * the terms of the GNU Affero General Public License version 3 as published by
00007  * the Free Software Foundation with the addition of the following permission 
00008  * added to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED
00009  * WORK IN WHICH THE COPYRIGHT IS OWNED BY FUNAMBOL, FUNAMBOL DISCLAIMS THE 
00010  * WARRANTY OF NON INFRINGEMENT  OF THIRD PARTY RIGHTS.
00011  * 
00012  * This program is distributed in the hope that it will be useful, but WITHOUT
00013  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00014  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
00015  * details.
00016  * 
00017  * You should have received a copy of the GNU Affero General Public License 
00018  * along with this program; if not, see http://www.gnu.org/licenses or write to
00019  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00020  * MA 02110-1301 USA.
00021  * 
00022  * You can contact Funambol, Inc. headquarters at 643 Bair Island Road, Suite 
00023  * 305, Redwood City, CA 94063, USA, or at email address info@funambol.com.
00024  * 
00025  * The interactive user interfaces in modified source and object code versions
00026  * of this program must display Appropriate Legal Notices, as required under
00027  * Section 5 of the GNU Affero General Public License version 3.
00028  * 
00029  * In accordance with Section 7(b) of the GNU Affero General Public License
00030  * version 3, these Appropriate Legal Notices must retain the display of the
00031  * "Powered by Funambol" logo. If the display of the logo is not reasonably 
00032  * feasible for technical reasons, the Appropriate Legal Notices must display
00033  * the words "Powered by Funambol".
00034  */
00035 #ifndef INCL_ABSTRACT_SYNC_CONFIG
00036 #define INCL_ABSTRACT_SYNC_CONFIG
00037 
00041 #include "base/fscapi.h"
00042 #include "spds/AbstractSyncSourceConfig.h"
00043 #include "base/globalsdef.h"
00044 
00045 BEGIN_NAMESPACE
00046 
00057 class AbstractSyncConfig {
00058  public:
00059 
00060     virtual ~AbstractSyncConfig() {}
00061 
00062     virtual AbstractSyncSourceConfig* getAbstractSyncSourceConfig(const char* name) const = 0;
00063     virtual AbstractSyncSourceConfig* getAbstractSyncSourceConfig(unsigned int i) const = 0;
00064     virtual unsigned int getAbstractSyncSourceConfigsCount() const = 0;
00065 
00073     virtual const char*  getUsername() const = 0;
00074 
00078     virtual const char*  getPassword() const = 0;
00079 
00083     virtual bool getUseProxy() const = 0;
00084 
00088     virtual const char*  getProxyHost() const = 0;
00089 
00090     virtual int getProxyPort() const = 0;
00091 
00095     virtual const char* getProxyUsername() const = 0;
00096 
00100     virtual const char* getProxyPassword() const = 0;
00101 
00107     virtual const char*  getSyncURL() const = 0;
00108 
00117     virtual void setBeginSync(unsigned long /* timestamp */) {}
00118 
00127     virtual void setEndSync(unsigned long /* timestamp */) {}
00128 
00130     virtual bool getServerAuthRequired() const = 0;
00131     
00137     virtual const char*  getClientAuthType() const = 0;
00138 
00140     virtual const char*  getServerAuthType() const = 0;
00141 
00143     virtual const char*  getServerPWD() const = 0;
00144 
00146     virtual const char*  getServerID() const = 0;
00147 
00149     virtual const char*  getServerNonce() const = 0;
00150     virtual void setServerNonce(const char*  v) = 0;
00151 
00153     virtual const char*  getClientNonce() const = 0;
00154     virtual void setClientNonce(const char*  v) = 0;
00155 
00160     virtual unsigned long getMaxMsgSize() const = 0;
00161 
00166     virtual unsigned long getReadBufferSize() const = 0;
00167 
00173     virtual const char*  getUserAgent() const = 0;
00174 
00180     virtual const char* getSSLServerCertificates() const { return ""; }
00181 
00189     virtual bool  getSSLVerifyServer() const { return true; }
00190 
00198     virtual bool  getSSLVerifyHost() const { return true; }
00199 
00200     virtual bool  getCompression() const = 0;
00201 
00203     virtual unsigned int getResponseTimeout() const = 0;
00204 
00209     virtual const char*  getMan() const = 0;
00210 
00215     virtual const char*  getMod() const = 0;
00216 
00221     virtual const char*  getOem() const = 0;
00222 
00227     virtual const char*  getFwv() const = 0;
00228 
00233     virtual const char*  getSwv() const = 0;
00234 
00239     virtual const char*  getHwv() const = 0;
00240 
00246     virtual const char*  getDevID() const = 0;
00247 
00254     virtual const char*  getDevType() const = 0;
00255 
00257     virtual const char*  getDsV() const = 0;
00258 
00264     virtual bool getUtc() const = 0;
00265 
00269     virtual bool getLoSupport() const = 0;
00270 
00275     virtual bool getNocSupport() const = 0;
00276 
00281     virtual unsigned int getMaxObjSize() const = 0;
00282 
00289     virtual const char*  getDevInfHash() const = 0;
00290     virtual void setDevInfHash(const char *hash) = 0;
00291 };
00292 
00293 
00294 END_NAMESPACE
00295 
00298 #endif

Generated on Wed Jan 14 17:15:36 2009 for Funambol C++ Client Library by  doxygen 1.5.2