summaryrefslogtreecommitdiffstats
path: root/kmymoney2/reports/reportstestcommon.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-05 06:00:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-05 06:00:29 +0000
commitfecb0e67b23e8b83ba7fc881bb57bc48c0852d62 (patch)
tree6b8614802f0d01b353bc9ba78aff2090846c198e /kmymoney2/reports/reportstestcommon.h
parentdadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (diff)
downloadkmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.tar.gz
kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.zip
TQt4 port kmymoney
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239855 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmymoney2/reports/reportstestcommon.h')
-rw-r--r--kmymoney2/reports/reportstestcommon.h102
1 files changed, 51 insertions, 51 deletions
diff --git a/kmymoney2/reports/reportstestcommon.h b/kmymoney2/reports/reportstestcommon.h
index 6f4826e..a3f40fd 100644
--- a/kmymoney2/reports/reportstestcommon.h
+++ b/kmymoney2/reports/reportstestcommon.h
@@ -18,8 +18,8 @@
#ifndef REPORTSTESTCOMMON_H
#define REPORTSTESTCOMMON_H
-#include <qvaluelist.h>
-class QDomDocument;
+#include <tqvaluelist.h>
+class TQDomDocument;
#include "../mymoney/mymoneyaccount.h"
#include "../mymoney/mymoneytransaction.h"
@@ -46,40 +46,40 @@ extern const MyMoneyMoney moChild;
extern const MyMoneyMoney moThomas;
extern const MyMoneyMoney moNoPayee;
-extern QString acAsset;
-extern QString acLiability;
-extern QString acExpense;
-extern QString acIncome;
-extern QString acChecking;
-extern QString acCredit;
-extern QString acSolo;
-extern QString acParent;
-extern QString acChild;
-extern QString acSecondChild;
-extern QString acGrandChild1;
-extern QString acGrandChild2;
-extern QString acForeign;
-extern QString acCanChecking;
-extern QString acJpyChecking;
-extern QString acCanCash;
-extern QString acJpyCash;
-extern QString inBank;
-extern QString eqStock1;
-extern QString eqStock2;
-extern QString acInvestment;
-extern QString acStock1;
-extern QString acStock2;
-extern QString acDividends;
-extern QString acInterest;
-extern QString acTax;
-extern QString acCash;
+extern TQString acAsset;
+extern TQString acLiability;
+extern TQString acExpense;
+extern TQString acIncome;
+extern TQString acChecking;
+extern TQString acCredit;
+extern TQString acSolo;
+extern TQString acParent;
+extern TQString acChild;
+extern TQString acSecondChild;
+extern TQString acGrandChild1;
+extern TQString acGrandChild2;
+extern TQString acForeign;
+extern TQString acCanChecking;
+extern TQString acJpyChecking;
+extern TQString acCanCash;
+extern TQString acJpyCash;
+extern TQString inBank;
+extern TQString eqStock1;
+extern TQString eqStock2;
+extern TQString acInvestment;
+extern TQString acStock1;
+extern TQString acStock2;
+extern TQString acDividends;
+extern TQString acInterest;
+extern TQString acTax;
+extern TQString acCash;
class TransactionHelper: public MyMoneyTransaction
{
private:
- QString m_id;
+ TQString m_id;
public:
- TransactionHelper( const QDate& _date, const QString& _action, MyMoneyMoney _value, const QString& _accountid, const QString& _categoryid, const QString& _currencyid = QString(), const QString& _payee="Test Payee" );
+ TransactionHelper( const TQDate& _date, const TQString& _action, MyMoneyMoney _value, const TQString& _accountid, const TQString& _categoryid, const TQString& _currencyid = TQString(), const TQString& _payee="Test Payee" );
~TransactionHelper();
void update(void);
protected:
@@ -89,42 +89,42 @@ protected:
class InvTransactionHelper: public TransactionHelper
{
public:
- InvTransactionHelper( const QDate& _date, const QString& _action, MyMoneyMoney _shares, MyMoneyMoney _value, const QString& _stockaccountid, const QString& _transferid, const QString& _categoryid );
- void init( const QDate& _date, const QString& _action, MyMoneyMoney _shares, MyMoneyMoney _value, const QString& _stockaccountid, const QString& _transferid, const QString& _categoryid );
+ InvTransactionHelper( const TQDate& _date, const TQString& _action, MyMoneyMoney _shares, MyMoneyMoney _value, const TQString& _stockaccountid, const TQString& _transferid, const TQString& _categoryid );
+ void init( const TQDate& _date, const TQString& _action, MyMoneyMoney _shares, MyMoneyMoney _value, const TQString& _stockaccountid, const TQString& _transferid, const TQString& _categoryid );
};
class BudgetEntryHelper
{
private:
- QDate m_date;
- QString m_categoryid;
+ TQDate m_date;
+ TQString m_categoryid;
bool m_applytosub;
MyMoneyMoney m_amount;
public:
BudgetEntryHelper( void ): m_applytosub(false) {}
- BudgetEntryHelper( const QDate& _date, const QString& _categoryid, bool _applytosub, const MyMoneyMoney& _amount ): m_date(_date), m_categoryid(_categoryid), m_applytosub(_applytosub), m_amount(_amount) {}
+ BudgetEntryHelper( const TQDate& _date, const TQString& _categoryid, bool _applytosub, const MyMoneyMoney& _amount ): m_date(_date), m_categoryid(_categoryid), m_applytosub(_applytosub), m_amount(_amount) {}
};
-class BudgetHelper: public QValueList<BudgetEntryHelper>
+class BudgetHelper: public TQValueList<BudgetEntryHelper>
{
- MyMoneyMoney budgetAmount( const QDate& _date, const QString& _categoryid, bool& _applytosub );
+ MyMoneyMoney budgetAmount( const TQDate& _date, const TQString& _categoryid, bool& _applytosub );
};
-extern QString makeAccount( const QString& _name, MyMoneyAccount::accountTypeE _type, MyMoneyMoney _balance, const QDate& _open, const QString& _parent, QString _currency="", bool _taxReport = false );
-extern void makePrice(const QString& _currencyid, const QDate& _date, const MyMoneyMoney& _price );
-QString makeEquity(const QString& _name, const QString& _symbol );
-extern void makeEquityPrice(const QString& _id, const QDate& _date, const MyMoneyMoney& _price );
-extern void writeRCFtoXMLDoc( const MyMoneyReport& filter, QDomDocument* doc );
-extern void writeTabletoHTML( const reports::PivotTable& table, const QString& _filename = QString() );
-extern void writeTabletoHTML( const reports::QueryTable& table, const QString& _filename = QString() );
-extern void writeTabletoCSV( const reports::PivotTable& table, const QString& _filename = QString() );
-extern void writeTabletoCSV( const reports::QueryTable& table, const QString& _filename = QString() );
-extern void writeRCFtoXML( const MyMoneyReport& filter, const QString& _filename = QString() );
-extern bool readRCFfromXMLDoc( QValueList<MyMoneyReport>& list, QDomDocument* doc );
-extern bool readRCFfromXML( QValueList<MyMoneyReport>& list, const QString& filename );
+extern TQString makeAccount( const TQString& _name, MyMoneyAccount::accountTypeE _type, MyMoneyMoney _balance, const TQDate& _open, const TQString& _parent, TQString _currency="", bool _taxReport = false );
+extern void makePrice(const TQString& _currencyid, const TQDate& _date, const MyMoneyMoney& _price );
+TQString makeEquity(const TQString& _name, const TQString& _symbol );
+extern void makeEquityPrice(const TQString& _id, const TQDate& _date, const MyMoneyMoney& _price );
+extern void writeRCFtoXMLDoc( const MyMoneyReport& filter, TQDomDocument* doc );
+extern void writeTabletoHTML( const reports::PivotTable& table, const TQString& _filename = TQString() );
+extern void writeTabletoHTML( const reports::QueryTable& table, const TQString& _filename = TQString() );
+extern void writeTabletoCSV( const reports::PivotTable& table, const TQString& _filename = TQString() );
+extern void writeTabletoCSV( const reports::QueryTable& table, const TQString& _filename = TQString() );
+extern void writeRCFtoXML( const MyMoneyReport& filter, const TQString& _filename = TQString() );
+extern bool readRCFfromXMLDoc( TQValueList<MyMoneyReport>& list, TQDomDocument* doc );
+extern bool readRCFfromXML( TQValueList<MyMoneyReport>& list, const TQString& filename );
extern void XMLandback( MyMoneyReport& filter );
-extern MyMoneyMoney searchHTML(const QString& _html, const QString& _search);
+extern MyMoneyMoney searchHTML(const TQString& _html, const TQString& _search);
} // end namespace test