Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/mymoney/mymoneyreport.cpp
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Line(s) | 127 | #ifdef DEBUG_REPORTS | |||
---|---|---|---|---|---|
129 | out << _name << toString(_rt) << toString(m_reportType); | 129 | out << _name << toString(_rt) << toString(m_reportType); | ||
130 | foreach(const eMyMoney::Account::Type accountType, m_accountGroups) | 130 | foreach(const eMyMoney::Account::Type accountType, m_accountGroups) | ||
131 | out << MyMoneyeMyMoney::Account::accountTypeToString(accountType); | 131 | out << MyMoneyeMyMoney::Account::accountTypeToString(accountType); | ||
132 | if (m_accounts.size() > 0) | 132 | if (m_accounts.size() > 0) | ||
133 | out << m_accounts; | 133 | out << m_accounts; | ||
134 | #endif | 134 | #endif | ||
135 | } | 135 | } | ||
136 | 136 | | |||
137 | MyMoneyReport::MyMoneyReport(const QDomElement& node) : | | |||
138 | MyMoneyObject(*new MyMoneyReportPrivate, node) | | |||
139 | { | | |||
140 | // properly initialize the object before reading it | | |||
141 | *this = MyMoneyReport(); | | |||
142 | if (!read(node)) | | |||
143 | clearId(); | | |||
144 | } | | |||
145 | | ||||
146 | MyMoneyReport::MyMoneyReport(const MyMoneyReport& other) : | 137 | MyMoneyReport::MyMoneyReport(const MyMoneyReport& other) : | ||
147 | MyMoneyObject(*new MyMoneyReportPrivate(*other.d_func()), other.id()), | 138 | MyMoneyObject(*new MyMoneyReportPrivate(*other.d_func()), other.id()), | ||
148 | MyMoneyTransactionFilter(other) | 139 | MyMoneyTransactionFilter(other) | ||
149 | { | 140 | { | ||
150 | } | 141 | } | ||
151 | 142 | | |||
152 | MyMoneyReport::MyMoneyReport(const QString& id, const MyMoneyReport& other) : | 143 | MyMoneyReport::MyMoneyReport(const QString& id, const MyMoneyReport& other) : | ||
153 | MyMoneyObject(*new MyMoneyReportPrivate(*other.d_func()), id), | 144 | MyMoneyObject(*new MyMoneyReportPrivate(*other.d_func()), id), | ||
Show All 9 Lines | |||||
163 | } | 154 | } | ||
164 | 155 | | |||
165 | eMyMoney::Report::ReportType MyMoneyReport::reportType() const | 156 | eMyMoney::Report::ReportType MyMoneyReport::reportType() const | ||
166 | { | 157 | { | ||
167 | Q_D(const MyMoneyReport); | 158 | Q_D(const MyMoneyReport); | ||
168 | return d->m_reportType; | 159 | return d->m_reportType; | ||
169 | } | 160 | } | ||
170 | 161 | | |||
162 | void MyMoneyReport::setReportType(eMyMoney::Report::ReportType rt) | ||||
163 | { | ||||
164 | Q_D(MyMoneyReport); | ||||
165 | d->m_reportType = rt; | ||||
166 | } | ||||
167 | | ||||
171 | QString MyMoneyReport::name() const | 168 | QString MyMoneyReport::name() const | ||
172 | { | 169 | { | ||
173 | Q_D(const MyMoneyReport); | 170 | Q_D(const MyMoneyReport); | ||
174 | return d->m_name; | 171 | return d->m_name; | ||
175 | } | 172 | } | ||
176 | 173 | | |||
177 | void MyMoneyReport::setName(const QString& s) | 174 | void MyMoneyReport::setName(const QString& s) | ||
178 | { | 175 | { | ||
▲ Show 20 Lines • Show All 1348 Lines • Show Last 20 Lines |