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 <qobject.h>
00024
#include <qregexp.h>
00025
#include <qstringlist.h>
00026
00027
class KMPrinter;
00028
00029
class PrinterFilter :
QObject
00030 {
00031
public:
00032 PrinterFilter(
QObject *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
QRegExp m_locationRe;
00042
QStringList m_printers;
00043
bool m_enabled;
00044 };
00045
00046 inline
bool PrinterFilter::isEnabled()
const
00047
{
return m_enabled; }
00048
00049
#endif
This file is part of the documentation for kdeprint Library Version 3.3.0.