Crossfire Server, Trunk  R20513
CREReportDefinition.cpp
Go to the documentation of this file.
1 #include "CREReportDefinition.h"
2 
4 {
5 }
6 
8 {
9  setName(other.name());
10  setHeader(other.header());
11  setFooter(other.footer());
12  setItemSort(other.itemSort());
13  setItemDisplay(other.itemDisplay());
14 }
15 
17 {
18 }
19 
20 const QString& CREReportDefinition::name() const
21 {
22  return myName;
23 }
24 
25 void CREReportDefinition::setName(const QString& name)
26 {
27  myName = name;
28 }
29 
30 const QString& CREReportDefinition::header() const
31 {
32  return myHeader;
33 }
34 
36 {
37  myHeader = header;
38 }
39 
40 const QString& CREReportDefinition::itemSort() const
41 {
42  return myItemSort;
43 }
44 
45 void CREReportDefinition::setItemSort(const QString& sort)
46 {
47  myItemSort = sort;
48 }
49 
50 const QString& CREReportDefinition::itemDisplay() const
51 {
52  return myItemDisplay;
53 }
54 
55 void CREReportDefinition::setItemDisplay(const QString& display)
56 {
57  myItemDisplay = display;
58 }
59 
60 const QString& CREReportDefinition::footer() const
61 {
62  return myFooter;
63 }
64 
66 {
67  myFooter = footer;
68 }
69 
70 QDataStream &operator<<(QDataStream &out, const CREReportDefinition &report)
71 {
72  out << report.name() << report.header() << report.itemSort() << report.itemDisplay() << report.footer();
73  return out;
74 }
75 
76 QDataStream &operator>>(QDataStream &in, CREReportDefinition &report)
77 {
78  QString data;
79  in >> data;
80  report.setName(data);
81  in >> data;
82  report.setHeader(data);
83  in >> data;
84  report.setItemSort(data);
85  in >> data;
86  report.setItemDisplay(data);
87  in >> data;
88  report.setFooter(data);
89  return in;
90 }
void setItemSort(const QString &sort)
void setHeader(const QString &header)
const QString & footer() const
void setName(const QString &name)
const QString & header() const
const QString & itemSort() const
QDataStream & operator>>(QDataStream &in, CREReportDefinition &report)
QDataStream & operator<<(QDataStream &out, const CREReportDefinition &report)
void setItemDisplay(const QString &display)
void setFooter(const QString &footer)
const QString & itemDisplay() const
const QString & name() const