src/include/common/syncml/core/DataStore.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 #ifndef INCL_DATA_STORE
00021 #define INCL_DATA_STORE
00022 
00024 #include "base/fscapi.h"
00025 #include "base/util/ArrayList.h"
00026 #include "syncml/core/SourceRef.h"
00027 #include "syncml/core/ContentTypeInfo.h"
00028 #include "syncml/core/DSMem.h"
00029 #include "syncml/core/SyncCap.h"
00030 
00031 
00032 class DataStore : public ArrayElement {
00033 
00034      // ------------------------------------------------------------ Private data
00035     private:
00036         SourceRef*       sourceRef;
00037         char*          displayName;
00038         long             maxGUIDSize;
00039         ContentTypeInfo* rxPref;
00040         ArrayList*       rx; // ContentTypeInfo[]
00041         ContentTypeInfo* txPref;
00042         ArrayList*       tx; // ContentTypeInfo[]
00043         DSMem*           dsMem;
00044         SyncCap*         syncCap;
00045 
00046         void initialize();
00047 
00048     // ---------------------------------------------------------- Public data
00049     public:
00050 
00051         DataStore();
00052         ~DataStore();
00053 
00075         DataStore(SourceRef* sourceRef,
00076                   char*  displayName,
00077                   long maxGUIDSize,
00078                   ContentTypeInfo* rxPref,
00079                   ArrayList* rx,
00080                   ContentTypeInfo* txPref,
00081                   ArrayList* tx,
00082                   DSMem* dsMem,
00083                   SyncCap* syncCap);
00084 
00090         SourceRef* getSourceRef();
00091 
00098         void setSourceRef(SourceRef* sourceRef);
00099 
00105         const char* getDisplayName();
00106 
00113         void setDisplayName(const char* displayName);
00114 
00120         long getMaxGUIDSize();
00121 
00122         void setMaxGUIDSize(long maxGUIDSize);
00123 
00129         ContentTypeInfo* getRxPref();
00130 
00136         void setRxPref(ContentTypeInfo* rxPref);
00137 
00143         ArrayList* getRx();
00144 
00150         void setRx(ArrayList* rxCTI);
00151 
00152 
00158         ContentTypeInfo* getTxPref();
00159 
00165         void setTxPref(ContentTypeInfo* txPref);
00166 
00172         ArrayList* getTx();
00173 
00179         void setTx(ArrayList* txCTI);
00180 
00186         DSMem* getDSMem();
00187 
00193         void setDSMem(DSMem* dsMem);
00194 
00200         SyncCap* getSyncCap();
00201 
00208         void setSyncCap(SyncCap* syncCap);
00209 
00210         ArrayElement* clone();
00211 
00212 };
00213 
00215 #endif

Generated on Fri Jun 15 11:38:30 2007 for Funambol C++ Client Library by  doxygen 1.5.2