Crossfire Server, Trunk  R20513
CREFilterDefinition.h
Go to the documentation of this file.
1 #ifndef CRE_FILTER_DEFINITION_H
2 #define CRE_FILTER_DEFINITION_H
3 
4 #include <QObject>
5 #include <QMetaType>
6 
7 class CREFilterDefinition : public QObject
8 {
9  Q_OBJECT
10 
11  public:
14  virtual ~CREFilterDefinition();
15 
16  const QString& name() const;
17  void setName(const QString& name);
18 
19  const QString& filter() const;
20  void setFilter(const QString& filter);
21 
22  protected:
23  QString myName;
24  QString myFilter;
25 };
26 
28 
29 QDataStream &operator<<(QDataStream &out, const CREFilterDefinition &filter);
30 QDataStream &operator>>(QDataStream &in, CREFilterDefinition &filter);
31 
32 #endif // CRE_FILTER_DEFINITION_H
const QString & name() const
Q_DECLARE_METATYPE(CREFilterDefinition)
const QString & filter() const
void setName(const QString &name)
QDataStream & operator>>(QDataStream &in, CREFilterDefinition &filter)
QDataStream & operator<<(QDataStream &out, const CREFilterDefinition &filter)
void setFilter(const QString &filter)