src/include/common/spds/MailSyncSourceConfig.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_MAIL_SYNC_SOURCE_CONFIG
00022     #define INCL_MAIL_SYNC_SOURCE_CONFIG
00023 
00025     #include "base/fscapi.h"
00026     #include "spds/constants.h"
00027     #include "spds/SyncSourceConfig.h"
00028 
00029     class MailSyncSourceConfig : public SyncSourceConfig {
00030 
00031     private:
00032 
00040         int downloadAge;
00041 
00049         int bodySize;
00050 
00058         int attachSize;
00059 
00060         /*
00061         * represent the folder that have to be synched. 1 is the folder to sync, 0 is to avoid
00062         */
00063         int inbox;
00064         int outbox;
00065         int draft;
00066         int trash;
00067         int sent;
00068         
00069         /*
00070         * it represent the time of the schedule
00071         */
00072         int schedule;
00073 
00074     public:
00075 
00076         /*
00077          * Constructs a new MailSyncSourceConfig object
00078          */
00079         MailSyncSourceConfig() EXTRA_SECTION_02;
00080 
00081         /*
00082          * Constructs a new SyncSourceConfig object from an other.
00083          */
00084         MailSyncSourceConfig(MailSyncSourceConfig& c) EXTRA_SECTION_02;
00085 
00086         /*
00087          * Destructor
00088          */
00089         ~MailSyncSourceConfig() EXTRA_SECTION_02;
00090 
00091         /*
00092          * Sets the downloadAge
00093          *
00094          * @param age the new downloadAge
00095          */
00096         void setDownloadAge(int age) EXTRA_SECTION_02;
00097 
00098         /*
00099          * Returns downloadAge
00100          */
00101         int getDownloadAge() const EXTRA_SECTION_02;
00102 
00103         /*
00104          * Sets the bodySize
00105          *
00106          * @param size the new bodySize
00107          */
00108         void setBodySize(int size) EXTRA_SECTION_02;
00109 
00110         /*
00111          * Returns bodySize
00112          */
00113         int getBodySize() const EXTRA_SECTION_02;
00114 
00115         /*
00116          * Sets the attachSize
00117          *
00118          * @param size the new attachSize
00119          */
00120         void setAttachSize(int size) EXTRA_SECTION_02;
00121 
00122         /*
00123          * Returns attachSize
00124          */
00125         int getAttachSize() const EXTRA_SECTION_02;
00126         
00127 
00128         void setInbox(int v) EXTRA_SECTION_02;
00129 
00130         int  getInbox() const EXTRA_SECTION_02;
00131 
00132         void setOutbox(int v)EXTRA_SECTION_02;
00133 
00134         int  getOutbox() const EXTRA_SECTION_02;
00135 
00136         void setDraft(int v)EXTRA_SECTION_02;
00137 
00138         int  getDraft() const EXTRA_SECTION_02;
00139 
00140         void setTrash(int v) EXTRA_SECTION_02;
00141 
00142         int  getTrash() const EXTRA_SECTION_02;
00143 
00144         void setSent(int v) EXTRA_SECTION_02;
00145 
00146         int  getSent() const EXTRA_SECTION_02;
00147 
00148         void setSchedule(int v) EXTRA_SECTION_02;
00149 
00150         int  getSchedule() const EXTRA_SECTION_02;
00151  
00152 
00158         void assign(const MailSyncSourceConfig& sc);
00159 
00160     };
00161 
00163 #endif

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