rtphone/src/libs/resiprocate/resip/dum/TargetCommand.cxx

47 lines
789 B
C++

#include "resip/dum/DialogUsageManager.hxx"
#include "resip/dum/TargetCommand.hxx"
#include "rutil/WinLeakCheck.hxx"
using namespace resip;
using namespace std;
TargetCommand::TargetCommand(Target& target,
auto_ptr<Message> message)
: mTarget(target),
mMessage(message)
{
}
TargetCommand::TargetCommand(const TargetCommand& from)
: mTarget(from.mTarget),
mMessage(from.mMessage)
{
}
void TargetCommand::executeCommand()
{
mTarget.post(mMessage);
}
Message* TargetCommand::clone() const
{
return new TargetCommand(*this);
}
EncodeStream&
TargetCommand::encode(EncodeStream& strm) const
{
return strm;
}
EncodeStream&
TargetCommand::encodeBrief(EncodeStream& strm) const
{
return strm;
}
TargetCommand::Target::~Target()
{
}