SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
LogInDelegate.h
1 #ifndef CBE__delegate__LogInDelegate_h__
2 #define CBE__delegate__LogInDelegate_h__
3 
4 #include "cbe/QueryResult.h"
5 #include "cbe/Types.h"
6 
7 #include "cbe/delegate/Error.h"
8 
9 #include "cbe/util/Context.h"
10 #include "cbe/util/ErrorInfo.h"
11 #include "cbe/util/Exception.h"
12 
13 #include <memory>
14 
15 namespace cbe {
16  namespace delegate {
26 public:
31  virtual void onLogInSuccess(CloudBackend&& cloudBackend) = 0;
32 
40  virtual void onLogInError(Error&& error, cbe::util::Context&& context) = 0;
41 
46  using Base::Base; // Inherit base class' constructors
47  }; // struct ErrorInfo
48 
54 
55 #ifndef CBE_NO_SYNC
62  struct Exception : cbe::util::ExceptionImpl<ErrorInfo> {
63  using Base::Base; // Inherit base class' constructors
64  }; // class struct CloudBackend::LogInException
65 #endif // #ifndef CBE_NO_SYNC
66 
67  virtual ~LogInDelegate();
68 }; // class LogInDelegate
69 
76 using LogInDelegatePtr = std::shared_ptr<LogInDelegate>;
77  } // namespace delegate
78 } // namespace cbe
79 
80 #endif // !CBE__delegate__LogInDelegate_h__
The session that holds the connection with the cloud.
Definition: CloudBackend.h:47
Definition: Error.h:14
Definition: LogInDelegate.h:25
virtual void onLogInSuccess(CloudBackend &&cloudBackend)=0
virtual void onLogInError(Error &&error, cbe::util::Context &&context)=0
std::shared_ptr< LogInDelegate > LogInDelegatePtr
Definition: LogInDelegate.h:76
Root namespace for the CloudBackend SDK API.
Definition: Account.h:22
Definition: LogInDelegate.h:45
Definition: Context.h:11
Definition: ErrorInfo.h:27
Definition: Exception.h:38