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

LineFilter.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 _LINEFILTER_H_
00012 #define _LINEFILTER_H_
00013 
00014 #include "Filter.h"
00015 
00020 class LineFilter : public Filter {
00021 
00022 public:
00023     LineFilter(const QString & name, MtpContext * ctxt);
00024     ~LineFilter();
00025 
00026     void setRegExp(const QString& reg);
00027     void setResultPattern(const QString& pat);
00028     
00029     QString getRegExp() const;
00030     QString getResultPattern() const;
00031     
00032     bool applyTo(QString &);
00033 
00034 private:
00035     MtpRegExp reg;
00036     QString pattern,sreg;
00037     MtpContext * m_context;
00038 };
00039 
00040 #endif

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