summaryrefslogtreecommitdiffstats
path: root/kradio3/src/errorlog-interfaces.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 03:43:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 03:43:07 +0000
commit70b9eea2ba01c3691497f49e4c45cb070c16193c (patch)
tree9a6df61aa247a27275aad9c5245e419e89c2c640 /kradio3/src/errorlog-interfaces.cpp
parent998c1384ace4ae4655997c181fa33242148cd0a4 (diff)
downloadtderadio-70b9eea2ba01c3691497f49e4c45cb070c16193c.tar.gz
tderadio-70b9eea2ba01c3691497f49e4c45cb070c16193c.zip
TQt4 port kradio
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kradio@1238952 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kradio3/src/errorlog-interfaces.cpp')
-rw-r--r--kradio3/src/errorlog-interfaces.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/kradio3/src/errorlog-interfaces.cpp b/kradio3/src/errorlog-interfaces.cpp
index 025c0be..65e2e43 100644
--- a/kradio3/src/errorlog-interfaces.cpp
+++ b/kradio3/src/errorlog-interfaces.cpp
@@ -19,7 +19,7 @@
#include <kdebug.h>
#include <klocale.h>
-#include <qdatetime.h>
+#include <tqdatetime.h>
IErrorLog *staticLogger = NULL;
@@ -38,73 +38,73 @@ IErrorLog::~IErrorLog()
}
-int IErrorLogClient::sendLogError(const QString &s) const
+int IErrorLogClient::sendLogError(const TQString &s) const
{
- kdDebug() << QString(i18n("%1 Error: %2\n"))
- .arg(QDateTime::currentDateTime().toString(Qt::ISODate))
- .arg(s);
+ kdDebug() << TQString(i18n("%1 Error: %2\n"))
+ .tqarg(TQDateTime::tqcurrentDateTime().toString(Qt::ISODate))
+ .tqarg(s);
IF_SEND_MESSAGE(logError(s));
}
-int IErrorLogClient::sendLogWarning(const QString &s) const
+int IErrorLogClient::sendLogWarning(const TQString &s) const
{
- kdDebug() << QString(i18n("%1 Warning: %2\n"))
- .arg(QDateTime::currentDateTime().toString(Qt::ISODate))
- .arg(s);
+ kdDebug() << TQString(i18n("%1 Warning: %2\n"))
+ .tqarg(TQDateTime::tqcurrentDateTime().toString(Qt::ISODate))
+ .tqarg(s);
IF_SEND_MESSAGE(logWarning(s));
}
-int IErrorLogClient::sendLogInfo(const QString &s) const
+int IErrorLogClient::sendLogInfo(const TQString &s) const
{
- kdDebug() << QString(i18n("%1 Information: %2\n"))
- .arg(QDateTime::currentDateTime().toString(Qt::ISODate))
- .arg(s);
+ kdDebug() << TQString(i18n("%1 Information: %2\n"))
+ .tqarg(TQDateTime::tqcurrentDateTime().toString(Qt::ISODate))
+ .tqarg(s);
IF_SEND_MESSAGE(logInfo(s));
}
-int IErrorLogClient::sendLogDebug(const QString &s) const
+int IErrorLogClient::sendLogDebug(const TQString &s) const
{
- kdDebug() << QString(i18n("%1 Debug: %2\n"))
- .arg(QDateTime::currentDateTime().toString(Qt::ISODate))
- .arg(s);
+ kdDebug() << TQString(i18n("%1 Debug: %2\n"))
+ .tqarg(TQDateTime::tqcurrentDateTime().toString(Qt::ISODate))
+ .tqarg(s);
IF_SEND_MESSAGE(logDebug(s));
}
-void IErrorLogClient::staticLogError (const QString &s)
+void IErrorLogClient::staticLogError (const TQString &s)
{
- kdDebug() << QString(i18n("%1 Error: %2\n"))
- .arg(QDateTime::currentDateTime().toString(Qt::ISODate))
- .arg(s);
+ kdDebug() << TQString(i18n("%1 Error: %2\n"))
+ .tqarg(TQDateTime::tqcurrentDateTime().toString(Qt::ISODate))
+ .tqarg(s);
if (staticLogger)
staticLogger->logError(s);
}
-void IErrorLogClient::staticLogWarning(const QString &s)
+void IErrorLogClient::staticLogWarning(const TQString &s)
{
- kdDebug() << QString(i18n("%1 Warning: %2\n"))
- .arg(QDateTime::currentDateTime().toString(Qt::ISODate))
- .arg(s);
+ kdDebug() << TQString(i18n("%1 Warning: %2\n"))
+ .tqarg(TQDateTime::tqcurrentDateTime().toString(Qt::ISODate))
+ .tqarg(s);
if (staticLogger)
staticLogger->logWarning(s);
}
-void IErrorLogClient::staticLogInfo (const QString &s)
+void IErrorLogClient::staticLogInfo (const TQString &s)
{
- kdDebug() << QString(i18n("%1 Information: %2\n"))
- .arg(QDateTime::currentDateTime().toString(Qt::ISODate))
- .arg(s);
+ kdDebug() << TQString(i18n("%1 Information: %2\n"))
+ .tqarg(TQDateTime::tqcurrentDateTime().toString(Qt::ISODate))
+ .tqarg(s);
if (staticLogger)
staticLogger->logInfo(s);
}
-void IErrorLogClient::staticLogDebug (const QString &s)
+void IErrorLogClient::staticLogDebug (const TQString &s)
{
- kdDebug() << QString(i18n("%1 Debug: %2\n"))
- .arg(QDateTime::currentDateTime().toString(Qt::ISODate))
- .arg(s);
+ kdDebug() << TQString(i18n("%1 Debug: %2\n"))
+ .tqarg(TQDateTime::tqcurrentDateTime().toString(Qt::ISODate))
+ .tqarg(s);
if (staticLogger)
staticLogger->logDebug(s);
}