File libkolab-3.0.2-less-noise.patch of Package libkolab
diff --git a/calendaring/event.cpp b/calendaring/event.cpp
index 75686a1..cd6088b 100644
--- a/calendaring/event.cpp
+++ b/calendaring/event.cpp
@@ -154,12 +154,10 @@ Attendee Event::getAttendee(const std::string &s)
cDateTime Calendaring::Event::getNextOccurence(const cDateTime &date)
{
KCalCore::Event::Ptr event = Kolab::Conversion::toKCalCore(*this);
- qWarning() << "Converted start " << event->dtStart() << Kolab::Conversion::toDate(date);
if (!event->recurs()) {
return cDateTime();
}
const QDateTime nextDate = event->recurrence()->getNextDateTime(Kolab::Conversion::toDate(date));
- qWarning() << "Next date " << nextDate;
return Kolab::Conversion::fromDate(nextDate);
}
diff --git a/conversion/kcalconversion.cpp b/conversion/kcalconversion.cpp
index 65c81ba..1f18290 100644
--- a/conversion/kcalconversion.cpp
+++ b/conversion/kcalconversion.cpp
@@ -277,7 +277,6 @@ void setIncidence(KCalCore::Incidence &i, const T &e)
if (e.start().isValid()) {
- qWarning() << "Setting start" << toDate(e.start());
i.setDtStart(toDate(e.start()));
if (e.start().isDateOnly()) {
i.setAllDay(true);
@@ -294,7 +293,6 @@ void setIncidence(KCalCore::Incidence &i, const T &e)
* Since that means the semantics of the two are different, we have to store the kolab uid as a custom property.
*/
// QUrl::fromPercentEncoding(
- qWarning() << "Name " << fromStdString(a.contact().name()) << " EMail " << fromStdString(a.contact().email());
KCalCore::Attendee attendee(fromStdString(a.contact().name()),
fromStdString(a.contact().email()),
a.rsvp(),
@@ -308,20 +306,17 @@ void setIncidence(KCalCore::Incidence &i, const T &e)
WARNING("multiple delegatees are not supported");
}
- qWarning() << "delegated from " << toMailto(a.delegatedTo().front().email(), a.delegatedTo().front().name()).toString();
attendee.setDelegate(toMailto(a.delegatedTo().front().email(), a.delegatedTo().front().name()).toString());
}
if (!a.delegatedFrom().empty()) {
if (a.delegatedFrom().size() > 1) {
WARNING("multiple delegators are not supported");
}
- qWarning() << "delegator from " << toMailto(a.delegatedFrom().front().email(), a.delegatedFrom().front().name()).toString();
attendee.setDelegator(toMailto(a.delegatedFrom().front().email(), a.delegatedFrom().front().name()).toString());
}
if (a.cutype() != CutypeIndividual) {
attendee.customProperties().setNonKDECustomProperty(CUSTOM_KOLAB_CONTACT_CUTYPE, QString::number(a.cutype()));
}
- // qWarning() << attendee;
i.addAttendee(attendee);
}
foreach (const Kolab::Attachment a, e.attachments()) {
@@ -374,13 +369,11 @@ void getIncidence(T &i, const I &e)
if (!attendee.delegate().isEmpty()) {
std::string name;
const std::string &email = fromMailto(QUrl(attendee.delegate()), name);
- qWarning() << "delegate Email " << email << " EMail " << name << attendee.delegate();
a.setDelegatedTo(std::vector<Kolab::ContactReference>() << Kolab::ContactReference(email, name));
}
if (!attendee.delegator().isEmpty()) {
std::string name;
const std::string &email = fromMailto(QUrl(attendee.delegator()), name);
- qWarning() << "delegated from " << email << " EMail " << name << attendee.delegator();
a.setDelegatedFrom(std::vector<Kolab::ContactReference>() << Kolab::ContactReference(email, name));
}
const QString &cutype = attendee.customProperties().nonKDECustomProperty(CUSTOM_KOLAB_CONTACT_CUTYPE);
@@ -544,7 +537,6 @@ void setRecurrence(KCalCore::Incidence &e, const T &event)
if (rrule.end().isValid()) {
rec->setEndDateTime(toDate(rrule.end())); //TODO date/datetime setEndDate(). With date-only the start date has to be taken into account.
- qWarning() << "Set end date time" << toDate(rrule.end());
} else {
rec->setDuration(rrule.count());
}