summaryrefslogtreecommitdiffstats
path: root/libkpimexchange/core/utils.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /libkpimexchange/core/utils.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkpimexchange/core/utils.cpp')
-rw-r--r--libkpimexchange/core/utils.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/libkpimexchange/core/utils.cpp b/libkpimexchange/core/utils.cpp
index 1d90cfcca..61847dbdd 100644
--- a/libkpimexchange/core/utils.cpp
+++ b/libkpimexchange/core/utils.cpp
@@ -18,7 +18,7 @@
Boston, MA 02110-1301, USA.
*/
-#include <qdatetime.h>
+#include <tqdatetime.h>
extern "C" {
#include <ical.h>
@@ -28,9 +28,9 @@ extern "C" {
/** In a document doc with node node, add an element with name ns and tagname tag. Return the new element
*/
-QDomElement addElement( QDomDocument& doc, QDomNode& node, const QString& ns, const QString& tag )
+TQDomElement addElement( TQDomDocument& doc, TQDomNode& node, const TQString& ns, const TQString& tag )
{
- QDomElement el = doc.createElementNS( ns, tag );
+ TQDomElement el = doc.createElementNS( ns, tag );
node.appendChild( el );
return el;
}
@@ -39,10 +39,10 @@ QDomElement addElement( QDomDocument& doc, QDomNode& node, const QString& ns, co
In a document doc with node node, add an element with namespace ns and tagname tag. Add a textnode in
the element with text contents text. Return the new element.
*/
-QDomElement addElement( QDomDocument& doc, QDomNode& node, const QString& ns, const QString& tag, const QString& text )
+TQDomElement addElement( TQDomDocument& doc, TQDomNode& node, const TQString& ns, const TQString& tag, const TQString& text )
{
- QDomElement el = doc.createElementNS( ns, tag );
- QDomText textnode = doc.createTextNode( text );
+ TQDomElement el = doc.createElementNS( ns, tag );
+ TQDomText textnode = doc.createTextNode( text );
el.appendChild( textnode );
node.appendChild( el );
return el;
@@ -50,10 +50,10 @@ QDomElement addElement( QDomDocument& doc, QDomNode& node, const QString& ns, co
//TODO: should not call libical functions directly -- better to make
// a new libkcal abstraction method.
-QDateTime utcAsZone( const QDateTime& utc, const QString& timeZoneId )
+TQDateTime utcAsZone( const TQDateTime& utc, const TQString& timeZoneId )
{
int daylight;
- QDateTime epoch;
+ TQDateTime epoch;
epoch.setTime_t( 0 );
time_t v = epoch.secsTo( utc );
struct icaltimetype tt = icaltime_from_timet( v, 0 ); // 0: is_date=false
@@ -66,10 +66,10 @@ QDateTime utcAsZone( const QDateTime& utc, const QString& timeZoneId )
//TODO: should not call libical functions directly -- better to make
// a new libkcal abstraction method.
-QDateTime zoneAsUtc( const QDateTime& zone, const QString& timeZoneId )
+TQDateTime zoneAsUtc( const TQDateTime& zone, const TQString& timeZoneId )
{
int daylight;
- QDateTime epoch;
+ TQDateTime epoch;
epoch.setTime_t( 0 );
time_t v = epoch.secsTo( zone );
struct icaltimetype tt = icaltime_from_timet( v, 0 ); // 0: is_date=false