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

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

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