|
reSIProcate/repro
9694
|
#include <Registrar.hxx>


Public Member Functions | |
| Registrar () | |
| virtual | ~Registrar () |
| virtual void | addRegistrarHandler (RegistrarHandler *handler) |
| virtual void | onRefresh (resip::ServerRegistrationHandle, const resip::SipMessage ®) |
| virtual void | onRemove (resip::ServerRegistrationHandle, const resip::SipMessage ®) |
| virtual void | onRemoveAll (resip::ServerRegistrationHandle, const resip::SipMessage ®) |
| virtual void | onAdd (resip::ServerRegistrationHandle, const resip::SipMessage ®) |
| virtual void | onQuery (resip::ServerRegistrationHandle, const resip::SipMessage ®) |
Private Attributes | |
| std::list< RegistrarHandler * > | mRegistrarHandlers |
Definition at line 39 of file Registrar.hxx.
| Registrar::Registrar | ( | ) |
Definition at line 15 of file Registrar.cxx.
{
}
| Registrar::~Registrar | ( | ) | [virtual] |
Definition at line 19 of file Registrar.cxx.
{
}
| void Registrar::addRegistrarHandler | ( | RegistrarHandler * | handler | ) | [virtual] |
Definition at line 24 of file Registrar.cxx.
{
mRegistrarHandlers.push_back(handler);
}
| void Registrar::onAdd | ( | resip::ServerRegistrationHandle | sr, |
| const resip::SipMessage & | reg | ||
| ) | [virtual] |
Implements resip::ServerRegistrationHandler.
Definition at line 81 of file Registrar.cxx.
{
DebugLog (<< "Registrar::onAdd " << reg.brief());
std::list<RegistrarHandler*>::iterator it = mRegistrarHandlers.begin();
bool continueProcessing = true;
for(; it != mRegistrarHandlers.end() && continueProcessing; it++)
{
continueProcessing = (*it)->onAdd(sr, reg);
}
if(continueProcessing)
{
sr->accept();
}
}
| void Registrar::onQuery | ( | resip::ServerRegistrationHandle | sr, |
| const resip::SipMessage & | reg | ||
| ) | [virtual] |
Implements resip::ServerRegistrationHandler.
Definition at line 98 of file Registrar.cxx.
{
std::list<RegistrarHandler*>::iterator it = mRegistrarHandlers.begin();
bool continueProcessing = true;
for(; it != mRegistrarHandlers.end() && continueProcessing; it++)
{
continueProcessing = (*it)->onQuery(sr, reg);
}
if(continueProcessing)
{
sr->accept();
}
}
| void Registrar::onRefresh | ( | resip::ServerRegistrationHandle | sr, |
| const resip::SipMessage & | reg | ||
| ) | [virtual] |
Implements resip::ServerRegistrationHandler.
Definition at line 30 of file Registrar.cxx.
{
DebugLog (<< "Registrar::onRefresh " << reg.brief());
std::list<RegistrarHandler*>::iterator it = mRegistrarHandlers.begin();
bool continueProcessing = true;
for(; it != mRegistrarHandlers.end() && continueProcessing; it++)
{
continueProcessing = (*it)->onRefresh(sr, reg);
}
if(continueProcessing)
{
sr->accept();
}
}
| void Registrar::onRemove | ( | resip::ServerRegistrationHandle | sr, |
| const resip::SipMessage & | reg | ||
| ) | [virtual] |
Implements resip::ServerRegistrationHandler.
Definition at line 47 of file Registrar.cxx.
{
DebugLog (<< "Registrar::onRemove " << reg.brief());
std::list<RegistrarHandler*>::iterator it = mRegistrarHandlers.begin();
bool continueProcessing = true;
for(; it != mRegistrarHandlers.end() && continueProcessing; it++)
{
continueProcessing = (*it)->onRemove(sr, reg);
}
if(continueProcessing)
{
sr->accept();
}
}
| void Registrar::onRemoveAll | ( | resip::ServerRegistrationHandle | sr, |
| const resip::SipMessage & | reg | ||
| ) | [virtual] |
Implements resip::ServerRegistrationHandler.
Definition at line 64 of file Registrar.cxx.
{
DebugLog (<< "Registrar::onRemoveAll " << reg.brief());
std::list<RegistrarHandler*>::iterator it = mRegistrarHandlers.begin();
bool continueProcessing = true;
for(; it != mRegistrarHandlers.end() && continueProcessing; it++)
{
continueProcessing = (*it)->onRemoveAll(sr, reg);
}
if(continueProcessing)
{
sr->accept();
}
}
std::list<RegistrarHandler*> repro::Registrar::mRegistrarHandlers [private] |
Definition at line 54 of file Registrar.hxx.
1.7.5.1