Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Replace old build system with CMake build system
[xestiaab/.git] / source / tests / classes / FakeConnectionObject.cpp
index 6e70fbf..8a3da55 100644 (file)
 
 #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(){
+       
+}
+
+void FakeConnectionObject::SetupConnectionObject(){
+
+}
+
+void FakeConnectionObject::BypassSSLVerification(bool EnableBypass){
+
+}
+
+COServerResponse FakeConnectionObject::GetDefaultPrefix(std::string *ServerPrefix){
+    COServerResponse blankResponse;
+    return blankResponse;
+}
+
+COServerResponse FakeConnectionObject::GetContact(std::string Location, std::string *PageData){
+    COServerResponse blankResponse;
+    return blankResponse;
+}
+
+std::string FakeConnectionObject::GetErrorMessage(){
+    return "";
+}
+
+SSLCertCollectionString FakeConnectionObject::BuildSSLCollection(){
+    SSLCertCollectionString blankString;
+    return blankString;
+}
+
+COConnectResult FakeConnectionObject::Connect(bool DoAuthentication){
        
        COConnectResult ConnectResult = ResultStatus;
        AuthPassed = ResultAuthPassed;
@@ -29,6 +85,12 @@ COConnectResult FakeConnectionObject::Connect(){
        SSLSelfSigned = ResultSelfSigned;
        ServerPrefix = ResultServerPrefix;
        return ConnectResult;
+       
+}
+
+bool FakeConnectionObject::IsTaskCompleted(){
+       TaskCompleted = ResultTaskCompleted;
+       return TaskCompleted;
 }
 
 std::string FakeConnectionObject::GetDefaultPrefix(){
@@ -63,7 +125,7 @@ COServerResponse FakeConnectionObject::EditContact(std::string Location, std::st
        
 }
 
-COServerResponse FakeConnectionObject::DeleteContact(std::string Location, std::string EntityTag){
+COServerResponse FakeConnectionObject::DeleteContact(std::string Location){
        
        COServerResponse DeleteContactResult;
        
@@ -148,7 +210,7 @@ bool FakeConnectionObject::GetServerSSL(){
 }
 
 bool FakeConnectionObject::GetTestMode(){
-       return TestMode;
+       return ResultTestMode;
 }
 
 bool FakeConnectionObject::CanDoProcessing(){
@@ -159,7 +221,7 @@ bool FakeConnectionObject::CanDoSSL(){
        return SSLStatus;       
 }
 
-bool FakeConnectionObject::SSLVerify(){
+COSSLVerified FakeConnectionObject::SSLVerify(){
        return SSLVerified;
 }
 
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