src/include/common/filter/SourceFilter.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 #ifndef INCL_FILTERCLAUSE
00020 #define INCL_FILTERCLAUSE
00021 
00023 #include "filter/LogicalClause.h"
00024 
00025 class SourceFilter {
00026 
00027     // ------------------------------------------------------- Private interface
00028 private:
00029 
00030     LogicalClause* clause;
00031     BOOL inclusive;
00032     char*  type;
00033 
00034     // ----------------------------------------------------- Protected interface
00035 protected:
00036 
00037     // -------------------------------------------------------- Public interface
00038 public:
00039 
00040 
00041     /*
00042      * FilterClause constructor
00043      * 
00044      */
00045     SourceFilter();
00046 
00047 
00048     /*
00049      * FilterClause destructor
00050      * 
00051      */
00052     ~SourceFilter();
00053 
00054     /*
00055      * setInclusive
00056      * 
00057      * @param i
00058      */
00059     void setInclusive(BOOL i);
00060 
00061 
00062     /*
00063      * isInclusive
00064      * 
00065      */
00066     BOOL isInclusive();
00067 
00068 
00069     /*
00070      * isExclusive
00071      * 
00072      */
00073     BOOL isExclusive();
00074 
00075 
00076     /*
00077      * setClause
00078      * 
00079      * @param c
00080      */
00081     void setClause(LogicalClause* c);
00082 
00083     /*
00084      * setClause
00085      * 
00086      * @param c
00087      */
00088     void setClause(LogicalClause& c);
00089 
00090 
00091     /*
00092      * getClause
00093      * 
00094      */
00095     LogicalClause* getClause();
00096 
00102     const char* getType();
00103 
00109     void setType(const char* type);
00110 
00111 };
00112 
00113 
00115 #endif

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