8 #include "portalutils.h"
12 #include <nap/event.h>
13 #include <utility/uniqueptrvectoriterator.h>
15 #include <websocketconnection.h>
51 const std::string&
getID()
const {
return mHeader.mID; }
56 const std::string&
getPortalID()
const {
return mHeader.mPortalID; }
90 int getCount()
const {
return static_cast<int>(mAPIEvents.size()); }
101 const APIEvent* getAPIEvent(
int index)
const;
125 std::vector<APIEventPtr> mAPIEvents;
Definition: websocketconnection.h:27
bool hasConnection() const
Definition: portalevent.h:66
std::unique_ptr< WebSocketConnection > WebSocketConnectionPtr
Definition: websocketconnection.h:56
Definition: uniqueptrvectoriterator.h:70
std::unique_ptr< PortalEvent > PortalEventPtr
Definition: portalevent.h:128
int getCount() const
Definition: portalevent.h:90
std::vector< APIEventPtr > APIEventList
Definition: portalevent.h:31
Definition: errorstate.h:19
const APIEventConstIterator getAPIEvents() const
Definition: portalevent.h:95
APIEvent & operator[](std::size_t idx)
Definition: portalevent.h:113
EPortalEventType
Definition: portalutils.h:29
const EPortalEventType & getType() const
Definition: portalevent.h:61
std::unique_ptr< nap::APIEvent > APIEventPtr
Definition: apievent.h:179
const std::string & getPortalID() const
Definition: portalevent.h:56
PortalEvent(const PortalEventHeader &header, const WebSocketConnection &connection)
Definition: portalevent.h:45
const std::string & getID() const
Definition: portalevent.h:51
const APIEvent & operator[](std::size_t idx) const
Definition: portalevent.h:119
Definition: templateapp.h:17
const WebSocketConnection & getConnection() const
Definition: portalevent.h:71
Definition: portalevent.h:26
Definition: apievent.h:37
PortalEvent(const PortalEventHeader &header)
Definition: portalevent.h:38