+// carddav.h - CardDAV Object header file.
+//
+// (c) 2012-2015 Xestia Software Development.
+//
+// This file is part of Xestia Address Book.
+//
+// Xestia Address Book is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by the
+// Free Software Foundation, version 3 of the license.
+//
+// Xestia Address Book is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
+
#include <iostream>
#include <map>
#include <wx/wx.h>
#include <libxml/tree.h>
#include <curl/curl.h>
#include "../vcard/vcard.h"
-#include "../frmActivityMgr.h"
+#include "../actmgr/frmActivityMgr.h"
#include "../common/sslcertstructs.h"
#ifndef CALDAV_CALDAV_H
std::map<wxString,FileSyncData> ListData;
};
+struct UploadDataStruc{
+ wxString *readptr;
+ long sizeleft;
+ int seek = 0;
+};
+
/*struct CertificateData{
std::multimap<wxString,wxString> CertificateData;
bool CertValid;
size_t WritebackFunc(char *ptr, size_t size, size_t nmemb, wxString *userdata);
int ProgressFunc(void *clientdata, double TTDown, double NDown, double TTUp, double NUp);
+size_t UploadReadFunc(void *ptr, size_t size, size_t nmemb, void *userdata);
class CardDAV
{