reSIProcate/DialogUsageManager  9694
Public Member Functions | Protected Attributes
TestIdentityHandler Class Reference
Inheritance diagram for TestIdentityHandler:
Inheritance graph
[legend]
Collaboration diagram for TestIdentityHandler:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TestIdentityHandler ()
bool isRegistered ()
bool isEnded ()
bool isRcvd ()
virtual void onMessageArrived (ServerPagerMessageHandle handle, const SipMessage &message)
virtual void onSuccess (ClientPagerMessageHandle, const SipMessage &status)
virtual void onFailure (ClientPagerMessageHandle, const SipMessage &status, std::auto_ptr< Contents > contents)
 kh!
virtual void onSuccess (ClientRegistrationHandle, const SipMessage &response)
 Called when registraion succeeds or each time it is sucessfully refreshed.
virtual void onRemoved (ClientRegistrationHandle)
virtual void onFailure (ClientRegistrationHandle, const SipMessage &response)
 Called if registration fails, usage will be destroyed (unless a Registration retry interval is enabled in the Profile)
virtual int onRequestRetry (ClientRegistrationHandle, int retrySeconds, const SipMessage &response)
 call on Retry-After failure.

Protected Attributes

bool _registered
bool _ended
bool _rcvd

Detailed Description

Definition at line 38 of file testIdentity.cxx.


Constructor & Destructor Documentation

TestIdentityHandler::TestIdentityHandler ( ) [inline]

Definition at line 43 of file testIdentity.cxx.

                            : _registered(false), _ended(false), _rcvd(false)
      {};

Member Function Documentation

bool TestIdentityHandler::isEnded ( ) [inline]

Definition at line 51 of file testIdentity.cxx.

Referenced by main().

      {
         return _ended;
      };
bool TestIdentityHandler::isRcvd ( ) [inline]

Definition at line 56 of file testIdentity.cxx.

Referenced by main().

      {
         return _rcvd;
      };
bool TestIdentityHandler::isRegistered ( ) [inline]

Definition at line 46 of file testIdentity.cxx.

Referenced by main().

      {
         return _registered;
      };
virtual void TestIdentityHandler::onFailure ( ClientPagerMessageHandle  ,
const SipMessage status,
std::auto_ptr< Contents contents 
) [inline, virtual]

kh!

Implements resip::ClientPagerMessageHandler.

Definition at line 86 of file testIdentity.cxx.

References InfoLog.

      {
         InfoLog( << "ClientMessageHandler::onFailure\n" );
         _ended = true;
      }
virtual void TestIdentityHandler::onFailure ( ClientRegistrationHandle  ,
const SipMessage response 
) [inline, virtual]

Called if registration fails, usage will be destroyed (unless a Registration retry interval is enabled in the Profile)

Implements resip::ClientRegistrationHandler.

Definition at line 107 of file testIdentity.cxx.

References InfoLog.

      {
         InfoLog( << "ClientRegistrationHandler::onFailure\n" );
         exit(-1);
      }
virtual void TestIdentityHandler::onMessageArrived ( ServerPagerMessageHandle  handle,
const SipMessage message 
) [inline, virtual]

Implements resip::ServerPagerMessageHandler.

Definition at line 61 of file testIdentity.cxx.

References resip::SipMessage::getContents(), resip::SipMessage::getSecurityAttributes(), and InfoLog.

      {
         
         SipMessage ok = handle->accept();
         handle->send(ok);

         Contents *body = message.getContents();

         InfoLog( << "ServerPagerMessageHandler::onMessageArrived: "
                  << *body << "\n" );

         const SecurityAttributes *attr = message.getSecurityAttributes();
         InfoLog( << *attr );
         
         _rcvd = true;
      }

Here is the call graph for this function:

virtual void TestIdentityHandler::onRemoved ( ClientRegistrationHandle  ) [inline, virtual]

Definition at line 101 of file testIdentity.cxx.

References InfoLog.

      {
         InfoLog( << "ClientRegistrationHander::onRemoved\n" );
         exit(-1);
      }
virtual int TestIdentityHandler::onRequestRetry ( ClientRegistrationHandle  ,
int  retrySeconds,
const SipMessage response 
) [inline, virtual]

call on Retry-After failure.

return values: -1 = fail, 0 = retry immediately, N = retry in N seconds

Implements resip::ClientRegistrationHandler.

Definition at line 114 of file testIdentity.cxx.

References InfoLog.

      {
         InfoLog( << "ClientRegistrationHandler::onRequestRetry\n" );
         exit(-1);
      }
virtual void TestIdentityHandler::onSuccess ( ClientPagerMessageHandle  ,
const SipMessage status 
) [inline, virtual]

Implements resip::ClientPagerMessageHandler.

Definition at line 79 of file testIdentity.cxx.

References InfoLog.

      {
         InfoLog( << "ClientMessageHandler::onSuccess\n" );
         _ended = true;
      }
virtual void TestIdentityHandler::onSuccess ( ClientRegistrationHandle  ,
const SipMessage response 
) [inline, virtual]

Called when registraion succeeds or each time it is sucessfully refreshed.

Implements resip::ClientRegistrationHandler.

Definition at line 94 of file testIdentity.cxx.

References InfoLog.

      {
         InfoLog( << "ClientRegistrationHandler::onSuccess\n" );
         _registered = true;
      }

Member Data Documentation

bool TestIdentityHandler::_ended [protected]

Definition at line 123 of file testIdentity.cxx.

bool TestIdentityHandler::_rcvd [protected]

Definition at line 124 of file testIdentity.cxx.

Definition at line 122 of file testIdentity.cxx.


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