Crossfire Server, Trunk
CREReportDefinition.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_REPORT_DEFINITION_H
14 #define CRE_REPORT_DEFINITION_H
15 
16 #include <QObject>
17 #include <QMetaType>
18 
19 class CREReportDefinition : public QObject
20 {
21  Q_OBJECT
22 
23  public:
26  virtual ~CREReportDefinition();
27 
28  const QString& name() const;
29  void setName(const QString& name);
30 
31  const QString& header() const;
32  void setHeader(const QString& header);
33 
34  const QString& itemSort() const;
35  void setItemSort(const QString& sort);
36 
37  const QString& itemDisplay() const;
38  void setItemDisplay(const QString& display);
39 
40  const QString& footer() const;
41  void setFooter(const QString& footer);
42 
43  protected:
44  QString myName;
45  QString myHeader;
46  QString myItemSort;
47  QString myItemDisplay;
48  QString myFooter;
49 };
50 
52 
53 QDataStream &operator<<(QDataStream &out, const CREReportDefinition &report);
54 QDataStream &operator>>(QDataStream &in, CREReportDefinition &report);
55 
56 #endif // CRE_REPORT_DEFINITION_H
CREReportDefinition::footer
const QString & footer() const
Definition: CREReportDefinition.cpp:72
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(CREReportDefinition)
CREReportDefinition::myFooter
QString myFooter
Definition: CREReportDefinition.h:48
CREReportDefinition::myItemDisplay
QString myItemDisplay
Definition: CREReportDefinition.h:47
CREReportDefinition
Definition: CREReportDefinition.h:19
CREReportDefinition::~CREReportDefinition
virtual ~CREReportDefinition()
Definition: CREReportDefinition.cpp:28
CREReportDefinition::setName
void setName(const QString &name)
Definition: CREReportDefinition.cpp:37
CREReportDefinition::setItemDisplay
void setItemDisplay(const QString &display)
Definition: CREReportDefinition.cpp:67
CREReportDefinition::setItemSort
void setItemSort(const QString &sort)
Definition: CREReportDefinition.cpp:57
operator>>
QDataStream & operator>>(QDataStream &in, CREReportDefinition &report)
Definition: CREReportDefinition.cpp:88
CREReportDefinition::myItemSort
QString myItemSort
Definition: CREReportDefinition.h:46
CREReportDefinition::myHeader
QString myHeader
Definition: CREReportDefinition.h:45
CREReportDefinition::setHeader
void setHeader(const QString &header)
Definition: CREReportDefinition.cpp:47
CREReportDefinition::itemSort
const QString & itemSort() const
Definition: CREReportDefinition.cpp:52
CREReportDefinition::header
const QString & header() const
Definition: CREReportDefinition.cpp:42
make_face_from_files.out
out
Definition: make_face_from_files.py:81
CREReportDefinition::setFooter
void setFooter(const QString &footer)
Definition: CREReportDefinition.cpp:77
report
Definition: report.py:1
operator<<
QDataStream & operator<<(QDataStream &out, const CREReportDefinition &report)
Definition: CREReportDefinition.cpp:82
CREReportDefinition::CREReportDefinition
CREReportDefinition()
Definition: CREReportDefinition.cpp:15
CREReportDefinition::myName
QString myName
Definition: CREReportDefinition.h:44
CREReportDefinition::itemDisplay
const QString & itemDisplay() const
Definition: CREReportDefinition.cpp:62
CREReportDefinition::name
const QString & name() const
Definition: CREReportDefinition.cpp:32