reSIProcate/stack  9694
Public Member Functions
TestCallback Class Reference
Inheritance diagram for TestCallback:
Inheritance graph
[legend]
Collaboration diagram for TestCallback:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void presenceUpdate (const Uri &dest, bool open, const Data &status)
virtual void receivedPage (const Data &msg, const Uri &from, const Data &signedBy, SignatureStatus sigStatus, bool wasEncryped)
virtual void sendPageFailed (const Uri &dest, int respNumber)
virtual void registrationFailed (const resip::Uri &, int respNumber)
virtual void registrationWorked (const Uri &dest)
virtual void receivePageFailed (const Uri &sender)

Detailed Description

Definition at line 313 of file limpc.cxx.


Member Function Documentation

void TestCallback::presenceUpdate ( const Uri dest,
bool  open,
const Data status 
) [virtual]

Implements resip::TuIM::Callback.

Definition at line 328 of file limpc.cxx.

References resip::Data::c_str(), displayPres(), resip::Uri::getAor(), textWin, waddstr(), and wrefresh().

{
   const char* stat = (open)?"online":"offline";
   //cout << from << " set presence to " << stat << " " << status.c_str() << endl;

   waddstr(textWin,"Status: ");
   waddstr(textWin, from.getAor().c_str());
   waddstr(textWin," is ");
   waddstr(textWin,stat);
   waddstr(textWin," ");
   waddstr(textWin,status.c_str());
   waddstr(textWin,"\n");

   wrefresh(textWin);

   displayPres();
}

Here is the call graph for this function:

void TestCallback::receivedPage ( const Data msg,
const Uri from,
const Data signedBy,
SignatureStatus  sigStatus,
bool  wasEncryped 
) [virtual]

Implements resip::TuIM::Callback.

Definition at line 347 of file limpc.cxx.

References resip::Data::c_str(), dest, resip::Data::escaped(), resip::Data::from(), resip::Uri::getAor(), textWin, waddstr(), and wrefresh().

{  
   //DebugLog(<< "In TestPageCallback");

   if ( dest != from )
   {
      dest = from;
      //cerr << "Set destination to <" << *mDest << ">" << endl;
      waddstr(textWin,"Set destination to ");
      waddstr(textWin, Data::from(dest).c_str());
      waddstr(textWin,"\n");
   }
   
   //cout << from;  

   waddstr(textWin,"From: ");
   waddstr(textWin,from.getAor().c_str());

   if ( !wasEncryped )
   {
      //cout << " -NOT SECURE- ";
      waddstr(textWin," -NOT SECURE-");
   }
   else
   {
      waddstr(textWin," -secure-");
   }
   switch ( sigStatus )
   {
      case  SignatureSelfSigned:
         //cout << " -self signed signature (bad)- ";
         waddstr(textWin,"bad signature");
         break;
      case  SignatureIsBad:
         //cout << " -bad signature- ";
         waddstr(textWin,"bad signature");
         break;
      case  SignatureNone:
         //cout << " -no signature- ";
         waddstr(textWin,"no signature");
         break;
      case  SignatureTrusted:
         //cout << " <signed  " << signedBy << " > ";
         waddstr(textWin,"signed ");
         waddstr(textWin,signedBy.c_str());
         break;
      case  SignatureCATrusted:
         //cout << " <ca signed  " << signedBy << " > ";
         waddstr(textWin,"ca signed " );
         waddstr(textWin,signedBy.c_str());
         break;
      case  SignatureNotTrusted:
         //cout << " <signed  " << signedBy << " NOT TRUSTED > ";
         waddstr(textWin,"untrusted signature ");
         waddstr(textWin,signedBy.c_str());
         break;
   }
   
   //cout << " says:" << endl;
   //cout << msg.escaped() << endl;  
   waddstr(textWin, " says: ");
   waddstr(textWin, msg.escaped().c_str() );
   waddstr(textWin, "\n");
   
   wrefresh(textWin);
}

Here is the call graph for this function:

void TestCallback::receivePageFailed ( const Uri sender) [virtual]

Implements resip::TuIM::Callback.

Definition at line 434 of file limpc.cxx.

References resip::Data::from(), textWin, waddstr(), and wrefresh().

{
   //InfoLog(<< "In TestErrCallback");  
   // cerr << "Message to " << dest << " failed" << endl;  

   waddstr(textWin,"Can not understand messager from ");
   waddstr(textWin, Data::from(target).c_str());
   waddstr(textWin,"\n");
   wrefresh(textWin);
}

Here is the call graph for this function:

void TestCallback::registrationFailed ( const resip::Uri target,
int  respNumber 
) [virtual]

Implements resip::TuIM::Callback.

Definition at line 447 of file limpc.cxx.

References resip::Data::c_str(), resip::Data::from(), textWin, waddstr(), and wrefresh().

{
   Data num(respNum);
   
   waddstr(textWin,"Registration to ");
   waddstr(textWin, Data::from(target).c_str());
   waddstr(textWin," failed (");
   waddstr(textWin,num.c_str());
   waddstr(textWin," response)\n");
   wrefresh(textWin);
}

Here is the call graph for this function:

void TestCallback::registrationWorked ( const Uri dest) [virtual]

Implements resip::TuIM::Callback.

Definition at line 461 of file limpc.cxx.

References resip::Data::from(), textWin, waddstr(), and wrefresh().

{
   waddstr(textWin,"Registration to ");
   waddstr(textWin, Data::from(target).c_str());
   waddstr(textWin," worked");
   wrefresh(textWin);
}

Here is the call graph for this function:

void TestCallback::sendPageFailed ( const Uri dest,
int  respNumber 
) [virtual]

Implements resip::TuIM::Callback.

Definition at line 418 of file limpc.cxx.

References resip::Data::c_str(), resip::Data::from(), textWin, waddstr(), and wrefresh().

{
   //InfoLog(<< "In TestErrCallback");  
   // cerr << "Message to " << dest << " failed" << endl;  
   Data num(respNum);
   
   waddstr(textWin,"Message to ");
   waddstr(textWin, Data::from(target).c_str());
   waddstr(textWin," failed (");
   waddstr(textWin,num.c_str());
   waddstr(textWin," response)\n");
   wrefresh(textWin);
}

Here is the call graph for this function:


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