reSIProcate/repro  9694
Public Member Functions | Static Public Member Functions | Protected Attributes
repro::OutboundTarget Class Reference

#include <OutboundTarget.hxx>

Inheritance diagram for repro::OutboundTarget:
Inheritance graph
[legend]
Collaboration diagram for repro::OutboundTarget:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 OutboundTarget (const resip::Data &aor, const resip::ContactList &recs)
virtual ~OutboundTarget ()
OutboundTargetnextInstance ()
virtual OutboundTargetclone () const
const resip::DatagetAor () const

Static Public Member Functions

static bool instanceCompare (const resip::ContactInstanceRecord &lhs, const resip::ContactInstanceRecord &rhs)

Protected Attributes

resip::Data mAor
resip::ContactList mList

Detailed Description

Definition at line 8 of file OutboundTarget.hxx.


Constructor & Destructor Documentation

repro::OutboundTarget::OutboundTarget ( const resip::Data aor,
const resip::ContactList recs 
)

Definition at line 6 of file OutboundTarget.cxx.

                                                             :
   QValueTarget(recs.empty() ? resip::ContactInstanceRecord() : recs.front()),
   mAor(aor),
   mList(recs)
{
   if(!mList.empty())
   {
      mList.pop_front();
   }
}
repro::OutboundTarget::~OutboundTarget ( ) [virtual]

Definition at line 18 of file OutboundTarget.cxx.

{}

Member Function Documentation

OutboundTarget * repro::OutboundTarget::clone ( ) const [virtual]

Reimplemented from repro::QValueTarget.

Definition at line 34 of file OutboundTarget.cxx.

{
   return new OutboundTarget(*this);
}
const resip::Data& repro::OutboundTarget::getAor ( ) const [inline]

Definition at line 25 of file OutboundTarget.hxx.

{ return mAor;} 
static bool repro::OutboundTarget::instanceCompare ( const resip::ContactInstanceRecord lhs,
const resip::ContactInstanceRecord rhs 
) [inline, static]

Definition at line 19 of file OutboundTarget.hxx.

      {
         return lhs.mLastUpdated > rhs.mLastUpdated;
      }
OutboundTarget * repro::OutboundTarget::nextInstance ( )

Definition at line 22 of file OutboundTarget.cxx.

{
   if(mList.size() <= 1)
   {
      return 0;
   }

   mList.pop_front();
   return new OutboundTarget(mAor, mList);
}

Member Data Documentation

Definition at line 28 of file OutboundTarget.hxx.

Definition at line 29 of file OutboundTarget.hxx.


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