reSIProcate/DialogUsageManager  9694
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends
resip::AppDialogSet Class Reference

#include <AppDialogSet.hxx>

Inheritance diagram for resip::AppDialogSet:
Inheritance graph
[legend]
Collaboration diagram for resip::AppDialogSet:
Collaboration graph
[legend]

List of all members.

Classes

class  AppDialogSetEndCommand

Public Member Functions

virtual void destroy ()
virtual void end ()
virtual void endCommand ()
virtual SharedPtr< UserProfilegetUserProfile ()
virtual AppDialogcreateAppDialog (const SipMessage &)
AppDialogSetHandle getHandle ()
DialogSetId getDialogSetId ()
virtual const Data getClassName ()
virtual EncodeStreamdump (EncodeStream &strm) const

Protected Member Functions

 AppDialogSet (DialogUsageManager &dum)
virtual ~AppDialogSet ()
virtual SharedPtr< UserProfileselectUASUserProfile (const SipMessage &)

Protected Attributes

DialogUsageManagermDum

Private Member Functions

AppDialogSetreuse ()
 Prepare for association with a different dialog set id.
bool isReUsed () const

Private Attributes

DialogSetmDialogSet
bool mIsReUsed

Friends

class DialogUsageManager
class AppDialogSetFactory
class ClientSubscription

Detailed Description

Definition at line 17 of file AppDialogSet.hxx.


Constructor & Destructor Documentation

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.

{}

Member Function Documentation

AppDialog * AppDialogSet::createAppDialog ( const SipMessage ) [virtual]

Reimplemented in testAppDialogSet.

Definition at line 68 of file AppDialogSet.cxx.

References mDum.

Referenced by resip::DialogSet::dispatch().

{
   return new AppDialog(mDum);
}
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();
   }
}

Here is the call graph for this function:

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));
}

Here is the call graph for this function:

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);
   }
}

Here is the call graph for this function:

AppDialogSetHandle AppDialogSet::getHandle ( )
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>();
   }
}

Here is the call graph for this function:

bool AppDialogSet::isReUsed ( ) const [private]

Definition at line 98 of file AppDialogSet.cxx.

References mIsReUsed.

{
   return mIsReUsed;
}
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;
}

Here is the call graph for this function:

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();
}

Here is the call graph for this function:


Friends And Related Function Documentation

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.


Member Data Documentation

Definition at line 69 of file AppDialogSet.hxx.

Referenced by createAppDialog(), endCommand(), and selectUASUserProfile().

Definition at line 88 of file AppDialogSet.hxx.

Referenced by isReUsed(), and reuse().


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