From f4fae92b6768541e2952173c3d4b09040f95bf7e Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 16 Feb 2011 20:17:18 +0000 Subject: Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkcal/vcalformat.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'libkcal/vcalformat.cpp') diff --git a/libkcal/vcalformat.cpp b/libkcal/vcalformat.cpp index 3e9e613b3..21d8ae4b5 100644 --- a/libkcal/vcalformat.cpp +++ b/libkcal/vcalformat.cpp @@ -356,7 +356,7 @@ VObject *VCalFormat::eventToVTodo(const Todo *anEvent) tmpStr.sprintf("%lu",anEvent->pilotId()); addPropValue(vtodo, KPilotIdProp, tmpStr.local8Bit()); tmpStr.sprintf("%i",anEvent->syncStatus()); - addPropValue(vtodo, KPilotStatusProp, tmpStr.local8Bit()); + addPropValue(vtodo, KPiloStatusProp, tmpStr.local8Bit()); } return vtodo; @@ -642,7 +642,7 @@ VObject* VCalFormat::eventToVEvent(const Event *anEvent) tmpStr.sprintf("%lu",anEvent->pilotId()); addPropValue(vevent, KPilotIdProp, tmpStr.local8Bit()); tmpStr.sprintf("%i",anEvent->syncStatus()); - addPropValue(vevent, KPilotStatusProp, tmpStr.local8Bit()); + addPropValue(vevent, KPiloStatusProp, tmpStr.local8Bit()); } return vevent; @@ -677,7 +677,7 @@ Todo *VCalFormat::VTodoToEvent(VObject *vtodo) deleteStr(s); } else - anEvent->setLastModified(TQDateTime(TQDate::currentDate(), + anEvent->setLastModified(TQDateTime(TQDate::tqcurrentDate(), TQTime::currentTime())); // organizer @@ -713,7 +713,7 @@ Todo *VCalFormat::VTodoToEvent(VObject *vtodo) } else { // just a name // WTF??? Replacing the spaces of a name and using this as email? - TQString email = tmpStr.replace( ' ', '.' ); + TQString email = tmpStr.tqreplace( ' ', '.' ); a = new Attendee(tmpStr,email); } @@ -722,7 +722,7 @@ Todo *VCalFormat::VTodoToEvent(VObject *vtodo) a->setRSVP(vObjectStringZValue(vp)); // is there a status property? if ((vp = isAPropertyOf(vo, VCStatusProp)) != 0) - a->setStatus(readStatus(vObjectStringZValue(vp))); + a->seStatus(readStatus(vObjectStringZValue(vp))); // add the attendee anEvent->addAttendee(a); } @@ -844,7 +844,7 @@ Todo *VCalFormat::VTodoToEvent(VObject *vtodo) else anEvent->setPilotId(0); - if ((vo = isAPropertyOf(vtodo, KPilotStatusProp))) { + if ((vo = isAPropertyOf(vtodo, KPiloStatusProp))) { anEvent->setSyncStatus(atoi(s = fakeCString(vObjectUStringZValue(vo)))); deleteStr(s); } @@ -892,7 +892,7 @@ Event* VCalFormat::VEventToEvent(VObject *vevent) deleteStr(s); } else - anEvent->setLastModified(TQDateTime(TQDate::currentDate(), + anEvent->setLastModified(TQDateTime(TQDate::tqcurrentDate(), TQTime::currentTime())); // organizer @@ -928,7 +928,7 @@ Event* VCalFormat::VEventToEvent(VObject *vevent) a = new Attendee(0, tmpStr); } else { // just a name - TQString email = tmpStr.replace( ' ', '.' ); + TQString email = tmpStr.tqreplace( ' ', '.' ); a = new Attendee(tmpStr,email); } @@ -937,7 +937,7 @@ Event* VCalFormat::VEventToEvent(VObject *vevent) a->setRSVP(vObjectStringZValue(vp)); // is there a status property? if ((vp = isAPropertyOf(vo, VCStatusProp)) != 0) - a->setStatus(readStatus(vObjectStringZValue(vp))); + a->seStatus(readStatus(vObjectStringZValue(vp))); // add the attendee anEvent->addAttendee(a); } @@ -1210,10 +1210,10 @@ Event* VCalFormat::VEventToEvent(VObject *vevent) TQString tmpStr(s = fakeCString(vObjectUStringZValue(vo))); deleteStr(s); // TODO: Define Event status -// anEvent->setStatus(tmpStr); +// anEvent->seStatus(tmpStr); } else -// anEvent->setStatus("NEEDS ACTION"); +// anEvent->seStatus("NEEDS ACTION"); #endif // secrecy @@ -1310,7 +1310,7 @@ Event* VCalFormat::VEventToEvent(VObject *vevent) else anEvent->setPilotId(0); - if ((vo = isAPropertyOf(vevent, KPilotStatusProp))) { + if ((vo = isAPropertyOf(vevent, KPiloStatusProp))) { anEvent->setSyncStatus(atoi(s = fakeCString(vObjectUStringZValue(vo)))); deleteStr(s); } @@ -1473,7 +1473,7 @@ void VCalFormat::populate(VObject *vcal) // now, check to see that the object is an event or todo. if (strcmp(vObjectName(curVO), VCEventProp) == 0) { - if ((curVOProp = isAPropertyOf(curVO, KPilotStatusProp)) != 0) { + if ((curVOProp = isAPropertyOf(curVO, KPiloStatusProp)) != 0) { char *s; s = fakeCString(vObjectUStringZValue(curVOProp)); // check to see if event was deleted by the kpilot conduit -- cgit v1.2.1