Commit cfe87345 authored by Stefan Brüns's avatar Stefan Brüns
Browse files

Fetch VJOURNAL from CalDAV resource



Although VJOURNAL entries were stored in the CalDAV ressource,
only VEVENT/VTODO were fetched so far.

FIXED-IN: 4.10.2
BUG: 317341
REVIEW: 109713
Signed-off-by: Stefan Brüns's avatarStefan Brüns <stefan.bruens@rwth-aachen.de>
parent f5a15eb6
......@@ -123,6 +123,55 @@ CaldavProtocol::CaldavProtocol()
mItemsQueries << document;
}
/*
* Create a document like the following:
*
* <calendar-query>
* <prop>
* <getetag/>
* <resourcetype/>
* </prop>
* <filter>
* <comp-filter name="VCALENDAR">
* <comp-filter name="VJOURNAL">
* </comp-filter>
* </filter>
* </calendar-query>
*/
{
QDomDocument document;
QDomElement queryElement = document.createElementNS( "urn:ietf:params:xml:ns:caldav", "calendar-query" );
document.appendChild( queryElement );
QDomElement propElement = document.createElementNS( "DAV:", "prop" );
queryElement.appendChild( propElement );
QDomElement getetagElement = document.createElementNS( "DAV:", "getetag" );
propElement.appendChild( getetagElement );
QDomElement getRTypeElement = document.createElementNS( "DAV:", "resourcetype" );
propElement.appendChild( getRTypeElement );
QDomElement filterElement = document.createElementNS( "urn:ietf:params:xml:ns:caldav", "filter" );
queryElement.appendChild( filterElement );
QDomElement compfilterElement = document.createElementNS( "urn:ietf:params:xml:ns:caldav", "comp-filter" );
QDomAttr nameAttribute = document.createAttribute( "name" );
nameAttribute.setValue( "VCALENDAR" );
compfilterElement.setAttributeNode( nameAttribute );
filterElement.appendChild( compfilterElement );
QDomElement subcompfilterElement = document.createElementNS( "urn:ietf:params:xml:ns:caldav", "comp-filter" );
nameAttribute = document.createAttribute( "name" );
nameAttribute.setValue( "VJOURNAL" );
subcompfilterElement.setAttributeNode( nameAttribute );
compfilterElement.appendChild( subcompfilterElement );
mItemsQueries << document;
}
}
bool CaldavProtocol::supportsPrincipals() const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment