Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/tests/testutilities.h
- This file was moved from kmymoney/plugins/views/reports/core/tests/reportstestcommon.h.
Show First 20 Lines • Show All 119 Lines • ▼ Show 20 Line(s) | 119 | { | |||
---|---|---|---|---|---|
120 | MyMoneyMoney budgetAmount(const QDate& _date, const QString& _categoryid, bool& _applytosub); | 120 | MyMoneyMoney budgetAmount(const QDate& _date, const QString& _categoryid, bool& _applytosub); | ||
121 | }; | 121 | }; | ||
122 | 122 | | |||
123 | extern QString makeAccount(const QString& _name, eMyMoney::Account::Type _type, MyMoneyMoney _balance, const QDate& _open, const QString& _parent, QString _currency = "", bool _taxReport = false, bool _openingBalance = false); | 123 | extern QString makeAccount(const QString& _name, eMyMoney::Account::Type _type, MyMoneyMoney _balance, const QDate& _open, const QString& _parent, QString _currency = "", bool _taxReport = false, bool _openingBalance = false); | ||
124 | extern void makePrice(const QString& _currencyid, const QDate& _date, const MyMoneyMoney& _price); | 124 | extern void makePrice(const QString& _currencyid, const QDate& _date, const MyMoneyMoney& _price); | ||
125 | QString makeEquity(const QString& _name, const QString& _symbol); | 125 | QString makeEquity(const QString& _name, const QString& _symbol); | ||
126 | extern void makeEquityPrice(const QString& _id, const QDate& _date, const MyMoneyMoney& _price); | 126 | extern void makeEquityPrice(const QString& _id, const QDate& _date, const MyMoneyMoney& _price); | ||
127 | extern void writeRCFtoXMLDoc(const MyMoneyReport& filter, QDomDocument* doc); | 127 | extern void writeRCFtoXMLDoc(const MyMoneyReport& filter, QDomDocument* doc); | ||
128 | extern void writeTabletoHTML(const reports::PivotTable& table, const QString& _filename = QString()); | | |||
129 | extern void writeTabletoHTML(const reports::QueryTable& table, const QString& _filename = QString()); | | |||
130 | extern void writeTabletoCSV(const reports::PivotTable& table, const QString& _filename = QString()); | | |||
131 | extern void writeTabletoCSV(const reports::QueryTable& table, const QString& _filename = QString()); | | |||
132 | extern void writeRCFtoXML(const MyMoneyReport& filter, const QString& _filename = QString()); | 128 | extern void writeRCFtoXML(const MyMoneyReport& filter, const QString& _filename = QString()); | ||
133 | extern bool readRCFfromXMLDoc(QList<MyMoneyReport>& list, QDomDocument* doc); | 129 | extern bool readRCFfromXMLDoc(QList<MyMoneyReport>& list, QDomDocument* doc); | ||
134 | extern bool readRCFfromXML(QList<MyMoneyReport>& list, const QString& filename); | 130 | extern bool readRCFfromXML(QList<MyMoneyReport>& list, const QString& filename); | ||
135 | extern void XMLandback(MyMoneyReport& filter); | 131 | extern void XMLandback(MyMoneyReport& filter); | ||
136 | extern MyMoneyMoney searchHTML(const QString& _html, const QString& _search); | 132 | extern MyMoneyMoney searchHTML(const QString& _html, const QString& _search); | ||
137 | 133 | | |||
138 | } // end namespace test | 134 | } // end namespace test | ||
139 | 135 | | |||
140 | #endif // REPORTSTESTCOMMON_H | 136 | #endif // REPORTSTESTCOMMON_H |