X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcarddav2%2Fcarddav2.h;h=212c5a2faa6ad8a0012ffb1a382a2fe4268b745b;hb=d269801e3d32dbbea14af5f261190ef097635fce;hp=0c41fdb8c8a50c6855e4123e3a423198dfa8f9e2;hpb=daa33d641181d15710614cad752187a87263bcc9;p=xestiaab%2F.git diff --git a/source/carddav2/carddav2.h b/source/carddav2/carddav2.h index 0c41fdb..212c5a2 100644 --- a/source/carddav2/carddav2.h +++ b/source/carddav2/carddav2.h @@ -22,9 +22,11 @@ #include "../connobject/ConnectionObject.h" #include "../version.h" #include "../common/sslcertstructs.h" +#include "../common/dirs.h" #include #include +#include #include #include @@ -54,7 +56,7 @@ class CardDAV2 : public ConnectionObject { COServerResponse EditContact(std::string Location, std::string Data); COServerResponse DeleteContact(std::string Location, std::string EntityTag); COServerResponse GetServerEntityTagValue(std::string Location); - COServerResponse GetContact(std::string Location); + COServerResponse GetContact(std::string Location, std::string *ContactData); COContactList GetContactList(std::string SyncToken); bool CanDoProcessing(); @@ -81,6 +83,7 @@ class CardDAV2 : public ConnectionObject { CURL *ConnectionSession = nullptr; CURLcode SessionResult = CURLE_OK; + struct curl_slist *HeaderList = nullptr; void SetupDefaultParametersNonSSL(bool DoAuthentication); void SetupDefaultParametersSSL(bool DoAuthentication); @@ -95,6 +98,8 @@ class CardDAV2 : public ConnectionObject { std::string BuildURL(std::string URI); void ResetResults(); std::vector GetDAVHeader(); + std::string GetETagHeader(); + std::string GetETagValue(); std::string GetUserPrincipalURI(); std::string GetAddressBookHomeURI();