src/include/common/filter/SourceFilter.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 #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 Jun 15 11:38:29 2007 for Funambol C++ Client Library by  doxygen 1.5.2