| 1 |
commit bec63a313160ec6dc1833029d5e99746779ed3f4
|
| 2 |
Author: Gregory Oestreicher <greg@kamago.net>
|
| 3 |
Date: Tue May 15 21:19:17 2012 +0200
|
| 4 |
|
| 5 |
Add a prop-filter in the CardDAV requests
|
| 6 |
|
| 7 |
BUG: 299482
|
| 8 |
FIXED-IN: 4.8.4
|
| 9 |
|
| 10 |
diff --git a/resources/dav/protocols/carddavprotocol.cpp b/resources/dav/protocols/carddavprotocol.cpp
|
| 11 |
index 38eca17..9c58653 100644
|
| 12 |
--- a/resources/dav/protocols/carddavprotocol.cpp
|
| 13 |
+++ b/resources/dav/protocols/carddavprotocol.cpp
|
| 14 |
@@ -35,6 +35,12 @@ CarddavProtocol::CarddavProtocol()
|
| 15 |
propElement.appendChild( document.createElementNS( "DAV:", "resourcetype" ) );
|
| 16 |
propElement.appendChild( document.createElementNS( "DAV:", "getetag" ) );
|
| 17 |
|
| 18 |
+ QDomElement filterElement = document.createElementNS( "urn:ietf:params:xml:ns:carddav", "filter" );
|
| 19 |
+ queryElement.appendChild( filterElement );
|
| 20 |
+ QDomElement propfilterElement = document.createElementNS( "urn:ietf:params:xml:ns:carddav", "prop-filter" );
|
| 21 |
+ propfilterElement.setAttribute( "name", "FN" );
|
| 22 |
+ filterElement.appendChild( propfilterElement );
|
| 23 |
+
|
| 24 |
mItemsQueries << document;
|
| 25 |
}
|
| 26 |
|