summaryrefslogtreecommitdiffstats
path: root/kmymoney2/converter/mymoneyqifwriter.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/converter/mymoneyqifwriter.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/converter/mymoneyqifwriter.h')
-rw-r--r--kmymoney2/converter/mymoneyqifwriter.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/kmymoney2/converter/mymoneyqifwriter.h b/kmymoney2/converter/mymoneyqifwriter.h
index f77e612..1398161 100644
--- a/kmymoney2/converter/mymoneyqifwriter.h
+++ b/kmymoney2/converter/mymoneyqifwriter.h
@@ -20,14 +20,14 @@
* *
***************************************************************************/
-#ifndef MYMONEYQIFWRITER_H
-#define MYMONEYQIFWRITER_H
+#ifndef MYMONEYTQIFWRITER_H
+#define MYMONEYTQIFWRITER_H
// ----------------------------------------------------------------------------
// QT Headers
-#include <qobject.h>
-#include <qdatetime.h>
+#include <tqobject.h>
+#include <tqdatetime.h>
// ----------------------------------------------------------------------------
// KDE Headers
@@ -44,14 +44,15 @@ class MyMoneySplit;
*/
/**
- * This class represents the QIF writer. All conversion between the
+ * This class represents the TQIF writer. All conversion between the
* internal representation of accounts, transactions is handled in this
* object. The conversion is controlled using a MyMoneyQifProfile to allow
* the user to control the conversion.
*/
-class MyMoneyQifWriter : public QObject
+class MyMoneyQifWriter : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
MyMoneyQifWriter();
@@ -70,10 +71,10 @@ public:
* @param startDate Transations before this date will not be exported
* @param endDate Transactions after this date will not be exported
*/
- void write(const QString& filename, const QString& profile,
- const QString& accountId, const bool accountData,
+ void write(const TQString& filename, const TQString& profile,
+ const TQString& accountId, const bool accountData,
const bool categoryData,
- const QDate& startDate, const QDate& endDate);
+ const TQDate& startDate, const TQDate& endDate);
private:
/**
@@ -87,7 +88,7 @@ private:
* @param startDate date from which entries are written
* @param endDate date until which entries are written
*/
- void writeAccountEntry(QTextStream& s, const QString& accountId, const QDate& startDate, const QDate& endDate);
+ void writeAccountEntry(TQTextStream& s, const TQString& accountId, const TQDate& startDate, const TQDate& endDate);
/**
* This method writes the category entries to the stream
@@ -96,7 +97,7 @@ private:
*
* @param s reference to textstream
*/
- void writeCategoryEntries(QTextStream& s);
+ void writeCategoryEntries(TQTextStream& s);
/**
* This method writes the category entry for account with
@@ -107,10 +108,10 @@ private:
* @param accountId id of the account to be written
* @param leadIn constant text that will be prepended to the account's name
*/
- void writeCategoryEntry(QTextStream& s, const QString& accountId, const QString& leadIn);
+ void writeCategoryEntry(TQTextStream& s, const TQString& accountId, const TQString& leadIn);
- void writeTransactionEntry(QTextStream &s, const MyMoneyTransaction& t, const QString& accountId);
- void writeSplitEntry(QTextStream &s, const MyMoneySplit& t);
+ void writeTransactionEntry(TQTextStream &s, const MyMoneyTransaction& t, const TQString& accountId);
+ void writeSplitEntry(TQTextStream &s, const MyMoneySplit& t);
signals:
/**