16 #ifndef AACE_CBL_CBL_H 17 #define AACE_CBL_CBL_H 20 #include "CBLEngineInterface.h" 21 #include "AACE/Core/PlatformInterface.h" 127 virtual void setUserProfile(
const std::string& name,
const std::string& email ) = 0;
150 void setEngineInterface( std::shared_ptr<CBLEngineInterface> cblEngineInterface );
153 std::shared_ptr<CBLEngineInterface> m_cblEngineInterface;
156 inline std::ostream& operator<<(std::ostream& stream,
const CBL::CBLState& state) {
159 stream <<
"STARTING";
162 stream <<
"REQUESTING_CODE_PAIR";
165 stream <<
"CODE_PAIR_RECEIVED";
168 stream <<
"REFRESHING_TOKEN";
171 stream <<
"REQUESTING_TOKEN";
174 stream <<
"STOPPING";
192 stream <<
"CODE_PAIR_EXPIRED";
virtual std::string getRefreshToken()=0
void cancel()
Definition: CBL.cpp:33
CBLStateChangedReason
Definition: CBL.h:73
virtual void cblStateChanged(CBLState state, CBLStateChangedReason reason, const std::string &url, const std::string &code)=0
virtual void clearRefreshToken()=0
virtual void setRefreshToken(const std::string &refreshToken)=0
Definition: AddressBook.h:26
virtual void setUserProfile(const std::string &name, const std::string &email)=0
CBLState
Definition: CBL.h:37
void reset()
Definition: CBL.cpp:39
void start()
Definition: CBL.cpp:27