Files
scandocs/uni/masterarbeit/source/moversight/app/events/PeerJoinedEvent.h
2014-06-30 13:58:10 +02:00

45 lines
1.2 KiB
C++

#pragma once
#ifndef PEER_JOINED_EVENT_H
#define PEER_JOINED_EVENT_H
#include "EventTypes.h"
#include "app/PeerDescription.h"
#include "common/Defines.h"
#include "common/transport/TransportAddress.h"
#include <core/event/group_event.h>
namespace ubeeme {
namespace moversight {
class MOV_EXPORT PeerJoinedEvent: public GroupEvent<EventTypes> {
public:
PeerJoinedEvent(PeerID const &pId, TransportAddress const &ta, PeerDescription const &pDesc);
virtual ~PeerJoinedEvent();
static EventType getType();
PeerID const &getJoinedPeerID() const;
void setJoinedPeerID(PeerID const &pId);
PeerDescription const &getPeerDescription() const;
void setPeerDescription(PeerDescription const & pDesc);
TransportAddress const &getJoinedPeerTA() const;
void setJoinedPeerTA(TransportAddress const & ta);
private:
PeerID joinedPeerID;
PeerDescription joinedPeerDesc;
TransportAddress joinedPeerTA;
};
}
} // namespace ubeeme
#endif // PEER_JOINED_EVENT_H