#include "FakeConnectionObject.h"
-COConnectResult FakeConnectionObject::Connect(){
+FakeConnectionObject::FakeConnectionObject(std::string ServerAddress, int ServerPort,
+ std::string ServerUser, std::string ServerPass, bool ServerSSL){
+
+ this->ServerAddress = ServerAddress;
+ this->ServerPort = ServerPort;
+ this->ServerUser = ServerUser;
+ this->ServerPass = ServerPass;
+ this->ServerSSL = ServerSSL;
+
+}
+
+FakeConnectionObject::FakeConnectionObject(std::string ServerAddress, int ServerPort,
+ std::string ServerUser, std::string ServerPass, bool ServerSSL,
+ std::string ServerPrefix, std::string ServerAccount){
+
+ this->ServerAddress = ServerAddress;
+ this->ServerPort = ServerPort;
+ this->ServerUser = ServerUser;
+ this->ServerPass = ServerPass;
+ this->ServerSSL = ServerSSL;
+ this->ServerPrefix = ServerPrefix;
+ this->ServerAccount = ServerAccount;
+
+}
+
+FakeConnectionObject::~FakeConnectionObject(){
+
+}
+
+COConnectResult FakeConnectionObject::Connect(bool DoAuthentication){
COConnectResult ConnectResult = ResultStatus;
AuthPassed = ResultAuthPassed;
SSLSelfSigned = ResultSelfSigned;
ServerPrefix = ResultServerPrefix;
return ConnectResult;
+
}
bool FakeConnectionObject::IsTaskCompleted(){
}
-COServerResponse FakeConnectionObject::DeleteContact(std::string Location, std::string EntityTag){
+COServerResponse FakeConnectionObject::DeleteContact(std::string Location){
COServerResponse DeleteContactResult;
}
bool FakeConnectionObject::GetTestMode(){
- return TestMode;
+ return ResultTestMode;
}
bool FakeConnectionObject::CanDoProcessing(){