// You should have received a copy of the GNU General Public License along
// with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
+#ifndef __CONNOBJECT_FAKECONNECTIONOBJECT_H__
+#define __CONNOBJECT_FAKECONNECTIONOBJECT_H__
+
#include "../../connobject/ConnectionObject.h"
class FakeConnectionObject : public ConnectionObject {
public:
-
- // Functions for fake connection object.
using ConnectionObject::ConnectionObject;
+
+ // Functions for fake connection object.
+
std::string GetServerAddress();
unsigned int GetServerPort();
std::string GetServerUser();
// Functions from the ConnectionObject interface.
- COConnectResult Connect();
+ COConnectResult Connect(bool DoAuthentication);
std::string GetDefaultPrefix();
COServerResponse AddContact(std::string Location, std::string Data);
COServerResponse EditContact(std::string Location, std::string Data);
COServerResponse GetServerEntityTagValue(std::string Location);
COServerResponse GetContact(std::string Location);
COContactList GetContactList(std::string SyncToken);
-
+
+ bool IsTaskCompleted();
void SetupData(std::string Method, std::string Location, std::string Data);
bool CanDoProcessing();
bool CanDoSSL();
- bool SSLVerify();
+ COSSLVerified SSLVerify();
bool AbleToLogin();
bool HasValidResponse();
bool IsSelfSigned();
bool ResultAuthPassed = false;
bool ResultCanProcess = false;
bool ResultSSLStatus = false;
- bool ResultSSLVerified = false;
+ COSSLVerified ResultSSLVerified = COSSL_NORESULT;
bool ResultValidResponse = false;
bool ResultSelfSigned = false;
+ bool ResultTaskCompleted = false;
CORequestResult TestRequestResult;
COContactList TestContactList;
std::string TestEntityTag;
protected:
private:
-};
\ No newline at end of file
+};
+
+#endif
\ No newline at end of file