Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added more code and unit tests for ConnectionObject & FakeConnectionObject
[xestiaab/.git] / source / connobject / ConnectionObject.h
index 798ebae..90eb0cb 100644 (file)
@@ -17,6 +17,7 @@
 // with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
 
 #include <string>
+#include <vector>
 
 enum COConnectResult {
        COCONNECT_UNITTESTFAIL = -1,
@@ -36,10 +37,22 @@ enum CORequestResult {
 struct COServerResponse {
        CORequestResult RequestResult;
        std::string EntityTag;
+       int SessionCode;
        int ResultCode;
        std::string ResultMessage;
 };
 
+struct COContactData {
+       std::string Location;
+       std::string Data;
+};
+
+struct COContactList {
+       COServerResponse ServerResponse;
+       std::vector<COContactData> ListData;
+       std::string SyncToken;
+};
+
 class ConnectionObject{
        
        public:
@@ -54,8 +67,12 @@ class ConnectionObject{
                virtual COConnectResult Connect() {};
                
                virtual std::string GetDefaultPrefix() {};
-               //virtual void SetupData(std::string Method, std::string Location, std::string Data) {};
                virtual COServerResponse AddContact(std::string Location, std::string Data) {};
+               virtual COServerResponse EditContact(std::string Location, std::string Data) {};
+               virtual COServerResponse DeleteContact(std::string Location, std::string EntityTag) {};
+               virtual COServerResponse GetServerEntityTagValue(std::string Location) {};
+               virtual COServerResponse GetContact(std::string Location) {};
+               virtual COContactList GetContactList(std::string SyncToken) {};
                
                virtual bool CanDoProcessing() {};
                virtual bool CanDoSSL() {};
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy