tdeprint
printerfilter.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef PRINTERFILTER_H
00021 #define PRINTERFILTER_H
00022
00023 #include <tqobject.h>
00024 #include <tqregexp.h>
00025 #include <tqstringlist.h>
00026
00027 class KMPrinter;
00028
00029 class PrinterFilter : TQObject
00030 {
00031 public:
00032 PrinterFilter(TQObject *parent = 0, const char *name = 0);
00033 ~PrinterFilter();
00034
00035 bool filter(KMPrinter*);
00036 void update();
00037 void setEnabled(bool on);
00038 bool isEnabled() const;
00039
00040 private:
00041 TQRegExp m_locationRe;
00042 TQStringList m_printers;
00043 bool m_enabled;
00044 };
00045
00046 inline bool PrinterFilter::isEnabled() const
00047 { return m_enabled; }
00048
00049 #endif