From b888c7edb54e483ec0e3c2e2ce0eafd73acdcc65 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 24 Jul 2013 15:57:00 -0500 Subject: Initial import from kshowmail 3.3.1 sources --- doc/html/filterelem_8h-source.html | 97 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 doc/html/filterelem_8h-source.html (limited to 'doc/html/filterelem_8h-source.html') diff --git a/doc/html/filterelem_8h-source.html b/doc/html/filterelem_8h-source.html new file mode 100644 index 0000000..c38a116 --- /dev/null +++ b/doc/html/filterelem_8h-source.html @@ -0,0 +1,97 @@ + + +kshowmail: kshowmail/filterelem.h Source File + + + + +
+
+ +

filterelem.h

00001 /***************************************************************************
+00002                           filterelem.h  -  description
+00003                              -------------------
+00004     begin                : Die Sep 23 2003
+00005     copyright            : (C) 2003 by Eggert Ehmke
+00006     email                : eggert.ehmke@berlin.de
+00007  ***************************************************************************/
+00008 
+00009 /***************************************************************************
+00010  *                                                                         *
+00011  *   This program is free software; you can redistribute it and/or modify  *
+00012  *   it under the terms of the GNU General Public License as published by  *
+00013  *   the Free Software Foundation; either version 2 of the License, or     *
+00014  *   (at your option) any later version.                                   *
+00015  *                                                                         *
+00016  ***************************************************************************/
+00017 
+00018 #ifndef FILTERELEM_H
+00019 #define FILTERELEM_H
+00020 
+00021 #include "showrecordelem.h"
+00022 
+00027 class ShowRecordElem;
+00028 
+00029 class FilterRecord
+00030 {
+00031   public:
+00032   // this sequence must not be changed. See FilterEntryDlg.ui
+00033   enum filterType {from, subject, header, size, to};
+00034   enum expressionType {contains, contains_not, equals, equals_not, greater, less};
+00035 
+00036   FilterRecord ();
+00037   FilterRecord (filterType type, expressionType expression, const QString& match, bool CaseSensitive, bool regExp);
+00038   bool matches (ShowRecordElem*);
+00039   QString toString () const;
+00040 
+00041   filterType _type;
+00042   expressionType _expression;
+00043   QString _match;
+00044   bool _CaseSensitive;
+00045   bool _RegExp;
+00046 };
+00047 
+00048 class FilterElem {
+00049 public:
+00050   // this sequence must not be changed. See FilterEntryDlg.ui
+00051   enum secondCondition {noSecondCondition, condAnd, condOr};
+00052 
+00053        FilterElem();
+00054   FilterElem (const FilterRecord&);
+00055   FilterElem (const FilterElem&);
+00056   void setSecondCondition (secondCondition scnd, const FilterRecord&);
+00057 
+00058   ~FilterElem();
+00059   QString toString () const;
+00060 
+00061   FilterRecord _filter1;
+00062   FilterRecord _filter2;
+00063 
+00064   secondCondition _secondCondition;
+00065 
+00066   bool matches (ShowRecordElem*);
+00067 
+00072   unsigned int getCounter();
+00073 
+00078   void setCounter( unsigned int number );
+00079 
+00083   void incCounter();
+00084 
+00085   private:
+00086 
+00090     unsigned int _counter;
+00091 };
+00092 
+00093 #endif
+

Generated on Thu Jul 5 19:36:06 2007 for kshowmail by  + +doxygen 1.5.0
+ + -- cgit v1.2.1