Projects
Kolab:Winterfell
libkolabxml
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 11
View file
libkolabxml.spec
Changed
@@ -62,7 +62,7 @@ Name: libkolabxml %endif Version: 1.2 -Release: 0.20160330.git%{?dist} +Release: 0.20160607.git%{?dist} Summary: Kolab XML format collection parser library Group: System Environment/Libraries
View file
debian.changelog
Changed
@@ -1,4 +1,4 @@ -libkolabxml (1.2~dev20160330-0~kolab1) unstable; urgency=low +libkolabxml (1.2~dev20160607-0~kolab1) unstable; urgency=low * Get the Debian packaging up to par with the new upstream
View file
libkolabxml-1.2.tar.gz/src/containers/kolabcontainers.cpp
Changed
@@ -637,6 +637,12 @@ { } +Alarm::Alarm(Alarm::Type type) +: d(new Alarm::Private) +{ + d->type = AudioAlarm; +} + Alarm::Alarm(const std::string &text) : d(new Alarm::Private) {
View file
libkolabxml-1.2.tar.gz/src/containers/kolabcontainers.h
Changed
@@ -224,6 +224,7 @@ }; Alarm(); + Alarm(Type); Alarm(const Alarm &); ~Alarm();
View file
libkolabxml-1.2.tar.gz/src/xcalconversions.h
Changed
@@ -1351,7 +1351,9 @@ case Kolab::Alarm::AudioAlarm: p = std::auto_ptr<PropType>(new PropType(PropType::action_type(AUDIOALARM), trigger)); p->description(PropType::description_type(alarm.description())); - p->attach(fromAttachment(alarm.audioFile())); + if (alarm.audioFile().isValid()) { + p->attach(fromAttachment(alarm.audioFile())); + } break; case Kolab::Alarm::InvalidAlarm: break; @@ -1398,16 +1400,17 @@ } alarm = Kolab::Alarm((*prop.summary()).text(), (*prop.description()).text(), attendees); } else if (prop.action().text() == AUDIOALARM) { - if (!prop.attach()) { - ERROR("audio file is missing"); - continue; - } - const Kolab::Attachment &attach = toAttachment<icalendar_2_0::properties::attach_type>(*prop.attach()); - if (!attach.isValid()) { - ERROR("audio file is invalid"); - continue; + if (prop.attach()) { + const Kolab::Attachment &attach = toAttachment<icalendar_2_0::properties::attach_type>(*prop.attach()); + if (!attach.isValid()) { + ERROR("audio file is invalid"); + continue; + } + alarm = Kolab::Alarm(attach); + } else { + //An audio alarm without an audio file is valid according to spec + alarm = Kolab::Alarm(Kolab::Alarm::AudioAlarm); } - alarm = Kolab::Alarm(attach); } else { ERROR("unknown alarm type " + prop.action().text()); continue;
View file
libkolabxml-1.2.tar.gz/tests/bindingstest.cpp
Changed
@@ -334,11 +334,9 @@ Kolab::Alarm emailAlarm("ident", "value", att); emailAlarm.setStart(Kolab::cDateTime(2003,2,3,2,3,4, true)); alarms.push_back(emailAlarm); -// Kolab::Attachment audiofile; -// audiofile.setUri("ksdjlksdflj", "sdkljdfl"); -// Kolab::Alarm audio(audiofile); -// audio.setStart(Kolab::cDateTime(2003,2,3,2,3,4, true)); -// alarms.push_back(audio); + Kolab::Alarm audio(Kolab::Alarm::AudioAlarm); + audio.setStart(Kolab::cDateTime(2003,2,3,2,3,4, true)); + alarms.push_back(audio); ev.setAlarms(alarms); }
View file
libkolabxml.dsc
Changed
@@ -2,7 +2,7 @@ Source: libkolabxml Binary: libkolabxml1v5, php-kolabformat, python-kolabformat, libkolabxml-dev Architecture: any -Version: 1.2~dev20160330-0~kolab1 +Version: 1.2~dev20160607-0~kolab1 Maintainer: Debian Kolab Maintainers <pkg-kolab-devel@lists.alioth.debian.org> Uploaders: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>, Paul Klos <kolab@klos2day.nl> Homepage: http://git.kolab.org/libkolabxml
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.