summaryrefslogtreecommitdiffstats
path: root/kmymoney2/converter/mymoneyqifprofile.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/mymoneyqifprofile.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/mymoneyqifprofile.h')
-rw-r--r--kmymoney2/converter/mymoneyqifprofile.h123
1 files changed, 62 insertions, 61 deletions
diff --git a/kmymoney2/converter/mymoneyqifprofile.h b/kmymoney2/converter/mymoneyqifprofile.h
index bd6b328..5df8c41 100644
--- a/kmymoney2/converter/mymoneyqifprofile.h
+++ b/kmymoney2/converter/mymoneyqifprofile.h
@@ -15,15 +15,15 @@
* *
***************************************************************************/
-#ifndef MYMONEYQIFPROFILE_H
-#define MYMONEYQIFPROFILE_H
+#ifndef MYMONEYTQIFPROFILE_H
+#define MYMONEYTQIFPROFILE_H
// ----------------------------------------------------------------------------
// QT Includes
-#include <qobject.h>
-#include <qstring.h>
-class QDate;
+#include <tqobject.h>
+#include <tqstring.h>
+class TQDate;
// ----------------------------------------------------------------------------
// KDE Includes
@@ -37,47 +37,48 @@ class MyMoneyMoney;
* @author Thomas Baumgart
*/
-class MyMoneyQifProfile : public QObject
+class MyMoneyQifProfile : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
MyMoneyQifProfile();
- MyMoneyQifProfile(const QString& name);
+ MyMoneyQifProfile(const TQString& name);
~MyMoneyQifProfile();
- const QString& profileName(void) const { return m_profileName; }
- void setProfileName(const QString& name);
+ const TQString& profileName(void) const { return m_profileName; }
+ void setProfileName(const TQString& name);
- void loadProfile(const QString& name);
+ void loadProfile(const TQString& name);
void saveProfile(void);
- const QDate date(const QString& datein) const;
- QString date(const QDate& datein) const;
-
- MyMoneyMoney value(const QChar& def, const QString& valuein) const;
- QString value(const QChar& def, const MyMoneyMoney& valuein) const;
-
- const QString& outputDateFormat(void) const { return m_dateFormat; }
- QString inputDateFormat(void) const;
- const QString& apostropheFormat(void) const { return m_apostropheFormat; }
- QChar amountDecimal(const QChar& def) const;
- QChar amountThousands(const QChar& def) const;
- const QString& profileDescription(void) const { return m_profileDescription; }
- const QString& profileType(void) const { return m_profileType; }
- const QString& openingBalanceText(void) const { return m_openingBalanceText; }
- QString accountDelimiter(void) const;
- const QString& voidMark(void) const { return m_voidMark; }
- const QString& filterScriptImport(void) const { return m_filterScriptImport; }
- const QString& filterScriptExport(void) const { return m_filterScriptExport; }
- const QString& filterFileType(void) const { return m_filterFileType; }
+ const TQDate date(const TQString& datein) const;
+ TQString date(const TQDate& datein) const;
+
+ MyMoneyMoney value(const TQChar& def, const TQString& valuein) const;
+ TQString value(const TQChar& def, const MyMoneyMoney& valuein) const;
+
+ const TQString& outputDateFormat(void) const { return m_dateFormat; }
+ TQString inputDateFormat(void) const;
+ const TQString& apostropheFormat(void) const { return m_apostropheFormat; }
+ TQChar amountDecimal(const TQChar& def) const;
+ TQChar amountThousands(const TQChar& def) const;
+ const TQString& profileDescription(void) const { return m_profileDescription; }
+ const TQString& profileType(void) const { return m_profileType; }
+ const TQString& openingBalanceText(void) const { return m_openingBalanceText; }
+ TQString accountDelimiter(void) const;
+ const TQString& voidMark(void) const { return m_voidMark; }
+ const TQString& filterScriptImport(void) const { return m_filterScriptImport; }
+ const TQString& filterScriptExport(void) const { return m_filterScriptExport; }
+ const TQString& filterFileType(void) const { return m_filterFileType; }
bool attemptMatchDuplicates(void) const { return m_attemptMatchDuplicates; }
/**
* This method scans all strings contained in @a lines and tries to figure
* out the settings for m_decimal, m_thousands and m_dateFormat
*/
- void autoDetect(const QStringList& lines);
+ void autoDetect(const TQStringList& lines);
/**
* This method returns a list of possible date formats the user
@@ -85,7 +86,7 @@ public:
* contains all possible date formats, in the other case, the @a list
* is adjusted to those that will match the data scanned.
*/
- void possibleDateFormats(QStringList& list) const;
+ void possibleDateFormats(TQStringList& list) const;
/**
* This method presets the member variables with the default values.
@@ -98,25 +99,25 @@ public:
bool isDirty(void) const { return m_isDirty; };
public slots:
- void setProfileDescription(const QString& desc);
- void setProfileType(const QString& type);
- void setOutputDateFormat(const QString& dateFormat);
- void setInputDateFormat(const QString& dateFormat);
- void setApostropheFormat(const QString& apostropheFormat);
- void setAmountDecimal(const QChar& def, const QChar& chr);
- void setAmountThousands(const QChar& def, const QChar& chr);
- void setAccountDelimiter(const QString& delim);
- void setOpeningBalanceText(const QString& text);
- void setVoidMark(const QString& txt);
- void setFilterScriptImport(const QString& txt);
- void setFilterScriptExport(const QString& txt);
- void setFilterFileType(const QString& txt);
+ void setProfileDescription(const TQString& desc);
+ void setProfileType(const TQString& type);
+ void setOutputDateFormat(const TQString& dateFormat);
+ void setInputDateFormat(const TQString& dateFormat);
+ void setApostropheFormat(const TQString& apostropheFormat);
+ void setAmountDecimal(const TQChar& def, const TQChar& chr);
+ void setAmountThousands(const TQChar& def, const TQChar& chr);
+ void setAccountDelimiter(const TQString& delim);
+ void setOpeningBalanceText(const TQString& text);
+ void setVoidMark(const TQString& txt);
+ void setFilterScriptImport(const TQString& txt);
+ void setFilterScriptExport(const TQString& txt);
+ void setFilterFileType(const TQString& txt);
void setAttemptMatchDuplicates(bool);
private:
- QString twoDigitYear(const QChar delim, int yr) const;
- void scanNumeric(const QString& txt, QChar& decimal, QChar& thousands) const;
- void scanDate(const QString& txt) const;
+ TQString twoDigitYear(const TQChar delim, int yr) const;
+ void scanNumeric(const TQString& txt, TQChar& decimal, TQChar& thousands) const;
+ void scanDate(const TQString& txt) const;
private:
/// \internal d-pointer class.
@@ -124,20 +125,20 @@ private:
/// \internal d-pointer instance.
Private* const d;
bool m_isDirty;
- QString m_profileName;
- QString m_profileDescription;
- QString m_dateFormat;
- QString m_apostropheFormat;
- QString m_valueMode;
- QString m_profileType;
- QString m_openingBalanceText;
- QString m_voidMark;
- QString m_accountDelimiter;
- QString m_filterScriptImport;
- QString m_filterScriptExport;
- QString m_filterFileType; /*< The kind of input files the filter will expect, e.g. "*.qif" */
- QMap<QChar, QChar> m_decimal;
- QMap<QChar, QChar> m_thousands;
+ TQString m_profileName;
+ TQString m_profileDescription;
+ TQString m_dateFormat;
+ TQString m_apostropheFormat;
+ TQString m_valueMode;
+ TQString m_profileType;
+ TQString m_openingBalanceText;
+ TQString m_voidMark;
+ TQString m_accountDelimiter;
+ TQString m_filterScriptImport;
+ TQString m_filterScriptExport;
+ TQString m_filterFileType; /*< The kind of input files the filter will expect, e.g. "*.qif" */
+ TQMap<TQChar, TQChar> m_decimal;
+ TQMap<TQChar, TQChar> m_thousands;
bool m_attemptMatchDuplicates;
};