diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,7 +23,7 @@ include(KPIMGrantleeMacros) set(CALENDARUTILS_LIB_VERSION ${PIM_VERSION}) -set(CALENDARCORE_LIB_VERSION "5.11.40") +set(CALENDARCORE_LIB_VERSION "5.11.42") set(IDENTITYMANAGER_LIB_VERSION "5.11.40") ecm_setup_version(PROJECT VARIABLE_PREFIX KCALUTILS VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kcalutils_version.h" diff --git a/src/htmlexport.cpp b/src/htmlexport.cpp --- a/src/htmlexport.cpp +++ b/src/htmlexport.cpp @@ -623,7 +623,7 @@ Attendee::List attendees = incidence->attendees(); if (attendees.count()) { *ts << ""; - *ts << incidence->organizer()->fullName(); + *ts << incidence->organizer().fullName(); *ts << "
"; Attendee::List::ConstIterator it; const Attendee::List::ConstIterator end(attendees.constEnd()); diff --git a/src/incidenceformatter.cpp b/src/incidenceformatter.cpp --- a/src/incidenceformatter.cpp +++ b/src/incidenceformatter.cpp @@ -140,7 +140,7 @@ return false; } - return thatIsMe(incidence->organizer()->email()); + return thatIsMe(incidence->organizer().email()); } static bool senderIsOrganizer(const Incidence::Ptr &incidence, const QString &sender) @@ -155,8 +155,8 @@ QString senderName, senderEmail; if (KEmailAddress::extractEmailAddressAndName(sender, senderEmail, senderName)) { // for this heuristic, we say the sender is the organizer if either the name or the email match. - if (incidence->organizer()->email() != senderEmail - && incidence->organizer()->name() != senderName) { + if (incidence->organizer().email() != senderEmail + && incidence->organizer().name() != senderName) { isorg = false; } } @@ -166,7 +166,7 @@ static bool attendeeIsOrganizer(const Incidence::Ptr &incidence, const Attendee::Ptr &attendee) { if (incidence && attendee - && (incidence->organizer()->email() == attendee->email())) { + && (incidence->organizer().email() == attendee->email())) { return true; } else { return false; @@ -184,9 +184,9 @@ QString name; if (incidence) { - name = incidence->organizer()->name(); + name = incidence->organizer().name(); if (name.isEmpty()) { - name = incidence->organizer()->email(); + name = incidence->organizer().email(); } } if (name.isEmpty()) { @@ -353,10 +353,10 @@ if (attendeeCount > 1 || (attendeeCount == 1 && !attendeeIsOrganizer(incidence, incidence->attendees().at(0)))) { - QPair s = searchNameAndUid(incidence->organizer()->email(), - incidence->organizer()->name(), + QPair s = searchNameAndUid(incidence->organizer().email(), + incidence->organizer().name(), QString()); - return displayViewFormatPerson(incidence->organizer()->email(), s.first, s.second, + return displayViewFormatPerson(incidence->organizer().email(), s.first, s.second, QStringLiteral("meeting-organizer")); } @@ -407,8 +407,8 @@ const QString uid_1 = event->customProperty("KABC", "UID-1"); const QString name_1 = event->customProperty("KABC", "NAME-1"); const QString email_1 = event->customProperty("KABC", "EMAIL-1"); - const KCalCore::Person::Ptr p = Person::fromFullName(email_1); - return displayViewFormatPerson(p->email(), name_1, uid_1, QString()); + const KCalCore::Person p = Person::fromFullName(email_1); + return displayViewFormatPerson(p.email(), name_1, uid_1, QString()); } static QVariantHash incidenceTemplateHeader(const Incidence::Ptr &incidence) @@ -607,7 +607,7 @@ } QVariantHash fbData; - fbData[QStringLiteral("organizer")] = fb->organizer()->fullName(); + fbData[QStringLiteral("organizer")] = fb->organizer().fullName(); fbData[QStringLiteral("start")] = fb->dtStart().toLocalTime().date(); fbData[QStringLiteral("end")] = fb->dtEnd().toLocalTime().date(); @@ -1282,7 +1282,7 @@ } QVariantHash incidence; - incidence[QStringLiteral("organizer")] = fb->organizer()->fullName(); + incidence[QStringLiteral("organizer")] = fb->organizer().fullName(); incidence[QStringLiteral("dtStart")] = fb->dtStart(); incidence[QStringLiteral("dtEnd")] = fb->dtEnd(); @@ -2599,7 +2599,7 @@ { //FIXME: support mRichText==false mResult = QLatin1String("") - +i18n("Free/Busy information for %1", fb->organizer()->fullName()) + +i18n("Free/Busy information for %1", fb->organizer().fullName()) +QLatin1String(""); mResult += dateRangeText(fb); mResult += QLatin1String(""); @@ -2700,8 +2700,8 @@ || (attendeeCount == 1 && !attendeeIsOrganizer(incidence, incidence->attendees().at(0)))) { tmpStr += QLatin1String("") + i18n("Organizer:") + QLatin1String("") + QLatin1String("
"); - tmpStr += QLatin1String("  ") + tooltipFormatOrganizer(incidence->organizer()->email(), - incidence->organizer()->name()); + tmpStr += QLatin1String("  ") + tooltipFormatOrganizer(incidence->organizer().email(), + incidence->organizer().name()); } // Show the attendee status if the incidence's organizer owns the resource calendar, @@ -2863,8 +2863,8 @@ if (!incidence->summary().trimmed().isEmpty()) { body += i18n("Summary: %1\n", incidence->richSummary()); } - if (!incidence->organizer()->isEmpty()) { - body += i18n("Organizer: %1\n", incidence->organizer()->fullName()); + if (!incidence->organizer().isEmpty()) { + body += i18n("Organizer: %1\n", incidence->organizer().fullName()); } if (!incidence->location().trimmed().isEmpty()) { body += i18n("Location: %1\n", incidence->richLocation()); diff --git a/src/scheduler.cpp b/src/scheduler.cpp --- a/src/scheduler.cpp +++ b/src/scheduler.cpp @@ -543,13 +543,13 @@ qCDebug(KCALUTILS_LOG) << "freeBusyDirName:" << freeBusyDir(); - Person::Ptr from; + Person from; if (method == iTIPPublish) { from = freebusy->organizer(); } else if ((method == iTIPReply) && (freebusy->attendeeCount() == 1)) { Attendee::Ptr attendee = freebusy->attendees().at(0); - from->setName(attendee->name()); - from->setEmail(attendee->email()); + from.setName(attendee->name()); + from.setEmail(attendee->email()); } if (!d->mFreeBusyCache->saveFreeBusy(freebusy, from)) {