Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ItemFilter.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2002 by Yann Hodique                                    *
00003  *   Yann.Hodique@lifl.fr                                                  *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 
00011 #ifndef _ITEMFILTER_H_
00012 #define _ITEMFILTER_H_
00013 
00014 #include "Filter.h"
00015 
00016 #include <qstring.h>
00017 #include <qregexp.h>
00018 
00023 class ItemFilter : public Filter {
00024 
00025 public:
00026     ItemFilter(const QString & name, MtpContext * ctxt = 0);
00027     ~ItemFilter();
00028 
00029     void setRegExp(const QString& reg);
00030     void setResultPattern(const QString& pat);
00031     bool applyTo(QString &);
00032 
00033     QString getRegExp() const;
00034     QString getResultPattern() const;
00035     
00036 private:
00037     MtpRegExp reg;
00038     QString pattern,reg_exp;
00039     MtpContext * m_context;
00040 };
00041 
00042 #endif

Generated on Sat May 10 15:09:26 2003 for qnet by doxygen1.3