|
reSIProcate/DialogUsageManager
9694
|
#include <AppDialogSet.hxx>


Classes | |
| class | AppDialogSetEndCommand |
Public Member Functions | |
| virtual void | destroy () |
| virtual void | end () |
| virtual void | endCommand () |
| virtual SharedPtr< UserProfile > | getUserProfile () |
| virtual AppDialog * | createAppDialog (const SipMessage &) |
| AppDialogSetHandle | getHandle () |
| DialogSetId | getDialogSetId () |
| virtual const Data | getClassName () |
| virtual EncodeStream & | dump (EncodeStream &strm) const |
Protected Member Functions | |
| AppDialogSet (DialogUsageManager &dum) | |
| virtual | ~AppDialogSet () |
| virtual SharedPtr< UserProfile > | selectUASUserProfile (const SipMessage &) |
Protected Attributes | |
| DialogUsageManager & | mDum |
Private Member Functions | |
| AppDialogSet * | reuse () |
| Prepare for association with a different dialog set id. | |
| bool | isReUsed () const |
Private Attributes | |
| DialogSet * | mDialogSet |
| bool | mIsReUsed |
Friends | |
| class | DialogUsageManager |
| class | AppDialogSetFactory |
| class | ClientSubscription |
Definition at line 17 of file AppDialogSet.hxx.
| AppDialogSet::AppDialogSet | ( | DialogUsageManager & | dum | ) | [protected] |
Definition at line 9 of file AppDialogSet.cxx.
: Handled(dum), mDum(dum), mDialogSet(0), mIsReUsed(false) {}
| AppDialogSet::~AppDialogSet | ( | ) | [protected, virtual] |
Definition at line 16 of file AppDialogSet.cxx.
{}
| AppDialog * AppDialogSet::createAppDialog | ( | const SipMessage & | ) | [virtual] |
Reimplemented in testAppDialogSet.
Definition at line 68 of file AppDialogSet.cxx.
References mDum.
Referenced by resip::DialogSet::dispatch().
| void AppDialogSet::destroy | ( | ) | [virtual] |
Definition at line 26 of file AppDialogSet.cxx.
Referenced by resip::DialogSet::~DialogSet().
{
delete this;
}
| EncodeStream & AppDialogSet::dump | ( | EncodeStream & | strm | ) | const [virtual] |
Implements resip::Handled.
Definition at line 110 of file AppDialogSet.cxx.
References resip::Handled::mId.
{
strm << "AppDialogSet " << mId;
return strm;
}
| void AppDialogSet::end | ( | ) | [virtual] |
Definition at line 32 of file AppDialogSet.cxx.
References resip::DialogSet::end(), and mDialogSet.
Referenced by resip::BasicClientCall::terminateCall().
{
if (mDialogSet)
{
mDialogSet->end();
}
}

| void AppDialogSet::endCommand | ( | ) | [virtual] |
Definition at line 41 of file AppDialogSet.cxx.
References getHandle(), mDum, and resip::TransactionUser::post().
{
AppDialogSetHandle handle = getHandle();
mDum.post(new AppDialogSetEndCommand(handle));
}

| const Data AppDialogSet::getClassName | ( | ) | [virtual] |
Definition at line 104 of file AppDialogSet.cxx.
{
return "AppDialogSet";
}
| DialogSetId AppDialogSet::getDialogSetId | ( | ) |
Definition at line 74 of file AppDialogSet.cxx.
References resip::Data::Empty, resip::DialogSet::getId(), and mDialogSet.
{
if (mDialogSet)
{
return mDialogSet->getId();
}
else
{
return DialogSetId(Data::Empty, Data::Empty);
}
}

| AppDialogSetHandle AppDialogSet::getHandle | ( | ) |
Definition at line 20 of file AppDialogSet.cxx.
References resip::Handled::mHam, and resip::Handled::mId.
Referenced by resip::DialogSet::dispatch(), endCommand(), resip::DialogUsageManager::findAppDialogSet(), resip::NonDialogUsage::getAppDialogSet(), resip::DialogUsage::getAppDialogSet(), and resip::RedirectManager::handle().
{
return AppDialogSetHandle(mHam, mId);
}
| SharedPtr< UserProfile > AppDialogSet::getUserProfile | ( | ) | [virtual] |
Definition at line 55 of file AppDialogSet.cxx.
References resip::DialogSet::getUserProfile(), and mDialogSet.
Referenced by resip::BasicClientCall::onFlowTerminated().
{
if(mDialogSet)
{
return mDialogSet->getUserProfile();
}
else
{
return SharedPtr<UserProfile>();
}
}

| bool AppDialogSet::isReUsed | ( | ) | const [private] |
| AppDialogSet * AppDialogSet::reuse | ( | ) | [private] |
Prepare for association with a different dialog set id.
Need this when the initial message changes (408/Retry-After) but the application doesn't want to know.
Definition at line 87 of file AppDialogSet.cxx.
References resip::DialogSet::appDissociate(), mDialogSet, and mIsReUsed.
{
assert(mDialogSet);
mDialogSet->appDissociate();
mDialogSet = 0;
mIsReUsed = true;
return this;
}

| SharedPtr< UserProfile > AppDialogSet::selectUASUserProfile | ( | const SipMessage & | ) | [protected, virtual] |
Reimplemented in testAppDialogSet, and resip::BasicClientCall.
Definition at line 48 of file AppDialogSet.cxx.
References resip::DialogUsageManager::getMasterUserProfile(), and mDum.
{
// Default is Master Profile - override this method to select a different userProfile for UAS DialogSets
return mDum.getMasterUserProfile();
}

friend class AppDialogSetFactory [friend] |
Definition at line 84 of file AppDialogSet.hxx.
friend class ClientSubscription [friend] |
Definition at line 85 of file AppDialogSet.hxx.
friend class DialogUsageManager [friend] |
Definition at line 83 of file AppDialogSet.hxx.
DialogSet* resip::AppDialogSet::mDialogSet [private] |
Definition at line 87 of file AppDialogSet.hxx.
Referenced by end(), getDialogSetId(), getUserProfile(), resip::DialogUsageManager::makeUacDialogSet(), and reuse().
DialogUsageManager& resip::AppDialogSet::mDum [protected] |
Definition at line 69 of file AppDialogSet.hxx.
Referenced by createAppDialog(), endCommand(), and selectUASUserProfile().
bool resip::AppDialogSet::mIsReUsed [private] |
Definition at line 88 of file AppDialogSet.hxx.
Referenced by isReUsed(), and reuse().
1.7.5.1