#include "../connobject/ConnectionObject.h"
#include "../version.h"
#include "../common/sslcertstructs.h"
+#include "../common/dirs.h"
#include <curl/curl.h>
#include <wx/tokenzr.h>
+#include <wx/file.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
public:
using ConnectionObject::ConnectionObject;
-
+
// Destructor.
~CardDAV2();
COServerResponse GetDefaultPrefix(std::string *ServerPrefix);
COServerResponse AddContact(std::string Location, std::string Data);
COServerResponse EditContact(std::string Location, std::string Data);
- COServerResponse DeleteContact(std::string Location, std::string EntityTag);
+ COServerResponse DeleteContact(std::string Location);
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();
#if defined(__APPLE__)
#elif defined(__WIN32__)
+
+ PCCERT_CONTEXT BuildSSLCollection();
+
#else
SSLCertCollectionString BuildSSLCollection();
CURL *ConnectionSession = nullptr;
CURLcode SessionResult = CURLE_OK;
+ struct curl_slist *HeaderList = nullptr;
void SetupDefaultParametersNonSSL(bool DoAuthentication);
void SetupDefaultParametersSSL(bool DoAuthentication);
std::string BuildURL(std::string URI);
void ResetResults();
std::vector<std::string> GetDAVHeader();
+ std::string GetETagHeader();
+ std::string GetETagValue();
std::string GetUserPrincipalURI();
std::string GetAddressBookHomeURI();
std::string GetDefaultAddressBookURI();
+ void ProcessContactData(COContactList *ContactList);
#if defined(__APPLE__)
#elif defined(__WIN32__)
+
+ PCCERT_CONTEXT CertificateData;
+
#else
bool EnableSSLBypass = false;
#endif