reSIProcate/DialogUsageManager  9694
Public Member Functions | Private Member Functions | Private Attributes
resip::DestroyUsage Class Reference

#include <DestroyUsage.hxx>

Inheritance diagram for resip::DestroyUsage:
Inheritance graph
[legend]
Collaboration diagram for resip::DestroyUsage:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DestroyUsage (BaseUsageHandle target)
 DestroyUsage (Dialog *dialog)
 DestroyUsage (DialogSet *dialogSet)
virtual ~DestroyUsage ()
virtual Messageclone () const
void destroy ()
virtual EncodeStreamencode (EncodeStream &strm) const
virtual EncodeStreamencodeBrief (EncodeStream &strm) const

Private Member Functions

 DestroyUsage (const DestroyUsage &other)

Private Attributes

BaseUsageHandle mHandle
DialogSetmDialogSet
DialogmDialog

Detailed Description

Definition at line 14 of file DestroyUsage.hxx.


Constructor & Destructor Documentation

DestroyUsage::DestroyUsage ( BaseUsageHandle  target)

Definition at line 13 of file DestroyUsage.cxx.

Referenced by clone().

   :mHandle(target),
    mDialogSet(0),
    mDialog(0)
{}
DestroyUsage::DestroyUsage ( Dialog dialog)

Definition at line 25 of file DestroyUsage.cxx.

   :mHandle(),
    mDialogSet(0),
    mDialog(dialog)
{}
DestroyUsage::DestroyUsage ( DialogSet dialogSet)

Definition at line 19 of file DestroyUsage.cxx.

   :mHandle(),
    mDialogSet(dialogSet),
    mDialog(0)
{}
DestroyUsage::~DestroyUsage ( ) [virtual]

Definition at line 37 of file DestroyUsage.cxx.

{}
DestroyUsage::DestroyUsage ( const DestroyUsage other) [private]

Definition at line 31 of file DestroyUsage.cxx.

                                                    :
   mHandle(other.mHandle),
   mDialogSet(other.mDialogSet),
   mDialog(other.mDialog)
{}

Member Function Documentation

Message * DestroyUsage::clone ( ) const [virtual]

Implements resip::Message.

Definition at line 41 of file DestroyUsage.cxx.

References DestroyUsage().

{
   return new DestroyUsage(*this);
}

Here is the call graph for this function:

void DestroyUsage::destroy ( )

Definition at line 75 of file DestroyUsage.cxx.

References resip::Handle< T >::get(), resip::Handle< T >::isValid(), mDialog, mDialogSet, and mHandle.

Referenced by resip::DialogUsageManager::internalProcess().

{
   if (mDialogSet)
   {
      delete mDialogSet;
   }
   else if (mDialog)
   {
      delete mDialog;
   }
   else if (mHandle.isValid())
   {
      delete mHandle.get();
   }
}

Here is the call graph for this function:

EncodeStream & DestroyUsage::encode ( EncodeStream strm) const [virtual]

Implements resip::Message.

Definition at line 69 of file DestroyUsage.cxx.

References resip::Message::brief().

{
   return strm << brief();
}

Here is the call graph for this function:

EncodeStream & DestroyUsage::encodeBrief ( EncodeStream strm) const [virtual]

Implements resip::Message.

Definition at line 47 of file DestroyUsage.cxx.

References resip::DialogSet::getId(), resip::Dialog::getId(), mDialog, mDialogSet, and mHandle.

{
   if (mDialogSet)
   {
      static Data d("DestroyDialogSet");
      strm << d << " " << mDialogSet->getId();
   }
   else if (mDialog)
   {
      static Data d("DestroyDialog");
      strm << d << " " << mDialog->getId();
   }
   else
   {
      static Data d("DestroyUsage");
      strm << d << " " << *mHandle;
   }

   return strm;
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 34 of file DestroyUsage.hxx.

Referenced by destroy(), and encodeBrief().

Definition at line 33 of file DestroyUsage.hxx.

Referenced by destroy(), and encodeBrief().

Definition at line 32 of file DestroyUsage.hxx.

Referenced by destroy(), and encodeBrief().


The documentation for this class was generated from the following files: