summaryrefslogtreecommitdiffstats
path: root/kresources/kolab/kcal/incidence.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kresources/kolab/kcal/incidence.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kresources/kolab/kcal/incidence.cpp')
-rw-r--r--kresources/kolab/kcal/incidence.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kresources/kolab/kcal/incidence.cpp b/kresources/kolab/kcal/incidence.cpp
index 060b9b93f..0d99780a4 100644
--- a/kresources/kolab/kcal/incidence.cpp
+++ b/kresources/kolab/kcal/incidence.cpp
@@ -21,11 +21,11 @@
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.
@@ -51,7 +51,7 @@ using namespace Kolab;
Incidence::Incidence( KCal::ResourceKolab *res, const TQString &subResource, TQ_UINT32 sernum,
const TQString& tz )
- : KolabBase( tz ), mFloatingStatus( Unset ), mHasAlarm( false ),
+ : KolabBase( tz ), mFloatingtqStatus( Unset ), mHasAlarm( false ),
mResource( res ),
mSubResource( subResource ),
mSernum( sernum )
@@ -95,17 +95,17 @@ KolabBase::Email Incidence::organizer() const
void Incidence::setStartDate( const TQDateTime& startDate )
{
mStartDate = startDate;
- if ( mFloatingStatus == AllDay )
+ if ( mFloatingtqStatus == AllDay )
kdDebug() << "ERROR: Time on start date but no time on the event\n";
- mFloatingStatus = HasTime;
+ mFloatingtqStatus = HasTime;
}
void Incidence::setStartDate( const TQDate& startDate )
{
mStartDate = startDate;
- if ( mFloatingStatus == HasTime )
+ if ( mFloatingtqStatus == HasTime )
kdDebug() << "ERROR: No time on start date but time on the event\n";
- mFloatingStatus = AllDay;
+ mFloatingtqStatus = AllDay;
}
void Incidence::setStartDate( const TQString& startDate )
@@ -175,7 +175,7 @@ bool Incidence::loadAttendeeAttribute( TQDomElement& element,
TQString tagName = e.tagName();
if ( tagName == "display-name" ) {
- // Quote the text in case it tqcontains commas or other quotable chars.
+ // Quote the text in case it contains commas or other quotable chars.
TQString tusername = KPIM::quoteNameIfNecessary( e.text() );
TQString tname, temail;
@@ -546,7 +546,7 @@ bool Incidence::saveAttributes( TQDomElement& element ) const
// Save the base class elements
KolabBase::saveAttributes( element );
- if ( mFloatingStatus == HasTime )
+ if ( mFloatingtqStatus == HasTime )
writeString( element, "start-date", dateTimeToString( startDate() ) );
else
writeString( element, "start-date", dateToString( startDate().date() ) );
@@ -595,7 +595,7 @@ void Incidence::loadCustomAttributes( TQDomElement& element )
mCustomList.append( custom );
}
-static KCal::Attendee::PartStat attendeeStringToStatus( const TQString& s )
+static KCal::Attendee::PartStat attendeeStringTotqStatus( const TQString& s )
{
if ( s == "none" )
return KCal::Attendee::NeedsAction;
@@ -771,10 +771,10 @@ void Incidence::setFields( const KCal::Incidence* incidence )
if ( incidence->doesFloat() ) {
// This is a floating event. Don't timezone move this one
- mFloatingStatus = AllDay;
+ mFloatingtqStatus = AllDay;
setStartDate( incidence->dtStart().date() );
} else {
- mFloatingStatus = HasTime;
+ mFloatingtqStatus = HasTime;
setStartDate( localToUTC( incidence->dtStart() ) );
}
@@ -844,7 +844,7 @@ void Incidence::setFields( const KCal::Incidence* incidence )
// Handle the scheduling ID
if ( incidence->schedulingID() == incidence->uid() ) {
// There is no scheduling ID
- setInternalUID( TQString::null );
+ setInternalUID( TQString() );
} else {
// We've internally been using a different uid, so save that as the
// temporary (internal) uid and restore the original uid, the one that
@@ -856,7 +856,7 @@ void Incidence::setFields( const KCal::Incidence* incidence )
if ( incidence->pilotId() != 0 )
setPilotSyncId( incidence->pilotId() );
- setPilotSyncStatus( incidence->syncStatus() );
+ setPilotSynctqStatus( incidence->synctqStatus() );
// Unhandled tags and other custom properties (see libkcal/customproperties.h)
const TQMap<TQCString, TQString> map = incidence->customProperties();
@@ -886,7 +886,7 @@ void Incidence::saveTo( KCal::Incidence* incidence )
{
KolabBase::saveTo( incidence );
- if ( mFloatingStatus == AllDay ) {
+ if ( mFloatingtqStatus == AllDay ) {
// This is a floating event. Don't timezone move this one
incidence->setDtStart( startDate() );
incidence->setFloats( true );
@@ -920,7 +920,7 @@ void Incidence::saveTo( KCal::Incidence* incidence )
incidence->clearAttendees();
TQValueList<Attendee>::ConstIterator it;
for ( it = mAttendees.begin(); it != mAttendees.end(); ++it ) {
- KCal::Attendee::PartStat status = attendeeStringToStatus( (*it).status );
+ KCal::Attendee::PartStat status = attendeeStringTotqStatus( (*it).status );
KCal::Attendee::Role role = attendeeStringToRole( (*it).role );
KCal::Attendee* attendee = new KCal::Attendee( (*it).displayName,
(*it).smtpAddress,
@@ -994,8 +994,8 @@ void Incidence::saveTo( KCal::Incidence* incidence )
}
if ( hasPilotSyncId() )
incidence->setPilotId( pilotSyncId() );
- if ( hasPilotSyncStatus() )
- incidence->setSyncStatus( pilotSyncStatus() );
+ if ( hasPilotSynctqStatus() )
+ incidence->setSynctqStatus( pilotSynctqStatus() );
for( TQValueList<Custom>::ConstIterator it = mCustomList.constBegin(); it != mCustomList.constEnd(); ++it ) {
incidence->setNonKDECustomProperty( (*it).key, (*it).value );