+class TrustSessionListener +{ +public: + virtual void starting(std::shared_ptr<TrustSession> const& trust_session) = 0; + virtual void stopping(std::shared_ptr<TrustSession> const& trust_session) = 0; + + virtual void trusted_session_beginning(TrustSession& trust_session, std::shared_ptr<Session> const& session) = 0; + virtual void trusted_session_ending(TrustSession& trust_session, std::shared_ptr<Session> const& session) = 0;
The listener shouldn't be given any ownership of the referenced objects. So the prototypes should be:
virtual void starting(TrustSession const& trust_session) = 0; virtual void stopping(TrustSession const& trust_session) = 0;
virtual void trusted_session_beginning(TrustSession& trust_session, Session const& session) = 0; virtual void trusted_session_ending(TrustSession& trust_session, Session const& session) = 0;
« Back to merge proposal
+class TrustSessionLis tener std::shared_ ptr<TrustSessio n> const& trust_session) = 0; std::shared_ ptr<TrustSessio n> const& trust_session) = 0; session_ beginning( TrustSession& trust_session, std::shared_ ptr<Session> const& session) = 0; session_ ending( TrustSession& trust_session, std::shared_ ptr<Session> const& session) = 0;
+{
+public:
+ virtual void starting(
+ virtual void stopping(
+
+ virtual void trusted_
+ virtual void trusted_
The listener shouldn't be given any ownership of the referenced objects. So the prototypes should be:
virtual void starting( TrustSession const& trust_session) = 0; TrustSession const& trust_session) = 0;
virtual void stopping(
virtual void trusted_ session_ beginning( TrustSession& trust_session, Session const& session) = 0; session_ ending( TrustSession& trust_session, Session const& session) = 0;
virtual void trusted_