Crossfire Server, Trunk
CREFilterDefinition.h
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2022 the Crossfire Development Team
5  *
6  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
7  * welcome to redistribute it under certain conditions. For details, please
8  * see COPYING and LICENSE.
9  *
10  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
11  */
12 
13 #ifndef CRE_FILTER_DEFINITION_H
14 #define CRE_FILTER_DEFINITION_H
15 
16 #include <QObject>
17 #include <QMetaType>
18 
19 class CREFilterDefinition : public QObject
20 {
21  Q_OBJECT
22 
23  public:
26  virtual ~CREFilterDefinition();
27 
28  const QString& name() const;
29  void setName(const QString& name);
30 
31  const QString& filter() const;
32  void setFilter(const QString& filter);
33 
34  protected:
35  QString myName;
36  QString myFilter;
37 };
38 
40 
41 QDataStream &operator<<(QDataStream &out, const CREFilterDefinition &filter);
42 QDataStream &operator>>(QDataStream &in, CREFilterDefinition &filter);
43 
44 #endif // CRE_FILTER_DEFINITION_H
CREFilterDefinition::name
const QString & name() const
Definition: CREFilterDefinition.cpp:29
CREFilterDefinition::setFilter
void setFilter(const QString &filter)
Definition: CREFilterDefinition.cpp:44
filter
Definition: filter.py:1
CREFilterDefinition::CREFilterDefinition
CREFilterDefinition()
Definition: CREFilterDefinition.cpp:15
CREFilterDefinition::filter
const QString & filter() const
Definition: CREFilterDefinition.cpp:39
operator>>
QDataStream & operator>>(QDataStream &in, CREFilterDefinition &filter)
Definition: CREFilterDefinition.cpp:55
operator<<
QDataStream & operator<<(QDataStream &out, const CREFilterDefinition &filter)
Definition: CREFilterDefinition.cpp:49
CREFilterDefinition::setName
void setName(const QString &name)
Definition: CREFilterDefinition.cpp:34
CREFilterDefinition::myName
QString myName
Definition: CREFilterDefinition.h:35
CREFilterDefinition::myFilter
QString myFilter
Definition: CREFilterDefinition.h:36
make_face_from_files.out
out
Definition: make_face_from_files.py:81
CREFilterDefinition
Definition: CREFilterDefinition.h:19
CREFilterDefinition::~CREFilterDefinition
virtual ~CREFilterDefinition()
Definition: CREFilterDefinition.cpp:25
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(CREFilterDefinition)