10 #ifndef _SESSION_MANAGER_H_
11 #define _SESSION_MANAGER_H_
49 virtual void setHostSide(HostSide* hostSideptr) = 0;
64 virtual void addSession(
const std::string& chainName,
const std::string& sessionName,
65 const std::string& description, SessionInterface *sessionHandler) = 0;
74 virtual void RegisterSessions(
int interval = 5) = 0;
83 virtual void RegisterSession(
const std::string& sessionName) = 0;
94 virtual bool HasCapability(
const std::string& sessionName,
const std::string& capability) = 0;
102 virtual void DeleteSessionByName(
const std::string& sessionName) = 0;
110 virtual void DeleteSessionById(int64_t sourceId) = 0;
120 virtual int64_t getSessionId(
const std::string& sessionName) = 0;
130 virtual std::string getSessionName(int64_t sessionId) = 0;
137 virtual void Start() = 0;
144 virtual void Stop() = 0;
151 virtual void Clear() = 0;
161 virtual void SetSessionStateByName(
const std::string& sessionName,
AP_SESSION_State state,
bool generateNewId =
false) = 0;
171 virtual void SetSessionStateById(int64_t sourceId,
AP_SESSION_State state,
bool usePreviousGenerationId =
false) = 0;
182 virtual AP_SESSION_State GetSessionStateByName(
const std::string& sessionName) = 0;
202 virtual void SessionStartSuccess(int64_t sourceId) = 0;
212 virtual void SessionStartError(int64_t sourceId,
const std::string& errMsg) = 0;
221 virtual void SessionStopSuccess(int64_t sourceId) = 0;
231 virtual void SessionStopError(int64_t sourceId,
const std::string& errMsg) = 0;
240 virtual void SessionReconfigureSuccess(int64_t sourceId) = 0;
250 virtual void SessionReconfigureError(int64_t sourceId,
const std::string& errMsg) = 0;
259 virtual bool ProcessMessage(Message& msg) = 0;
264 SessionInterface* sessionHandlerIface_;
AP_SESSION_State
Definition: Connectivity_SessionDefs.h:31
Interface class for the Each Session.
Definition: Connectivity_MDInterfaces.h:59
Definition: Connectivity_SessionManager.h:269
Definition: Connectivity_SessionManager.h:22