X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fconnobject%2FConnectionObject.h;h=90eb0cbee1132d749f76ffe1de71dd4950b52262;hb=e86dce6341aec3d350835e18c3791a644a313030;hp=798ebae2c3418aaa4218cb1cdc499b58f06343d6;hpb=1a669f2f2ab771fac49d859851bd1cdba28ab3f8;p=xestiaab%2F.git diff --git a/source/connobject/ConnectionObject.h b/source/connobject/ConnectionObject.h index 798ebae..90eb0cb 100644 --- a/source/connobject/ConnectionObject.h +++ b/source/connobject/ConnectionObject.h @@ -17,6 +17,7 @@ // with Xestia Address Book. If not, see #include +#include 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 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() {};