Changeset View
Changeset View
Standalone View
Standalone View
src/icalformat_p.cpp
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | |||||
46 | #include "todo.h" | 46 | #include "todo.h" | ||
47 | #include "visitor.h" | 47 | #include "visitor.h" | ||
48 | #include "utils.h" | 48 | #include "utils.h" | ||
49 | 49 | | |||
50 | #include "kcalcore_debug.h" | 50 | #include "kcalcore_debug.h" | ||
51 | 51 | | |||
52 | #include <QFile> | 52 | #include <QFile> | ||
53 | 53 | | |||
54 | using namespace KCalCore; | 54 | using namespace KCalendarCore; | ||
55 | 55 | | |||
56 | static const char APP_NAME_FOR_XPROPERTIES[] = "KCALCORE"; | 56 | static const char APP_NAME_FOR_XPROPERTIES[] = "KCALCORE"; | ||
57 | static const char ENABLED_ALARM_XPROPERTY[] = "ENABLED"; | 57 | static const char ENABLED_ALARM_XPROPERTY[] = "ENABLED"; | ||
58 | static const char IMPLEMENTATION_VERSION_XPROPERTY[] = "X-KDE-ICAL-IMPLEMENTATION-VERSION"; | 58 | static const char IMPLEMENTATION_VERSION_XPROPERTY[] = "X-KDE-ICAL-IMPLEMENTATION-VERSION"; | ||
59 | 59 | | |||
60 | /* Static helpers */ | 60 | /* Static helpers */ | ||
61 | /* | 61 | /* | ||
62 | static void _dumpIcaltime( const icaltimetype& t) | 62 | static void _dumpIcaltime( const icaltimetype& t) | ||
▲ Show 20 Lines • Show All 2997 Lines • ▼ Show 20 Line(s) | 3059 | default: | |||
3060 | qCDebug(KCALCORE_LOG) << "Unknown method"; | 3060 | qCDebug(KCALCORE_LOG) << "Unknown method"; | ||
3061 | return message; | 3061 | return message; | ||
3062 | } | 3062 | } | ||
3063 | 3063 | | |||
3064 | icalcomponent_add_property(message, icalproperty_new_method(icalmethod)); | 3064 | icalcomponent_add_property(message, icalproperty_new_method(icalmethod)); | ||
3065 | 3065 | | |||
3066 | icalcomponent *inc = writeIncidence(incidence, method); | 3066 | icalcomponent *inc = writeIncidence(incidence, method); | ||
3067 | 3067 | | |||
3068 | if (method != KCalCore::iTIPNoMethod) { | 3068 | if (method != KCalendarCore::iTIPNoMethod) { | ||
3069 | //Not very nice, but since dtstamp changes semantics if used in scheduling, we have to adapt | 3069 | //Not very nice, but since dtstamp changes semantics if used in scheduling, we have to adapt | ||
3070 | icalcomponent_set_dtstamp( | 3070 | icalcomponent_set_dtstamp( | ||
3071 | inc, writeICalUtcDateTime(QDateTime::currentDateTimeUtc())); | 3071 | inc, writeICalUtcDateTime(QDateTime::currentDateTimeUtc())); | ||
3072 | } | 3072 | } | ||
3073 | 3073 | | |||
3074 | /* | 3074 | /* | ||
3075 | * RFC 2446 states in section 3.4.3 ( REPLY to a VTODO ), that | 3075 | * RFC 2446 states in section 3.4.3 ( REPLY to a VTODO ), that | ||
3076 | * a REQUEST-STATUS property has to be present. For the other two, event and | 3076 | * a REQUEST-STATUS property has to be present. For the other two, event and | ||
Show All 16 Lines |