Changeset View
Changeset View
Standalone View
Standalone View
src/icalformat_p.cpp
Show First 20 Lines • Show All 2561 Lines • ▼ Show 20 Line(s) | 2561 | case ICAL_X_PROPERTY: { | |||
---|---|---|---|---|---|
2562 | const char *name = icalproperty_get_x_name(p); | 2562 | const char *name = icalproperty_get_x_name(p); | ||
2563 | if (QLatin1String(name) == QLatin1String("X-KDE-LIBKCAL-DTRECURRENCE")) { | 2563 | if (QLatin1String(name) == QLatin1String("X-KDE-LIBKCAL-DTRECURRENCE")) { | ||
2564 | const char *value = icalvalue_as_ical_string(icalproperty_get_value(p)); | 2564 | const char *value = icalvalue_as_ical_string(icalproperty_get_value(p)); | ||
2565 | icalvalue *v = icalvalue_new_from_string(ICAL_DATETIME_VALUE, value); | 2565 | icalvalue *v = icalvalue_new_from_string(ICAL_DATETIME_VALUE, value); | ||
2566 | tp.time = icalvalue_get_datetime(v); | 2566 | tp.time = icalvalue_get_datetime(v); | ||
2567 | icalvalue_free(v); | 2567 | icalvalue_free(v); | ||
2568 | break; | 2568 | break; | ||
2569 | } | 2569 | } | ||
2570 | } | 2570 | } //end of ICAL_X_PROPERTY | ||
2571 | Q_FALLTHROUGH(); | ||||
2571 | default: | 2572 | default: | ||
2572 | switch (kind) { | 2573 | switch (kind) { | ||
2573 | case ICAL_RDATE_PROPERTY: | 2574 | case ICAL_RDATE_PROPERTY: | ||
2574 | tp = icalproperty_get_rdate(p); | 2575 | tp = icalproperty_get_rdate(p); | ||
2575 | break; | 2576 | break; | ||
2576 | default: | 2577 | default: | ||
2577 | return QDateTime(); | 2578 | return QDateTime(); | ||
2578 | } | 2579 | } | ||
▲ Show 20 Lines • Show All 186 Lines • ▼ Show 20 Line(s) | 2756 | if (nproperty == QByteArray(IMPLEMENTATION_VERSION_XPROPERTY)) { | |||
2765 | icalproperty_free(p); | 2766 | icalproperty_free(p); | ||
2766 | } | 2767 | } | ||
2767 | p = icalcomponent_get_next_property(calendar, ICAL_X_PROPERTY); | 2768 | p = icalcomponent_get_next_property(calendar, ICAL_X_PROPERTY); | ||
2768 | } | 2769 | } | ||
2769 | 2770 | | |||
2770 | p = icalcomponent_get_first_property(calendar, ICAL_PRODID_PROPERTY); | 2771 | p = icalcomponent_get_first_property(calendar, ICAL_PRODID_PROPERTY); | ||
2771 | if (!p) { | 2772 | if (!p) { | ||
2772 | qCDebug(KCALCORE_LOG) << "No PRODID property found"; | 2773 | qCDebug(KCALCORE_LOG) << "No PRODID property found"; | ||
2773 | d->mLoadedProductId = QStringLiteral(""); | 2774 | d->mLoadedProductId.clear(); | ||
2774 | } else { | 2775 | } else { | ||
2775 | d->mLoadedProductId = QString::fromUtf8(icalproperty_get_prodid(p)); | 2776 | d->mLoadedProductId = QString::fromUtf8(icalproperty_get_prodid(p)); | ||
2776 | 2777 | | |||
2777 | delete d->mCompat; | 2778 | delete d->mCompat; | ||
2778 | d->mCompat = CompatFactory::createCompat(d->mLoadedProductId, implementationVersion); | 2779 | d->mCompat = CompatFactory::createCompat(d->mLoadedProductId, implementationVersion); | ||
2779 | } | 2780 | } | ||
2780 | 2781 | | |||
2781 | p = icalcomponent_get_first_property(calendar, ICAL_VERSION_PROPERTY); | 2782 | p = icalcomponent_get_first_property(calendar, ICAL_VERSION_PROPERTY); | ||
▲ Show 20 Lines • Show All 310 Lines • Show Last 20 Lines |