reSIProcate/stack  9694
Public Member Functions | Private Attributes
resip::TestMarkListener Class Reference
Inheritance diagram for resip::TestMarkListener:
Inheritance graph
[legend]
Collaboration diagram for resip::TestMarkListener:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TestMarkListener (const resip::Tuple &listenFor)
virtual ~TestMarkListener ()
virtual void onMark (const Tuple &tuple, UInt64 &expiry, TupleMarkManager::MarkType &mark)
bool gotOkCallback () const
bool gotGreylistCallback () const
bool gotBlacklistCallback () const
void resetAll ()

Private Attributes

Tuple mTuple
bool mGotOkCallback
bool mGotGreylistCallback
bool mGotBlacklistCallback

Detailed Description

Definition at line 214 of file testDns.cxx.


Constructor & Destructor Documentation

resip::TestMarkListener::TestMarkListener ( const resip::Tuple listenFor) [inline]

Definition at line 217 of file testDns.cxx.

         : mTuple(listenFor),
         mGotOkCallback(false),
         mGotGreylistCallback(false), 
         mGotBlacklistCallback(false)
      {}
virtual resip::TestMarkListener::~TestMarkListener ( ) [inline, virtual]

Definition at line 223 of file testDns.cxx.

{}

Member Function Documentation

bool resip::TestMarkListener::gotBlacklistCallback ( ) const [inline]

Definition at line 248 of file testDns.cxx.

Referenced by main().

bool resip::TestMarkListener::gotGreylistCallback ( ) const [inline]

Definition at line 247 of file testDns.cxx.

Referenced by main().

bool resip::TestMarkListener::gotOkCallback ( ) const [inline]

Definition at line 246 of file testDns.cxx.

Referenced by main().

{return mGotOkCallback;}
virtual void resip::TestMarkListener::onMark ( const Tuple tuple,
UInt64 expiry,
TupleMarkManager::MarkType mark 
) [inline, virtual]

Implements resip::MarkListener.

Definition at line 225 of file testDns.cxx.

      {
         if(mTuple == tuple)
         {
            switch(mark)
            {
               case TupleMarkManager::OK:
                  mGotOkCallback=true;
                  break;
               case TupleMarkManager::GREY:
                  mGotGreylistCallback=true;
                  break;
               case TupleMarkManager::BLACK:
                  mGotBlacklistCallback=true;
                  break;
               default:
                  ;
            }
         }
      }
void resip::TestMarkListener::resetAll ( ) [inline]

Definition at line 250 of file testDns.cxx.

Referenced by main().


Member Data Documentation

Definition at line 260 of file testDns.cxx.

Definition at line 259 of file testDns.cxx.

Definition at line 258 of file testDns.cxx.

Definition at line 257 of file testDns.cxx.


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