37 lines
917 B
C++
37 lines
917 B
C++
#pragma once
|
|
|
|
#ifndef PEER_LEFT_EVENT_H
|
|
#define PEER_LEFT_EVENT_H
|
|
|
|
#include <core/event/group_event.h>
|
|
|
|
#include "EventTypes.h"
|
|
#include "common/Defines.h"
|
|
#include "common/transport/TransportAddress.h"
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
class MOV_EXPORT PeerLeftEvent: public GroupEvent<EventTypes> {
|
|
|
|
public:
|
|
PeerLeftEvent(PeerID const &pId, TransportAddress const &ta);
|
|
virtual ~PeerLeftEvent();
|
|
static EventType getType();
|
|
|
|
PeerID const &getLeftPeerID() const;
|
|
void setLeftPeerID(PeerID const &pId);
|
|
|
|
TransportAddress const &getLeftPeerTA() const;
|
|
void setLeftPeerTA(TransportAddress const &aTa);
|
|
|
|
private:
|
|
PeerID leftPeerID;
|
|
TransportAddress leftPeerTA;
|
|
|
|
};
|
|
}
|
|
} // namespace ubeeme
|
|
|
|
#endif // PEER_LEFT_EVENT_H
|