From 38e306385c8dcbf636199e9ac654793cd6427a66 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Mon, 29 Feb 2016 03:06:15 +0000 Subject: [PATCH] Moved include to CalDAV.h and written the CalDAVOutput subroutine. --- source/objects/CalDAV/CalDAV.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/source/objects/CalDAV/CalDAV.cpp b/source/objects/CalDAV/CalDAV.cpp index 545c108..c781e94 100644 --- a/source/objects/CalDAV/CalDAV.cpp +++ b/source/objects/CalDAV/CalDAV.cpp @@ -17,10 +17,21 @@ // with Xestia Calendar. If not, see #include "CalDAV.h" -#include using namespace std; +size_t CalDAVOutput(char *ReceivedBuffer, size_t Size, size_t NewMemoryBytes, string *StringPointer) +{ + + string ReceivedBufferString = ""; + ReceivedBufferString.append(ReceivedBuffer, NewMemoryBytes); + + StringPointer->append(ReceivedBufferString); + + return Size * NewMemoryBytes; + +} + CalDAV::CalDAV(){ // Setup the objects within the CalDAV connection -- 2.39.5