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

Definition at line 15 of file DialogEventInfo.hxx.
Definition at line 27 of file DialogEventInfo.hxx.
Definition at line 33 of file DialogEventInfo.hxx.
{
Trying = 0,
Proceeding,
Early,
Confirmed,
Terminated
};
| resip::DialogEventInfo::DialogEventInfo | ( | void | ) |
Definition at line 7 of file DialogEventInfo.cxx.
| resip::DialogEventInfo::DialogEventInfo | ( | const DialogEventInfo & | rhs | ) |
Definition at line 17 of file DialogEventInfo.cxx.
References mLocalOfferAnswer, mRemoteOfferAnswer, and mReplacesId.
: mState(rhs.mState), mDialogEventId(rhs.mDialogEventId), mDialogId(rhs.mDialogId), mDirection(rhs.mDirection), mInviteSession(rhs.mInviteSession), mReferredBy(rhs.mReferredBy.get() ? new NameAddr(*rhs.mReferredBy) : 0), mRouteSet(rhs.mRouteSet), mLocalIdentity(rhs.mLocalIdentity), mRemoteIdentity(rhs.mRemoteIdentity), mLocalTarget(rhs.mLocalTarget), mRemoteTarget(rhs.mRemoteTarget.get() ? new Uri(*rhs.mRemoteTarget) : 0), mCreationTimeSeconds(rhs.mCreationTimeSeconds), mReplaced(rhs.mReplaced) { if (rhs.mReplacesId.get()) { mReplacesId = std::auto_ptr<DialogId>(new DialogId(rhs.mReplacesId->getCallId(), rhs.mReplacesId->getLocalTag(), rhs.mReplacesId->getRemoteTag())); } if (rhs.mLocalOfferAnswer.get()) { mLocalOfferAnswer = std::auto_ptr<Contents>(rhs.mLocalOfferAnswer->clone()); } if (rhs.mRemoteOfferAnswer.get()) { mRemoteOfferAnswer = std::auto_ptr<Contents>(rhs.mRemoteOfferAnswer->clone()); } }
| const Data & resip::DialogEventInfo::getCallId | ( | ) | const |
Definition at line 133 of file DialogEventInfo.cxx.
References resip::DialogId::getCallId(), and mDialogId.
{
return mDialogId.getCallId();
}

| const Data & resip::DialogEventInfo::getDialogEventId | ( | ) | const |
Definition at line 127 of file DialogEventInfo.cxx.
References mDialogEventId.
{
return mDialogEventId;
}
| DialogEventInfo::Direction resip::DialogEventInfo::getDirection | ( | ) | const |
| UInt64 resip::DialogEventInfo::getDurationSeconds | ( | ) | const |
Definition at line 251 of file DialogEventInfo.cxx.
References resip::Timer::getTimeSecs(), and mCreationTimeSeconds.
{
UInt64 delta = Timer::getTimeSecs() - mCreationTimeSeconds;
return delta;
}

| const NameAddr & resip::DialogEventInfo::getLocalIdentity | ( | ) | const |
Definition at line 169 of file DialogEventInfo.cxx.
References mLocalIdentity.
{
return mLocalIdentity;
}
| const Contents & resip::DialogEventInfo::getLocalOfferAnswer | ( | ) | const |
Definition at line 211 of file DialogEventInfo.cxx.
References resip::Handle< T >::isValid(), mInviteSession, and mLocalOfferAnswer.
{
if (mInviteSession.isValid())
{
if (mInviteSession->hasLocalOfferAnswer())
{
return mInviteSession->getLocalOfferAnswer();
}
}
assert(mLocalOfferAnswer.get() != NULL);
return *mLocalOfferAnswer;
}

| const Data & resip::DialogEventInfo::getLocalTag | ( | ) | const |
Definition at line 139 of file DialogEventInfo.cxx.
References resip::DialogId::getLocalTag(), and mDialogId.
{
return mDialogId.getLocalTag();
}

| const Uri & resip::DialogEventInfo::getLocalTarget | ( | ) | const |
Definition at line 181 of file DialogEventInfo.cxx.
References mLocalTarget.
{
return mLocalTarget;
}
| const NameAddr & resip::DialogEventInfo::getRefferredBy | ( | ) | const |
Definition at line 163 of file DialogEventInfo.cxx.
References mReferredBy.
{
return *mReferredBy;
}
| const NameAddr & resip::DialogEventInfo::getRemoteIdentity | ( | ) | const |
Definition at line 175 of file DialogEventInfo.cxx.
References mRemoteIdentity.
{
return mRemoteIdentity;
}
| const Contents & resip::DialogEventInfo::getRemoteOfferAnswer | ( | ) | const |
Definition at line 225 of file DialogEventInfo.cxx.
References resip::Handle< T >::isValid(), mInviteSession, and mRemoteOfferAnswer.
{
if (mInviteSession.isValid())
{
if (mInviteSession->hasRemoteOfferAnswer())
{
return mInviteSession->getRemoteOfferAnswer();
}
}
assert(mRemoteOfferAnswer.get() != NULL);
return *mRemoteOfferAnswer;
}

| const Data & resip::DialogEventInfo::getRemoteTag | ( | ) | const |
Definition at line 151 of file DialogEventInfo.cxx.
References resip::DialogId::getRemoteTag(), and mDialogId.
{
return mDialogId.getRemoteTag();
}

| const Uri & resip::DialogEventInfo::getRemoteTarget | ( | ) | const |
Definition at line 205 of file DialogEventInfo.cxx.
References mRemoteTarget.
{
return *mRemoteTarget;
}
| const DialogId & resip::DialogEventInfo::getReplacesId | ( | ) | const |
Definition at line 264 of file DialogEventInfo.cxx.
References mReplacesId.
{
return *mReplacesId;
}
| const NameAddrs & resip::DialogEventInfo::getRouteSet | ( | ) | const |
| const DialogEventInfo::State & resip::DialogEventInfo::getState | ( | ) | const |
| bool resip::DialogEventInfo::hasLocalOfferAnswer | ( | ) | const |
Definition at line 239 of file DialogEventInfo.cxx.
References resip::Handle< T >::isValid(), mInviteSession, and mLocalOfferAnswer.
{
return (mInviteSession.isValid() ? mInviteSession->hasLocalOfferAnswer() : mLocalOfferAnswer.get() != 0);
}

| bool resip::DialogEventInfo::hasRefferedBy | ( | ) | const |
Definition at line 157 of file DialogEventInfo.cxx.
References mReferredBy.
{
return (mReferredBy.get() != NULL);
}
| bool resip::DialogEventInfo::hasRemoteOfferAnswer | ( | ) | const |
Definition at line 245 of file DialogEventInfo.cxx.
References resip::Handle< T >::isValid(), mInviteSession, and mRemoteOfferAnswer.
{
return (mInviteSession.isValid() ? mInviteSession->hasRemoteOfferAnswer() : mRemoteOfferAnswer.get() != 0);
}

| bool resip::DialogEventInfo::hasRemoteTag | ( | ) | const |
Definition at line 145 of file DialogEventInfo.cxx.
References resip::Data::Empty, resip::DialogId::getRemoteTag(), and mDialogId.
{
return (mDialogId.getRemoteTag() != Data::Empty);
}

| bool resip::DialogEventInfo::hasRemoteTarget | ( | ) | const |
Definition at line 199 of file DialogEventInfo.cxx.
References mRemoteTarget.
{
return (mRemoteTarget.get() != NULL);
}
| bool resip::DialogEventInfo::hasReplacesId | ( | ) | const |
Definition at line 258 of file DialogEventInfo.cxx.
References mReplacesId.
{
return (mReplacesId.get() != 0);
}
| bool resip::DialogEventInfo::hasRouteSet | ( | ) | const |
Definition at line 187 of file DialogEventInfo.cxx.
{
return false;
}
| bool resip::DialogEventInfo::operator!= | ( | const DialogEventInfo & | rhs | ) | const |
Definition at line 109 of file DialogEventInfo.cxx.
References mDialogEventId.
{
return (mDialogEventId != rhs.mDialogEventId);
}
| bool resip::DialogEventInfo::operator< | ( | const DialogEventInfo & | rhs | ) | const |
Definition at line 115 of file DialogEventInfo.cxx.
References mDialogEventId.
{
return (mDialogEventId < rhs.mDialogEventId);
}
| DialogEventInfo & resip::DialogEventInfo::operator= | ( | const DialogEventInfo & | dialogEventInfo | ) |
Definition at line 49 of file DialogEventInfo.cxx.
References mCreationTimeSeconds, mDialogEventId, mDialogId, mDirection, mInviteSession, mLocalIdentity, mLocalOfferAnswer, mLocalTarget, mReferredBy, mRemoteIdentity, mRemoteOfferAnswer, mRemoteTarget, mReplaced, mReplacesId, mRouteSet, and mState.
{
if (this != &dialogEventInfo)
{
mDialogId = dialogEventInfo.mDialogId;
mState = dialogEventInfo.mState;
mCreationTimeSeconds = dialogEventInfo.mCreationTimeSeconds;
mDialogEventId = dialogEventInfo.mDialogEventId;
mDirection = dialogEventInfo.mDirection;
mInviteSession = dialogEventInfo.mInviteSession;
mLocalIdentity = dialogEventInfo.mLocalIdentity;
mLocalOfferAnswer.reset(0);
mReferredBy.reset(0);
mRemoteOfferAnswer.reset(0);
mRemoteTarget.reset(0);
mReplacesId.reset(0);
if(dialogEventInfo.mLocalOfferAnswer.get())
{
mLocalOfferAnswer.reset(dialogEventInfo.mLocalOfferAnswer->clone());
}
if(dialogEventInfo.mReferredBy.get())
{
mReferredBy.reset((NameAddr*)(dialogEventInfo.mReferredBy->clone()));
}
if(dialogEventInfo.mRemoteOfferAnswer.get())
{
mRemoteOfferAnswer.reset(dialogEventInfo.mRemoteOfferAnswer->clone());
}
if(dialogEventInfo.mRemoteTarget.get())
{
mRemoteTarget.reset((Uri*)dialogEventInfo.mRemoteTarget->clone());
}
if(dialogEventInfo.mReplacesId.get())
{
mReplacesId.reset(
new DialogId(dialogEventInfo.mReplacesId->getDialogSetId(),
dialogEventInfo.mReplacesId->getRemoteTag()));
}
mLocalTarget = dialogEventInfo.mLocalTarget;
mRemoteIdentity = dialogEventInfo.mRemoteIdentity;
mRouteSet = dialogEventInfo.mRouteSet;
mReplaced = dialogEventInfo.mReplaced;
}
return *this;
}
| bool resip::DialogEventInfo::operator== | ( | const DialogEventInfo & | rhs | ) | const |
Definition at line 103 of file DialogEventInfo.cxx.
References mDialogEventId.
{
return (mDialogEventId == rhs.mDialogEventId);
}
friend class DialogEventStateManager [friend] |
Definition at line 77 of file DialogEventInfo.hxx.
UInt64 resip::DialogEventInfo::mCreationTimeSeconds [protected] |
Definition at line 98 of file DialogEventInfo.hxx.
Referenced by resip::DialogEventStateManager::findOrCreateDialogInfo(), getDurationSeconds(), resip::DialogEventStateManager::onTryingUac(), resip::DialogEventStateManager::onTryingUas(), and operator=().
Data resip::DialogEventInfo::mDialogEventId [protected] |
Definition at line 80 of file DialogEventInfo.hxx.
Referenced by resip::DialogEventStateManager::findOrCreateDialogInfo(), getDialogEventId(), resip::DialogEventStateManager::onTryingUac(), resip::DialogEventStateManager::onTryingUas(), operator!=(), operator<(), operator=(), and operator==().
DialogId resip::DialogEventInfo::mDialogId [protected] |
Definition at line 83 of file DialogEventInfo.hxx.
Referenced by resip::DialogEventStateManager::findOrCreateDialogInfo(), getCallId(), getLocalTag(), getRemoteTag(), hasRemoteTag(), resip::DialogEventStateManager::onTryingUac(), resip::DialogEventStateManager::onTryingUas(), and operator=().
Direction resip::DialogEventInfo::mDirection [protected] |
Definition at line 84 of file DialogEventInfo.hxx.
Referenced by getDirection(), resip::DialogEventStateManager::onTryingUac(), resip::DialogEventStateManager::onTryingUas(), and operator=().
Definition at line 87 of file DialogEventInfo.hxx.
Referenced by getLocalOfferAnswer(), getRemoteOfferAnswer(), hasLocalOfferAnswer(), hasRemoteOfferAnswer(), resip::DialogEventStateManager::onConfirmed(), resip::DialogEventStateManager::onEarly(), resip::DialogEventStateManager::onTryingUac(), resip::DialogEventStateManager::onTryingUas(), and operator=().
NameAddr resip::DialogEventInfo::mLocalIdentity [protected] |
Definition at line 93 of file DialogEventInfo.hxx.
Referenced by getLocalIdentity(), resip::DialogEventStateManager::onTryingUac(), resip::DialogEventStateManager::onTryingUas(), and operator=().
std::auto_ptr<Contents> resip::DialogEventInfo::mLocalOfferAnswer [protected] |
Definition at line 100 of file DialogEventInfo.hxx.
Referenced by DialogEventInfo(), getLocalOfferAnswer(), hasLocalOfferAnswer(), resip::DialogEventStateManager::onTryingUac(), and operator=().
Uri resip::DialogEventInfo::mLocalTarget [protected] |
Definition at line 95 of file DialogEventInfo.hxx.
Referenced by getLocalTarget(), resip::DialogEventStateManager::onConfirmed(), resip::DialogEventStateManager::onEarly(), resip::DialogEventStateManager::onTryingUac(), resip::DialogEventStateManager::onTryingUas(), and operator=().
std::auto_ptr<NameAddr> resip::DialogEventInfo::mReferredBy [protected] |
Definition at line 89 of file DialogEventInfo.hxx.
Referenced by getRefferredBy(), hasRefferedBy(), resip::DialogEventStateManager::onTryingUac(), resip::DialogEventStateManager::onTryingUas(), and operator=().
NameAddr resip::DialogEventInfo::mRemoteIdentity [protected] |
Definition at line 94 of file DialogEventInfo.hxx.
Referenced by resip::DialogEventStateManager::findOrCreateDialogInfo(), getRemoteIdentity(), resip::DialogEventStateManager::onTryingUac(), resip::DialogEventStateManager::onTryingUas(), and operator=().
std::auto_ptr<Contents> resip::DialogEventInfo::mRemoteOfferAnswer [protected] |
Definition at line 101 of file DialogEventInfo.hxx.
Referenced by DialogEventInfo(), getRemoteOfferAnswer(), hasRemoteOfferAnswer(), resip::DialogEventStateManager::onTryingUas(), and operator=().
std::auto_ptr<Uri> resip::DialogEventInfo::mRemoteTarget [protected] |
Definition at line 96 of file DialogEventInfo.hxx.
Referenced by resip::DialogEventStateManager::findOrCreateDialogInfo(), getRemoteTarget(), hasRemoteTarget(), resip::DialogEventStateManager::onConfirmed(), resip::DialogEventStateManager::onDialogTerminatedImpl(), resip::DialogEventStateManager::onEarly(), resip::DialogEventStateManager::onProceedingUac(), resip::DialogEventStateManager::onTryingUas(), and operator=().
bool resip::DialogEventInfo::mReplaced [private] |
Definition at line 104 of file DialogEventInfo.hxx.
Referenced by resip::DialogEventStateManager::onDialogTerminatedImpl(), and operator=().
std::auto_ptr<DialogId> resip::DialogEventInfo::mReplacesId [protected] |
Definition at line 86 of file DialogEventInfo.hxx.
Referenced by DialogEventInfo(), getReplacesId(), hasReplacesId(), resip::DialogEventStateManager::onTryingUas(), and operator=().
NameAddrs resip::DialogEventInfo::mRouteSet [protected] |
Definition at line 92 of file DialogEventInfo.hxx.
Referenced by resip::DialogEventStateManager::findOrCreateDialogInfo(), getRouteSet(), resip::DialogEventStateManager::onConfirmed(), resip::DialogEventStateManager::onEarly(), resip::DialogEventStateManager::onTryingUas(), and operator=().
State resip::DialogEventInfo::mState [protected] |
Definition at line 79 of file DialogEventInfo.hxx.
Referenced by getState(), resip::DialogEventStateManager::onConfirmed(), resip::DialogEventStateManager::onDialogTerminatedImpl(), resip::DialogEventStateManager::onEarly(), resip::DialogEventStateManager::onProceedingUac(), resip::DialogEventStateManager::onTryingUac(), resip::DialogEventStateManager::onTryingUas(), and operator=().
1.7.5.1