66 lines
1.6 KiB
C++
66 lines
1.6 KiB
C++
/*
|
|
* File: JoinAbort.h
|
|
* Author: jgaebler
|
|
*
|
|
* Created on March 4, 2011, 3:42 PM
|
|
*/
|
|
#pragma once
|
|
|
|
#ifndef JOINABORT_H
|
|
#define JOINABORT_H
|
|
|
|
#include "common/Defines.h"
|
|
|
|
#include "app/PeerDescription.h"
|
|
#include "common/transport/TransportAddress.h"
|
|
#include "common/transport/msg/ExteriorMessage.h"
|
|
#include "ms/MemberDescription.h"
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
class Dispatcher;
|
|
|
|
/**
|
|
* @brief Defines a join abort message, used within the membership service module.
|
|
* @author Jan Gäbler, Robert Noack
|
|
* @class JoinAbort
|
|
* @ingroup Moversight
|
|
*/
|
|
class JoinAbort : public ExteriorMessage {
|
|
public:
|
|
JoinAbort();
|
|
JoinAbort(const JoinAbort & other);
|
|
virtual ~JoinAbort();
|
|
|
|
JoinAbort * dup() const;
|
|
JoinAbort& operator=(const JoinAbort& other);
|
|
|
|
void handleReceive(Dispatcher & dis);
|
|
|
|
virtual void set(Archive & archive);
|
|
|
|
// field getter/setter methods
|
|
virtual InvitationID& getInvitationID();
|
|
virtual const InvitationID& getInvitationID() const;
|
|
virtual void setInvitationID(const InvitationID& invitationID);
|
|
|
|
virtual const std::string & getJabMessage() const;
|
|
virtual void setJabMessage(const std::string & jabMessage);
|
|
|
|
protected:
|
|
|
|
// protected and unimplemented operator==(), to prevent accidental usage
|
|
bool operator==(const JoinAbort&);
|
|
|
|
private:
|
|
|
|
InvitationID invitationID;
|
|
std::string jabMessage;
|
|
|
|
};
|
|
}
|
|
}
|
|
#endif /* JOINABORT_H */
|
|
|