reSIProcate/DialogUsageManager  9694
TargetCommand.cxx
Go to the documentation of this file.
00001 #include "resip/dum/DialogUsageManager.hxx"
00002 #include "resip/dum/TargetCommand.hxx"
00003 #include "rutil/WinLeakCheck.hxx"
00004 
00005 using namespace resip;
00006 using namespace std;
00007 
00008 
00009 TargetCommand::TargetCommand(Target& target,
00010                              auto_ptr<Message> message)
00011    : mTarget(target),
00012      mMessage(message)
00013 {
00014 }
00015 
00016 TargetCommand::TargetCommand(const TargetCommand& from)
00017    : mTarget(from.mTarget),
00018      mMessage(from.mMessage)
00019 {
00020 }
00021 
00022 void TargetCommand::executeCommand()
00023 {
00024    mTarget.post(mMessage);
00025 }
00026 
00027 Message* TargetCommand::clone() const
00028 {
00029    return new TargetCommand(*this);
00030 }
00031 
00032 EncodeStream&
00033 TargetCommand::encode(EncodeStream& strm) const
00034 {
00035    return strm;
00036 }
00037 
00038 EncodeStream&
00039 TargetCommand::encodeBrief(EncodeStream& strm) const
00040 {
00041    return strm;
00042 }
00043 
00044 TargetCommand::Target::~Target()
00045 {
00046 }