src/include/common/spds/MailSyncSourceConfig.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 
00036 
00037 
00038 #ifndef INCL_MAIL_SYNC_SOURCE_CONFIG
00039     #define INCL_MAIL_SYNC_SOURCE_CONFIG
00040 
00042     #include "base/fscapi.h"
00043     #include "spds/constants.h"
00044     #include "spds/SyncSourceConfig.h"
00045 
00046     class MailSyncSourceConfig : public SyncSourceConfig {
00047 
00048     private:
00049 
00057         int downloadAge;
00058 
00066         int bodySize;
00067 
00075         int attachSize;
00076 
00077         /*
00078         * represent the folder that have to be synched. 1 is the folder to sync, 0 is to avoid
00079         */
00080         int inbox;
00081         int outbox;
00082         int draft;
00083         int trash;
00084         int sent;
00085 
00086         /*
00087         * it represent the time of the schedule
00088         */
00089         int schedule;
00090 
00091     public:
00092 
00093         /*
00094          * Constructs a new MailSyncSourceConfig object
00095          */
00096         MailSyncSourceConfig();
00097 
00098         /*
00099          * Constructs a new SyncSourceConfig object from an other.
00100          */
00101         MailSyncSourceConfig(MailSyncSourceConfig& c);
00102 
00103         /*
00104          * Destructor
00105          */
00106         ~MailSyncSourceConfig();
00107 
00108         /*
00109          * Sets the downloadAge
00110          *
00111          * @param age the new downloadAge
00112          */
00113         void setDownloadAge(int age);
00114 
00115         /*
00116          * Returns downloadAge
00117          */
00118         int getDownloadAge() const;
00119 
00120         /*
00121          * Sets the bodySize
00122          *
00123          * @param size the new bodySize
00124          */
00125         void setBodySize(int size);
00126 
00127         /*
00128          * Returns bodySize
00129          */
00130         int getBodySize() const;
00131 
00132         /*
00133          * Sets the attachSize
00134          *
00135          * @param size the new attachSize
00136          */
00137         void setAttachSize(int size);
00138 
00139         /*
00140          * Returns attachSize
00141          */
00142         int getAttachSize() const;
00143 
00144 
00145         void setInbox(int v);
00146 
00147         int  getInbox() const;
00148 
00149         void setOutbox(int v);
00150 
00151         int  getOutbox() const;
00152 
00153         void setDraft(int v);
00154 
00155         int  getDraft() const;
00156 
00157         void setTrash(int v);
00158 
00159         int  getTrash() const;
00160 
00161         void setSent(int v);
00162 
00163         int  getSent() const;
00164 
00165         void setSchedule(int v);
00166 
00167         int  getSchedule() const;
00168 
00169 
00175         void assign(const MailSyncSourceConfig& sc);
00176 
00177     };
00178 
00180 #endif

Generated on Mon Feb 4 09:50:47 2008 for Funambol Outlook Plug-in Library by  doxygen 1.5.2