summaryrefslogtreecommitdiffstats
path: root/libkpimexchange/core/utils.cpp
diff options
context:
space:
mode:
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