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 _GLOBALFILTER_H_ 00012 #define _GLOBALFILTER_H_ 00013 00014 #include "Filter.h" 00015 00020 class GlobalFilter : public Filter 00021 { 00022 00023 public: 00024 GlobalFilter(const QString & name, MtpContext*); 00025 ~GlobalFilter(); 00026 00027 bool applyTo(QString &); 00028 void setResultPattern(const QString &); 00029 00030 QString getResultPattern() const; 00031 00032 private: 00033 QString pattern; 00034 }; 00035 00036 #endif