size_t WritebackFunc(char *ptr, size_t size, size_t nmemb, wxString *stream){\r
\r
wxString Data;\r
- wxString *PageInput;\r
Data = wxString::FromUTF8((char *)ptr);\r
\r
stream->Append(Data);\r
struct UploadDataStruc UploadData;\r
\r
\r
- ActIter = ActivityListPtr->find(ItemIndex);\r
+ ActIter = ActivityListPtr->find((int)ItemIndex);\r
\r
// Update result flag.\r
\r
\r
fprintf(stderr, "curl_easy_perform() failed: %s\n",\r
curl_easy_strerror(claconncode));\r
- long http_code = 0;\r
+ int http_code = 0;\r
curl_easy_getinfo(conn, CURLINFO_RESPONSE_CODE, &http_code);\r
fprintf(stderr, "Error code was: %d\n", http_code);\r
\r
\r
fprintf(stderr, "curl_easy_perform() failed: %s\n",\r
curl_easy_strerror(claconncode));\r
- long http_code = 0;\r
+ int http_code = 0;\r
curl_easy_getinfo(conn, CURLINFO_RESPONSE_CODE, &http_code);\r
fprintf(stderr, "Error code was: %d\n", http_code);\r
\r
struct UploadDataStruc UploadData;\r
\r
\r
- ActIter = ActivityListPtr->find(ItemIndex);\r
+ ActIter = ActivityListPtr->find((int)ItemIndex);\r
\r
//ActIter->second = 1;\r
\r
\r
fprintf(stderr, "curl_easy_perform() failed: %s\n",\r
curl_easy_strerror(claconncode));\r
- long http_code = 0;\r
+ int http_code = 0;\r
curl_easy_getinfo(conn, CURLINFO_RESPONSE_CODE, &http_code);\r
fprintf(stderr, "Error code was: %d\n", http_code);\r
\r
\r
fprintf(stderr, "curl_easy_perform() failed: %s\n",\r
curl_easy_strerror(claconncode));\r
- long http_code = 0;\r
+ int http_code = 0;\r
curl_easy_getinfo(conn, CURLINFO_RESPONSE_CODE, &http_code);\r
fprintf(stderr, "Error code was: %d\n", http_code);\r
\r
struct UploadDataStruc UploadData;\r
\r
\r
- ActIter = ActivityListPtr->find(ItemIndex);\r
+ ActIter = ActivityListPtr->find((int)ItemIndex);\r
\r
static const char* query =\r
"<?xml version=\"1.0\" encoding=\"utf-8\" ?>"\r
\r
fprintf(stderr, "curl_easy_perform() failed: %s\n",\r
curl_easy_strerror(claconncode));\r
- long http_code = 0;\r
+ int http_code = 0;\r
curl_easy_getinfo(conn, CURLINFO_RESPONSE_CODE, &http_code);\r
fprintf(stderr, "Error code was: %d\n", http_code);\r
\r
\r
fprintf(stderr, "curl_easy_perform() failed: %s\n",\r
curl_easy_strerror(claconncode));\r
- long http_code = 0;\r
+ int http_code = 0;\r
curl_easy_getinfo(conn, CURLINFO_RESPONSE_CODE, &http_code);\r
fprintf(stderr, "Error code was: %d\n", http_code);\r
\r
\r
xmlDocPtr xmlCardDAVDoc;\r
\r
- xmlCardDAVDoc = xmlReadMemory(PageData.mb_str(wxConvUTF8), PageData.Len(), "noname.xml", NULL, 0);\r
+ xmlCardDAVDoc = xmlReadMemory(PageData.mb_str(wxConvUTF8), (int)PageData.Len(), "noname.xml", NULL, 0);\r
\r
xmlNodePtr nodeLevel1;\r
xmlNodePtr nodeLevel2;\r
\r
}\r
\r
- if (HREFFound = TRUE && ETagFound == TRUE){\r
+ if (HREFFound == TRUE && ETagFound == TRUE){\r
\r
// Add to the map data.\r
\r
xmlFreeDoc(xmlCardDAVDoc);\r
\r
// Get the first result.\r
- \r
\r
for (std::map<wxString,wxString>::iterator iter = xmlDataMap.begin(); \r
iter != xmlDataMap.end(); ++iter){\r
AbortConnection = FALSE;\r
\r
CURL *conn;\r
- CURLcode conncode;\r
wxString ServerAddressURL;\r
wxString ServerAuth;\r
wxString ServerAddressSSL;\r
- wxString ServerAddressNormal; \r
-\r
+ wxString ServerAddressNormal;\r
\r
conn = curl_easy_init();\r
\r
std::map<int,int>::iterator ActIter;\r
struct UploadDataStruc UploadData;\r
\r
- ActIter = ActivityListPtr->find(ItemIndex);\r
+ ActIter = ActivityListPtr->find((int)ItemIndex);\r
\r
curl_slist *slist = NULL; \r
\r
\r
fprintf(stderr, "curl_easy_perform() failed: %s\n",\r
curl_easy_strerror(claconncode));\r
- long http_code = 0;\r
+ int http_code = 0;\r
curl_easy_getinfo(conn, CURLINFO_RESPONSE_CODE, &http_code);\r
fprintf(stderr, "Error code was: %d\n", http_code);\r
\r
\r
fprintf(stderr, "curl_easy_perform() failed: %s\n",\r
curl_easy_strerror(claconncode));\r
- long http_code = 0;\r
+ int http_code = 0;\r
curl_easy_getinfo(conn, CURLINFO_RESPONSE_CODE, &http_code);\r
fprintf(stderr, "Error code was: %d\n", http_code);\r
\r
\r
fprintf(stderr, "curl_easy_perform() failed: %s\n",\r
curl_easy_strerror(claconncode));\r
- long http_code = 0;\r
+ int http_code = 0;\r
curl_easy_getinfo(conn, CURLINFO_RESPONSE_CODE, &http_code);\r
- fprintf(stderr, "Error code was: %l\n", http_code);\r
+ fprintf(stderr, "Error code was: %i\n", http_code);\r
\r
return ContactListFinal;\r
\r
\r
fprintf(stderr, "curl_easy_perform() failed: %s\n",\r
curl_easy_strerror(claconncode));\r
- long http_code = 0;\r
+ int http_code = 0;\r
curl_easy_getinfo(conn, CURLINFO_RESPONSE_CODE, &http_code);\r
- fprintf(stderr, "Error code was: %l\n", http_code);\r
+ fprintf(stderr, "Error code was: %i\n", http_code);\r
\r
return ContactListFinal;\r
\r
}\r
\r
xmlDocPtr xmlCardDAVDoc;\r
- xmlCardDAVDoc = xmlReadMemory(PageData.mb_str(wxConvUTF8), PageData.Len(), "noname.xml", NULL, 0);\r
+ xmlCardDAVDoc = xmlReadMemory(PageData.mb_str(wxConvUTF8), (int)PageData.Len(), "noname.xml", NULL, 0);\r
\r
xmlNodePtr nodeLevel1;\r
xmlNodePtr nodeLevel2;\r
\r
if ((!xmlStrcmp(nodeStatusLv1->name, (const xmlChar *)"status") ||\r
!xmlStrcmp(nodeStatusLv1->name, (const xmlChar *)"d:status") ||\r
- !xmlStrcmp(nodeStatusLv1->name, (const xmlChar *)"D:status") && HTTPStatus == FALSE)\r
- ){\r
+ !xmlStrcmp(nodeStatusLv1->name, (const xmlChar *)"D:status")) && HTTPStatus == FALSE)\r
+ {\r
\r
// Get the filename.\r
\r
\r
if ((!xmlStrcmp(nodeStatusLv1->name, (const xmlChar *)"status") ||\r
!xmlStrcmp(nodeStatusLv1->name, (const xmlChar *)"d:status") ||\r
- !xmlStrcmp(nodeStatusLv1->name, (const xmlChar *)"D:status") && HTTPStatus == FALSE)\r
- ){\r
+ !xmlStrcmp(nodeStatusLv1->name, (const xmlChar *)"D:status")) && HTTPStatus == FALSE)\r
+ {\r
\r
// Get the filename.\r
\r
// Process the XML data from the application.\r
\r
xmlDocPtr xmlCardDAVDoc;\r
- xmlCardDAVDoc = xmlReadMemory(PageData.mb_str(wxConvUTF8), PageData.Len(), "noname.xml", NULL, 0);\r
+ xmlCardDAVDoc = xmlReadMemory(PageData.mb_str(wxConvUTF8), (int)PageData.Len(), "noname.xml", NULL, 0);\r
\r
xmlNodePtr nodeLevel1;\r
xmlNodePtr nodeLevel2;\r
\r
}\r
\r
- xmlCardDAVDoc = xmlReadMemory(PageData.mb_str(wxConvUTF8), PageData.Len(), "noname.xml", NULL, 0);\r
+ xmlCardDAVDoc = xmlReadMemory(PageData.mb_str(wxConvUTF8), (int)PageData.Len(), "noname.xml", NULL, 0);\r
\r
for (nodeLevel1 = xmlCardDAVDoc->children;\r
nodeLevel1 != NULL;\r
\r
}\r
\r
- xmlCardDAVDoc = xmlReadMemory(PageData.mb_str(wxConvUTF8), PageData.Len(), "noname.xml", NULL, 0);\r
+ xmlCardDAVDoc = xmlReadMemory(PageData.mb_str(wxConvUTF8), (int)PageData.Len(), "noname.xml", NULL, 0);\r
\r
for (nodeLevel1 = xmlCardDAVDoc->children;\r
nodeLevel1 != NULL;\r