summaryrefslogtreecommitdiffstats
path: root/kresources/kolab
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:50 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:50 -0600
commit9cc13dcbb01a96c9e60a07ca63c61d24b374f50d (patch)
treeab537a329b9613e11dce8195761f93ffe82aed24 /kresources/kolab
parent3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12 (diff)
downloadtdepim-9cc13dcbb01a96c9e60a07ca63c61d24b374f50d.tar.gz
tdepim-9cc13dcbb01a96c9e60a07ca63c61d24b374f50d.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.
Diffstat (limited to 'kresources/kolab')
-rw-r--r--kresources/kolab/kabc/contact.cpp18
-rw-r--r--kresources/kolab/kabc/contact.h4
-rw-r--r--kresources/kolab/kcal/event.cpp16
-rw-r--r--kresources/kolab/kcal/incidence.cpp30
-rw-r--r--kresources/kolab/kcal/incidence.h4
-rw-r--r--kresources/kolab/kcal/resourcekolab.cpp18
-rw-r--r--kresources/kolab/kcal/task.cpp34
-rw-r--r--kresources/kolab/kcal/task.h6
-rw-r--r--kresources/kolab/knotes/note.cpp2
-rw-r--r--kresources/kolab/knotes/resourcekolab.cpp2
-rw-r--r--kresources/kolab/shared/kolabbase.cpp32
-rw-r--r--kresources/kolab/shared/kolabbase.h10
-rw-r--r--kresources/kolab/shared/resourcekolabbase.cpp8
13 files changed, 92 insertions, 92 deletions
diff --git a/kresources/kolab/kabc/contact.cpp b/kresources/kolab/kabc/contact.cpp
index 796099025..7a26f62f7 100644
--- a/kresources/kolab/kabc/contact.cpp
+++ b/kresources/kolab/kabc/contact.cpp
@@ -293,12 +293,12 @@ TQDate Contact::anniversary() const
return mAnniversary;
}
-void Contact::setChildren( const TQString& children )
+void Contact::setChildren( const TQString& tqchildren )
{
- mChildren = children;
+ mChildren = tqchildren;
}
-TQString Contact::children() const
+TQString Contact::tqchildren() const
{
return mChildren;
}
@@ -487,7 +487,7 @@ void Contact::saveCustomAttributes( TQDomElement& element ) const
writeString( element, (*it).name, (*it).value );
} else {
// skip writing the freebusyurl as it is a hack we need to remove eventually
- if ( (*it).name == TQString::fromLatin1( "FreeBusyURL" ) ) {
+ if ( (*it).name == TQString::tqfromLatin1( "FreeBusyURL" ) ) {
continue;
}
@@ -619,7 +619,7 @@ bool Contact::loadAttribute( TQDomElement& element )
}
break;
case 'c':
- if ( tagName == "children" ) {
+ if ( tagName == "tqchildren" ) {
setChildren( element.text() );
return true;
}
@@ -798,7 +798,7 @@ bool Contact::saveAttributes( TQDomElement& element ) const
writeString( element, "x-logo", mLogoAttachmentName );
if ( !sound().isNull() )
writeString( element, "x-sound", mSoundAttachmentName );
- writeString( element, "children", children() );
+ writeString( element, "tqchildren", tqchildren() );
writeString( element, "gender", gender() );
writeString( element, "language", language() );
savePhoneAttributes( element );
@@ -1110,7 +1110,7 @@ void Contact::setFields( const KABC::Addressee* addressee )
// (includes e.g. crypto settings, and extra im addresses)
TQStringList knownCustoms;
for ( const char** p = s_knownCustomFields; *p; ++p )
- knownCustoms << TQString::fromLatin1( *p );
+ knownCustoms << TQString::tqfromLatin1( *p );
TQStringList customs = addressee->customs();
for( TQStringList::Iterator it = customs.begin(); it != customs.end(); ++it ) {
// KABC::Addressee doesn't offer a real way to iterate over customs, other than splitting strings ourselves
@@ -1146,7 +1146,7 @@ void Contact::setFields( const KABC::Addressee* addressee )
// mailer, timezone, productId, sortString, agent, rfc2426 name()
// Things KAddressBook can't handle, so they are saved as unhandled tags:
- // initials, children, gender, language
+ // initials, tqchildren, gender, language
}
// The loading is: xml -> Contact -> addressee, this is the second part
@@ -1253,7 +1253,7 @@ void Contact::saveTo( KABC::Addressee* addressee )
}
for( TQValueList<Custom>::ConstIterator it = mCustomList.begin(); it != mCustomList.end(); ++it ) {
- TQString app = (*it).app.isEmpty() ? TQString::fromLatin1( "KADDRESSBOOK" ) : (*it).app;
+ TQString app = (*it).app.isEmpty() ? TQString::tqfromLatin1( "KADDRESSBOOK" ) : (*it).app;
addressee->insertCustom( app, (*it).name, (*it).value );
}
//kdDebug(5006) << addressee->customs() << endl;
diff --git a/kresources/kolab/kabc/contact.h b/kresources/kolab/kabc/contact.h
index 6e0de80bc..60c399335 100644
--- a/kresources/kolab/kabc/contact.h
+++ b/kresources/kolab/kabc/contact.h
@@ -154,8 +154,8 @@ public:
TQString soundAttachmentName() const { return mSoundAttachmentName; }
TQByteArray sound() const { return mSound; }
- void setChildren( const TQString& children );
- TQString children() const;
+ void setChildren( const TQString& tqchildren );
+ TQString tqchildren() const;
void setGender( const TQString& gender );
TQString gender() const;
diff --git a/kresources/kolab/kcal/event.cpp b/kresources/kolab/kcal/event.cpp
index 5f85cde22..fedeca0c2 100644
--- a/kresources/kolab/kcal/event.cpp
+++ b/kresources/kolab/kcal/event.cpp
@@ -82,18 +82,18 @@ void Event::setEndDate( const TQDateTime& date )
{
mEndDate = date;
mHasEndDate = true;
- if ( mFloatingStatus == AllDay )
+ if ( mFloatingtqStatus == AllDay )
kdDebug() << "ERROR: Time on end date but no time on the event\n";
- mFloatingStatus = HasTime;
+ mFloatingtqStatus = HasTime;
}
void Event::setEndDate( const TQDate& date )
{
mEndDate = date;
mHasEndDate = true;
- if ( mFloatingStatus == HasTime )
+ if ( mFloatingtqStatus == HasTime )
kdDebug() << "ERROR: No time on end date but time on the event\n";
- mFloatingStatus = AllDay;
+ mFloatingtqStatus = AllDay;
}
void Event::setEndDate( const TQString& endDate )
@@ -142,7 +142,7 @@ bool Event::saveAttributes( TQDomElement& element ) const
else
writeString( element, "show-time-as", "busy" );
if ( mHasEndDate ) {
- if ( mFloatingStatus == HasTime )
+ if ( mFloatingtqStatus == HasTime )
writeString( element, "end-date", dateTimeToString( endDate() ) );
else
writeString( element, "end-date", dateToString( endDate().date() ) );
@@ -195,10 +195,10 @@ void Event::setFields( const KCal::Event* event )
if ( event->hasEndDate() || event->hasDuration() ) {
if ( event->doesFloat() ) {
// This is a floating event. Don't timezone move this one
- mFloatingStatus = AllDay;
+ mFloatingtqStatus = AllDay;
setEndDate( event->dtEnd().date() );
} else {
- mFloatingStatus = HasTime;
+ mFloatingtqStatus = HasTime;
setEndDate( localToUTC( event->dtEnd() ) );
}
} else {
@@ -213,7 +213,7 @@ void Event::saveTo( KCal::Event* event )
event->setHasEndDate( mHasEndDate );
if ( mHasEndDate ) {
- if ( mFloatingStatus == AllDay )
+ if ( mFloatingtqStatus == AllDay )
// This is a floating event. Don't timezone move this one
event->setDtEnd( endDate() );
else
diff --git a/kresources/kolab/kcal/incidence.cpp b/kresources/kolab/kcal/incidence.cpp
index 2617da4a1..602321795 100644
--- a/kresources/kolab/kcal/incidence.cpp
+++ b/kresources/kolab/kcal/incidence.cpp
@@ -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 )
@@ -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() ) );
}
@@ -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 );
@@ -1030,7 +1030,7 @@ void Incidence::loadAttachments()
TQString Incidence::productID() const
{
- return TQString( "KOrganizer %1, Kolab resource" ).arg( korgVersion );
+ return TQString( "KOrganizer %1, Kolab resource" ).tqarg( korgVersion );
}
// Unhandled KCal::Incidence fields:
diff --git a/kresources/kolab/kcal/incidence.h b/kresources/kolab/kcal/incidence.h
index 926ec1e4f..e5df23820 100644
--- a/kresources/kolab/kcal/incidence.h
+++ b/kresources/kolab/kcal/incidence.h
@@ -123,7 +123,7 @@ public:
virtual bool saveAttributes( TQDomElement& ) const;
protected:
- enum FloatingStatus { Unset, AllDay, HasTime };
+ enum FloatingtqStatus { Unset, AllDay, HasTime };
// Read all known fields from this ical incidence
void setFields( const KCal::Incidence* );
@@ -150,7 +150,7 @@ protected:
TQString mLocation;
Email mOrganizer;
TQDateTime mStartDate;
- FloatingStatus mFloatingStatus;
+ FloatingtqStatus mFloatingtqStatus;
float mAlarm;
bool mHasAlarm;
Recurrence mRecurrence;
diff --git a/kresources/kolab/kcal/resourcekolab.cpp b/kresources/kolab/kcal/resourcekolab.cpp
index edd94303c..e0ea6d164 100644
--- a/kresources/kolab/kcal/resourcekolab.cpp
+++ b/kresources/kolab/kcal/resourcekolab.cpp
@@ -70,7 +70,7 @@ static const char* incidenceInlineMimeType = "text/calendar";
ResourceKolab::ResourceKolab( const KConfig *config )
: ResourceCalendar( config ), ResourceKolabBase( "ResourceKolab-libkcal" ),
- mCalendar( TQString::fromLatin1("UTC") ), mOpen( false ),mResourceChangedTimer( 0,
+ mCalendar( TQString::tqfromLatin1("UTC") ), mOpen( false ),mResourceChangedTimer( 0,
"mResourceChangedTimer" ), mBatchAddingInProgress( false )
{
if ( !config ) {
@@ -370,7 +370,7 @@ void ResourceKolab::incidenceUpdated( KCal::IncidenceBase* incidencebase )
}
incidencebase->setSyncStatusSilent( KCal::Event::SYNCMOD );
- incidencebase->setLastModified( TQDateTime::currentDateTime() );
+ incidencebase->setLastModified( TQDateTime::tqcurrentDateTime() );
// we should probably update the revision number here,
// or internally in the Event itself when certain things change.
@@ -423,7 +423,7 @@ void ResourceKolab::resolveConflict( KCal::Incidence* inc, const TQString& subre
addedIncidence = inc;
} else if ( result == 0 ) { // take both
addedIncidence = inc;
- addedIncidence->setSummary( i18n("Copy of: %1").arg( addedIncidence->summary() ) );
+ addedIncidence->setSummary( i18n("Copy of: %1").tqarg( addedIncidence->summary() ) );
addedIncidence->setUid( CalFormat::createUniqueId() );
localIncidence = local;
}
@@ -604,24 +604,24 @@ bool ResourceKolab::addIncidence( KCal::Incidence* incidence, const TQString& _s
}
text += "<font></b><br>";
if ( !incidence->summary().isEmpty() )
- text += i18n( "<b>Summary:</b> %1" ).arg( incidence->summary() ) + "<br>";
+ text += i18n( "<b>Summary:</b> %1" ).tqarg( incidence->summary() ) + "<br>";
if ( !incidence->location().isEmpty() )
- text += i18n( "<b>Location:</b> %1" ).arg( incidence->location() );
+ text += i18n( "<b>Location:</b> %1" ).tqarg( incidence->location() );
text += "<br>";
if ( !incidence->doesFloat() )
text += i18n( "<b>Start:</b> %1, %2" )
- .arg( incidence->dtStartDateStr(), incidence->dtStartTimeStr() );
+ .tqarg( incidence->dtStartDateStr(), incidence->dtStartTimeStr() );
else
- text += i18n( "<b>Start:</b> %1" ).arg( incidence->dtStartDateStr() );
+ text += i18n( "<b>Start:</b> %1" ).tqarg( incidence->dtStartDateStr() );
text += "<br>";
if ( incidence->type() == "Event" ) {
Event* event = static_cast<Event*>( incidence );
if ( event->hasEndDate() ) {
if ( !event->doesFloat() ) {
text += i18n( "<b>End:</b> %1, %2" )
- .arg( event->dtEndDateStr(), event->dtEndTimeStr() );
+ .tqarg( event->dtEndDateStr(), event->dtEndTimeStr() );
} else {
- text += i18n( "<b>End:</b> %1" ).arg( event->dtEndDateStr() );
+ text += i18n( "<b>End:</b> %1" ).tqarg( event->dtEndDateStr() );
}
}
text += "<br>";
diff --git a/kresources/kolab/kcal/task.cpp b/kresources/kolab/kcal/task.cpp
index 488daf4af..570bb47bc 100644
--- a/kresources/kolab/kcal/task.cpp
+++ b/kresources/kolab/kcal/task.cpp
@@ -94,7 +94,7 @@ Task::Task( KCal::ResourceKolab *res, const TQString &subResource, TQ_UINT32 ser
const TQString& tz, KCal::Todo* task )
: Incidence( res, subResource, sernum, tz ),
mPriority( 5 ), mPercentCompleted( 0 ),
- mStatus( KCal::Incidence::StatusNone ),
+ mtqStatus( KCal::Incidence::StatusNone ),
mHasStartDate( false ), mHasDueDate( false ),
mHasCompletedDate( false )
{
@@ -126,14 +126,14 @@ int Task::percentCompleted() const
return mPercentCompleted;
}
-void Task::seStatus( KCal::Incidence::Status status )
+void Task::setqStatus( KCal::Incidence::tqStatus status )
{
- mStatus = status;
+ mtqStatus = status;
}
-KCal::Incidence::Status Task::status() const
+KCal::Incidence::tqStatus Task::status() const
{
- return mStatus;
+ return mtqStatus;
}
void Task::setParent( const TQString& parentUid )
@@ -150,14 +150,14 @@ void Task::setDueDate( const TQDateTime& date )
{
mDueDate = date;
mHasDueDate = true;
- mFloatingStatus = HasTime;
+ mFloatingtqStatus = HasTime;
}
void Task::setDueDate( const TQDate &date )
{
mDueDate = date;
mHasDueDate = true;
- mFloatingStatus = AllDay;
+ mFloatingtqStatus = AllDay;
}
@@ -234,17 +234,17 @@ bool Task::loadAttribute( TQDomElement& element )
setPercentCompleted( percent );
} else if ( tagName == "status" ) {
if ( element.text() == "in-progress" )
- seStatus( KCal::Incidence::StatusInProcess );
+ setqStatus( KCal::Incidence::StatusInProcess );
else if ( element.text() == "completed" )
- seStatus( KCal::Incidence::StatusCompleted );
+ setqStatus( KCal::Incidence::StatusCompleted );
else if ( element.text() == "waiting-on-someone-else" )
- seStatus( KCal::Incidence::StatusNeedsAction );
+ setqStatus( KCal::Incidence::StatusNeedsAction );
else if ( element.text() == "deferred" )
// Guessing a status here
- seStatus( KCal::Incidence::StatusCanceled );
+ setqStatus( KCal::Incidence::StatusCanceled );
else
// Default
- seStatus( KCal::Incidence::StatusNone );
+ setqStatus( KCal::Incidence::StatusNone );
} else if ( tagName == "due-date" ) {
setDueDate( element.text() );
} else if ( tagName == "parent" ) {
@@ -300,7 +300,7 @@ bool Task::saveAttributes( TQDomElement& element ) const
}
if ( hasDueDate() ) {
- if ( mFloatingStatus == HasTime ) {
+ if ( mFloatingtqStatus == HasTime ) {
writeString( element, "due-date", dateTimeToString( dueDate() ) );
} else {
writeString( element, "due-date", dateToString( dueDate().date() ) );
@@ -374,17 +374,17 @@ void Task::setFields( const KCal::Todo* task )
setPriority( task->priority() );
setPercentCompleted( task->percentComplete() );
- seStatus( task->status() );
+ setqStatus( task->status() );
setHasStartDate( task->hasStartDate() );
if ( task->hasDueDate() ) {
setDueDate( localToUTC( task->dtDue() ) );
if ( task->doesFloat() ) {
// This is a floating task. Don't timezone move this one
- mFloatingStatus = AllDay;
+ mFloatingtqStatus = AllDay;
setDueDate( task->dtDue().date() );
} else {
- mFloatingStatus = HasTime;
+ mFloatingtqStatus = HasTime;
setDueDate( localToUTC( task->dtDue() ) );
}
} else {
@@ -447,7 +447,7 @@ void Task::saveTo( KCal::Todo* task )
task->setPriority( priority() );
task->setPercentComplete( percentCompleted() );
- task->seStatus( status() );
+ task->setqStatus( status() );
task->setHasStartDate( hasStartDate() );
task->setHasDueDate( hasDueDate() );
if ( hasDueDate() )
diff --git a/kresources/kolab/kcal/task.h b/kresources/kolab/kcal/task.h
index 981c56ab7..43780c00e 100644
--- a/kresources/kolab/kcal/task.h
+++ b/kresources/kolab/kcal/task.h
@@ -77,8 +77,8 @@ public:
virtual void setPercentCompleted( int percent );
virtual int percentCompleted() const;
- virtual void seStatus( KCal::Incidence::Status status );
- virtual KCal::Incidence::Status status() const;
+ virtual void setqStatus( KCal::Incidence::tqStatus status );
+ virtual KCal::Incidence::tqStatus status() const;
virtual void setParent( const TQString& parentUid );
virtual TQString parent() const;
@@ -126,7 +126,7 @@ protected:
int mKCalPriorityFromDom;
int mPercentCompleted;
- KCal::Incidence::Status mStatus;
+ KCal::Incidence::tqStatus mtqStatus;
TQString mParent;
bool mHasStartDate;
diff --git a/kresources/kolab/knotes/note.cpp b/kresources/kolab/knotes/note.cpp
index e456e43be..ea5f6b285 100644
--- a/kresources/kolab/knotes/note.cpp
+++ b/kresources/kolab/knotes/note.cpp
@@ -225,5 +225,5 @@ void Note::saveTo( KCal::Journal* journal )
TQString Note::productID() const
{
- return TQString( "KNotes %1, Kolab resource" ).arg( KNOTES_VERSION );
+ return TQString( "KNotes %1, Kolab resource" ).tqarg( KNOTES_VERSION );
}
diff --git a/kresources/kolab/knotes/resourcekolab.cpp b/kresources/kolab/knotes/resourcekolab.cpp
index b92a723a5..132decdf5 100644
--- a/kresources/kolab/knotes/resourcekolab.cpp
+++ b/kresources/kolab/knotes/resourcekolab.cpp
@@ -52,7 +52,7 @@ static const char* inlineMimeType = "text/calendar";
ResourceKolab::ResourceKolab( const KConfig *config )
: ResourceNotes( config ), ResourceKolabBase( "ResourceKolab-KNotes" ),
- mCalendar( TQString::fromLatin1("UTC") )
+ mCalendar( TQString::tqfromLatin1("UTC") )
{
if ( !config ) {
setResourceName( i18n( "Kolab Server" ) );
diff --git a/kresources/kolab/shared/kolabbase.cpp b/kresources/kolab/shared/kolabbase.cpp
index a0f32529f..09ec2cd6b 100644
--- a/kresources/kolab/shared/kolabbase.cpp
+++ b/kresources/kolab/shared/kolabbase.cpp
@@ -44,10 +44,10 @@ using namespace Kolab;
KolabBase::KolabBase( const TQString& tz )
- : mCreationDate( TQDateTime::currentDateTime() ),
- mLastModified( TQDateTime::currentDateTime() ),
+ : mCreationDate( TQDateTime::tqcurrentDateTime() ),
+ mLastModified( TQDateTime::tqcurrentDateTime() ),
mSensitivity( Public ), mTimeZoneId( tz ),
- mHasPilotSyncId( false ), mHasPilotSyncStatus( false )
+ mHasPilotSyncId( false ), mHasPilotSynctqStatus( false )
{
}
@@ -58,7 +58,7 @@ KolabBase::~KolabBase()
void KolabBase::setFields( const KCal::Incidence* incidence )
{
// So far unhandled KCal::IncidenceBase fields:
- // mPilotID, mSyncStatus, mFloats
+ // mPilotID, mSynctqStatus, mFloats
setUid( incidence->uid() );
setBody( incidence->description() );
@@ -94,7 +94,7 @@ void KolabBase::setFields( const KABC::Addressee* addressee )
kdDebug(5006) << "Creation time string: " << creationString << endl;
TQDateTime creationDate;
if ( creationString.isEmpty() ) {
- creationDate = TQDateTime::currentDateTime();
+ creationDate = TQDateTime::tqcurrentDateTime();
kdDebug(5006) << "Creation date set to current time\n";
}
else {
@@ -103,7 +103,7 @@ void KolabBase::setFields( const KABC::Addressee* addressee )
}
TQDateTime modified = addressee->revision();
if ( !modified.isValid() )
- modified = TQDateTime::currentDateTime();
+ modified = TQDateTime::tqcurrentDateTime();
setLastModified( modified );
if ( modified < creationDate ) {
// It's not possible that the modification date is earlier than creation
@@ -233,20 +233,20 @@ unsigned long KolabBase::pilotSyncId() const
return mPilotSyncId;
}
-void KolabBase::setPilotSyncStatus( int status )
+void KolabBase::setPilotSynctqStatus( int status )
{
- mHasPilotSyncStatus = true;
- mPilotSyncStatus = status;
+ mHasPilotSynctqStatus = true;
+ mPilotSynctqStatus = status;
}
-bool KolabBase::hasPilotSyncStatus() const
+bool KolabBase::hasPilotSynctqStatus() const
{
- return mHasPilotSyncStatus;
+ return mHasPilotSynctqStatus;
}
-int KolabBase::pilotSyncStatus() const
+int KolabBase::pilotSynctqStatus() const
{
- return mPilotSyncStatus;
+ return mPilotSynctqStatus;
}
bool KolabBase::loadEmailAttribute( TQDomElement& element, Email& email )
@@ -335,7 +335,7 @@ bool KolabBase::loadAttribute( TQDomElement& element )
return true;
}
if ( tagName == "pilot-sync-status" ) {
- setPilotSyncStatus( element.text().toInt() );
+ setPilotSynctqStatus( element.text().toInt() );
return true;
}
break;
@@ -357,8 +357,8 @@ bool KolabBase::saveAttributes( TQDomElement& element ) const
writeString( element, "sensitivity", sensitivityToString( sensitivity() ) );
if ( hasPilotSyncId() )
writeString( element, "pilot-sync-id", TQString::number( pilotSyncId() ) );
- if ( hasPilotSyncStatus() )
- writeString( element, "pilot-sync-status", TQString::number( pilotSyncStatus() ) );
+ if ( hasPilotSynctqStatus() )
+ writeString( element, "pilot-sync-status", TQString::number( pilotSynctqStatus() ) );
return true;
}
diff --git a/kresources/kolab/shared/kolabbase.h b/kresources/kolab/shared/kolabbase.h
index 294a7d81b..d4621c722 100644
--- a/kresources/kolab/shared/kolabbase.h
+++ b/kresources/kolab/shared/kolabbase.h
@@ -94,9 +94,9 @@ public:
virtual bool hasPilotSyncId() const;
virtual unsigned long pilotSyncId() const;
- virtual void setPilotSyncStatus( int status );
- virtual bool hasPilotSyncStatus() const;
- virtual int pilotSyncStatus() const;
+ virtual void setPilotSynctqStatus( int status );
+ virtual bool hasPilotSynctqStatus() const;
+ virtual int pilotSynctqStatus() const;
// String - Date conversion methods
static TQString dateTimeToString( const TQDateTime& time );
@@ -167,9 +167,9 @@ protected:
TQString mTimeZoneId;
// KPilot synchronization stuff
- bool mHasPilotSyncId, mHasPilotSyncStatus;
+ bool mHasPilotSyncId, mHasPilotSynctqStatus;
unsigned long mPilotSyncId;
- int mPilotSyncStatus;
+ int mPilotSynctqStatus;
};
}
diff --git a/kresources/kolab/shared/resourcekolabbase.cpp b/kresources/kolab/shared/resourcekolabbase.cpp
index a56383af8..a357b0d62 100644
--- a/kresources/kolab/shared/resourcekolabbase.cpp
+++ b/kresources/kolab/shared/resourcekolabbase.cpp
@@ -42,7 +42,7 @@
#include <kurl.h>
#include <ktempfile.h>
#include <kmessagebox.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <kdebug.h>
using namespace Kolab;
@@ -126,8 +126,8 @@ static TQString plainTextBody()
" Groupware format.\nFor a list of such email clients please"
" visit\n%1" );
const char * url = "http://www.kolab.org/kolab2-clients.html";
- TQString firstPartTextUntranslated = TQString::fromLatin1( firstPartTextToTranslate ).arg( url );
- TQString firstPartText = i18n( firstPartTextToTranslate ).arg( url );
+ TQString firstPartTextUntranslated = TQString::tqfromLatin1( firstPartTextToTranslate ).tqarg( url );
+ TQString firstPartText = i18n( firstPartTextToTranslate ).tqarg( url );
if ( firstPartText != firstPartTextUntranslated ) {
firstPartText.append("\n\n-----------------------------------------------------\n\n");
firstPartText.append( firstPartTextUntranslated );
@@ -190,7 +190,7 @@ bool ResourceKolabBase::kmailUpdate( const TQString& resource,
TQString ResourceKolabBase::configFile( const TQString& type ) const
{
return locateLocal( "config",
- TQString( "kresources/kolab/%1rc" ).arg( type ) );
+ TQString( "kresources/kolab/%1rc" ).tqarg( type ) );
}
bool ResourceKolabBase::connectToKMail() const