diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kresources/kolab/kcal/journal.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-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 'kresources/kolab/kcal/journal.cpp')
-rw-r--r-- | kresources/kolab/kcal/journal.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/kresources/kolab/kcal/journal.cpp b/kresources/kolab/kcal/journal.cpp index 45b91587d..462cfe3ca 100644 --- a/kresources/kolab/kcal/journal.cpp +++ b/kresources/kolab/kcal/journal.cpp @@ -40,7 +40,7 @@ using namespace Kolab; -KCal::Journal* Journal::xmlToJournal( const QString& xml, const QString& tz ) +KCal::Journal* Journal::xmlToJournal( const TQString& xml, const TQString& tz ) { Journal journal( tz ); journal.load( xml ); @@ -49,13 +49,13 @@ KCal::Journal* Journal::xmlToJournal( const QString& xml, const QString& tz ) return kcalJournal; } -QString Journal::journalToXML( KCal::Journal* kcalJournal, const QString& tz ) +TQString Journal::journalToXML( KCal::Journal* kcalJournal, const TQString& tz ) { Journal journal( tz, kcalJournal ); return journal.saveXML(); } -Journal::Journal( const QString& tz, KCal::Journal* journal ) +Journal::Journal( const TQString& tz, KCal::Journal* journal ) : KolabBase( tz ) { if ( journal ) @@ -66,39 +66,39 @@ Journal::~Journal() { } -void Journal::setSummary( const QString& summary ) +void Journal::setSummary( const TQString& summary ) { mSummary = summary; } -QString Journal::summary() const +TQString Journal::summary() const { return mSummary; } -void Journal::setStartDate( const QDateTime& startDate ) +void Journal::setStartDate( const TQDateTime& startDate ) { mStartDate = startDate; } -QDateTime Journal::startDate() const +TQDateTime Journal::startDate() const { return mStartDate; } -void Journal::setEndDate( const QDateTime& endDate ) +void Journal::setEndDate( const TQDateTime& endDate ) { mEndDate = endDate; } -QDateTime Journal::endDate() const +TQDateTime Journal::endDate() const { return mEndDate; } -bool Journal::loadAttribute( QDomElement& element ) +bool Journal::loadAttribute( TQDomElement& element ) { - QString tagName = element.tagName(); + TQString tagName = element.tagName(); if ( tagName == "summary" ) setSummary( element.text() ); @@ -112,7 +112,7 @@ bool Journal::loadAttribute( QDomElement& element ) return true; } -bool Journal::saveAttributes( QDomElement& element ) const +bool Journal::saveAttributes( TQDomElement& element ) const { // Save the base class elements KolabBase::saveAttributes( element ); @@ -124,9 +124,9 @@ bool Journal::saveAttributes( QDomElement& element ) const } -bool Journal::loadXML( const QDomDocument& document ) +bool Journal::loadXML( const TQDomDocument& document ) { - QDomElement top = document.documentElement(); + TQDomElement top = document.documentElement(); if ( top.tagName() != "journal" ) { qWarning( "XML error: Top tag was %s instead of the expected Journal", @@ -134,11 +134,11 @@ bool Journal::loadXML( const QDomDocument& document ) return false; } - for ( QDomNode n = top.firstChild(); !n.isNull(); n = n.nextSibling() ) { + for ( TQDomNode n = top.firstChild(); !n.isNull(); n = n.nextSibling() ) { if ( n.isComment() ) continue; if ( n.isElement() ) { - QDomElement e = n.toElement(); + TQDomElement e = n.toElement(); if ( !loadAttribute( e ) ) { // Unhandled tag - save for later storage //qDebug( "Unhandled tag: %s", e.toCString().data() ); @@ -150,10 +150,10 @@ bool Journal::loadXML( const QDomDocument& document ) return true; } -QString Journal::saveXML() const +TQString Journal::saveXML() const { - QDomDocument document = domTree(); - QDomElement element = document.createElement( "journal" ); + TQDomDocument document = domTree(); + TQDomElement element = document.createElement( "journal" ); element.setAttribute( "version", "1.0" ); saveAttributes( element ); document.appendChild( element ); @@ -178,7 +178,7 @@ void Journal::setFields( const KCal::Journal* journal ) setStartDate( localToUTC( journal->dtStart() ) ); } -QString Journal::productID() const +TQString Journal::productID() const { - return QString( "KOrganizer " ) + korgVersion + ", Kolab resource"; + return TQString( "KOrganizer " ) + korgVersion + ", Kolab resource"; } |