Crossfire Server, Trunk
CREFilterDefinitionManager.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_MANAGER_H
14 #define CRE_FILTER_DEFINITION_MANAGER_H
15 
17 
18 #include <QObject>
19 #include <QMetaType>
20 
21 class CREFilterDefinitionManager : public QObject
22 {
23  Q_OBJECT
24 
25  public:
29 
30  void copy(const CREFilterDefinitionManager& other);
31 
32  QList<CREFilterDefinition*>& filters();
33  const QList<CREFilterDefinition*>& filters() const;
34 
35  protected:
36  QList<CREFilterDefinition*> myFilters;
37 };
38 
40 
41 QDataStream &operator<<(QDataStream &out, const CREFilterDefinitionManager &manager);
42 QDataStream &operator>>(QDataStream &in, CREFilterDefinitionManager &manager);
43 
44 #endif // CRE_FILTER_DEFINITION_MANAGER_H
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(CREFilterDefinitionManager)
CREFilterDefinitionManager
Definition: CREFilterDefinitionManager.h:21
CREFilterDefinitionManager::~CREFilterDefinitionManager
virtual ~CREFilterDefinitionManager()
Definition: CREFilterDefinitionManager.cpp:26
CREFilterDefinitionManager::CREFilterDefinitionManager
CREFilterDefinitionManager()
Definition: CREFilterDefinitionManager.cpp:17
make_face_from_files.out
out
Definition: make_face_from_files.py:75
operator>>
QDataStream & operator>>(QDataStream &in, CREFilterDefinitionManager &manager)
Definition: CREFilterDefinitionManager.cpp:59
CREFilterDefinitionManager::copy
void copy(const CREFilterDefinitionManager &other)
Definition: CREFilterDefinitionManager.cpp:31
CREFilterDefinition
Definition: CREFilterDefinition.h:19
CREFilterDefinitionManager::myFilters
QList< CREFilterDefinition * > myFilters
Definition: CREFilterDefinitionManager.h:36
operator<<
QDataStream & operator<<(QDataStream &out, const CREFilterDefinitionManager &manager)
Definition: CREFilterDefinitionManager.cpp:51
manager
static AssetsManager * manager
Definition: assets.cpp:62
CREFilterDefinitionManager::filters
QList< CREFilterDefinition * > & filters()
Definition: CREFilterDefinitionManager.cpp:41