Not Logged In
|
Login
|
Register
Home
|
News
|
Projects
|
Releases
Bugs
|
RFE
|
Repositories
|
Help
projects
/
xestiacalendar
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added initial unit tests for CalDAV/ListCalendars
[xestiacalendar/.git]
/
source
/
objects
/
CalDAV
/
CalDAV.h
diff --git
a/source/objects/CalDAV/CalDAV.h
b/source/objects/CalDAV/CalDAV.h
index
31e5c3b
..
2ccd4ea
100644
(file)
--- a/
source/objects/CalDAV/CalDAV.h
+++ b/
source/objects/CalDAV/CalDAV.h
@@
-21,6
+21,7
@@
#include <curl/curl.h>
#include <string>
#include <curl/curl.h>
#include <string>
+#include <iostream>
using namespace std;
using namespace std;
@@
-29,17
+30,20
@@
using namespace std;
enum CalDAVQueryResult {
CALDAVQUERYRESULT_UNITTESTFAIL = -1,
enum CalDAVQueryResult {
CALDAVQUERYRESULT_UNITTESTFAIL = -1,
- CALDAVQUERYRESULT_OK
+ CALDAVQUERYRESULT_OK,
+ CALDAVQUERYRESULT_NOTRUN,
+ CALDAVQUERYRESULT_SERVERERROR
};
struct CalDAVConnectionData{
};
struct CalDAVConnectionData{
- string Hostname;
- int Port;
- string Username;
- string Password;
- string Prefix;
- bool UseSSL;
+ string Hostname = "";
+ int Port = 8008;
+ string Username = "";
+ string Password = "";
+ string Prefix = "";
+ bool UseSSL = true;
+ int Timeout = 60;
};
};
@@
-55,6
+59,7
@@
struct CalDAVStatus{
string Username;
string Prefix;
bool UseSSL;
string Username;
string Prefix;
bool UseSSL;
+ int Timeout;
};
};
@@
-65,13
+70,24
@@
struct CalDAVStatus{
struct CalDAVServerResult{
struct CalDAVServerResult{
+ CalDAVQueryResult Result = CALDAVQUERYRESULT_NOTRUN;
+ CURLcode Code = CURLE_OK;
+ long HTTPCode = 0;
-
};
class CalDAV{
};
class CalDAV{
+ private:
+ CalDAVConnectionData ConnectionData;
+ CURL *ConnectionHandle = nullptr;
+ public:
+ void SetupConnectionData(CalDAVConnectionData *ConnData);
+ CalDAVStatus GetConnectionData();
+ CalDAVServerResult Connect();
+ CalDAV();
+ ~CalDAV();
};
};
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy