reSIProcate/DialogUsageManager  9694
Public Member Functions | Private Attributes
resip::SubscriptionCreator Class Reference

#include <SubscriptionCreator.hxx>

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

List of all members.

Public Member Functions

 SubscriptionCreator (DialogUsageManager &dum, const NameAddr &target, SharedPtr< UserProfile > userProfile, const Data &event, UInt32 subscriptionTime)
 SubscriptionCreator (DialogUsageManager &dum, const NameAddr &target, SharedPtr< UserProfile > userProfile, const Data &event, UInt32 subscriptionTime, int refreshInterval)
 SubscriptionCreator (DialogUsageManager &dum, const NameAddr &target, SharedPtr< UserProfile > userProfile, const H_ReferTo::Type &referTo)
bool hasRefreshInterval () const
int getRefreshInterval () const

Private Attributes

int mRefreshInterval
Data mEvent

Detailed Description

Definition at line 9 of file SubscriptionCreator.hxx.


Constructor & Destructor Documentation

SubscriptionCreator::SubscriptionCreator ( DialogUsageManager dum,
const NameAddr target,
SharedPtr< UserProfile userProfile,
const Data event,
UInt32  subscriptionTime 
)

Definition at line 6 of file SubscriptionCreator.cxx.

References resip::BaseCreator::makeInitialRequest(), and resip::BaseCreator::mLastRequest.

   : BaseCreator(dum, userProfile),
     mRefreshInterval(-1)
{
   makeInitialRequest(target, SUBSCRIBE);

   mLastRequest->header(h_Event).value() = event; 
   mLastRequest->header(h_Expires).value() = subscriptionTime;
}

Here is the call graph for this function:

SubscriptionCreator::SubscriptionCreator ( DialogUsageManager dum,
const NameAddr target,
SharedPtr< UserProfile userProfile,
const Data event,
UInt32  subscriptionTime,
int  refreshInterval 
)

Definition at line 20 of file SubscriptionCreator.cxx.

References resip::BaseCreator::makeInitialRequest(), and resip::BaseCreator::mLastRequest.

   : BaseCreator(dum, userProfile),
     mRefreshInterval(refreshInterval)
{
   makeInitialRequest(target, SUBSCRIBE);

   mLastRequest->header(h_Event).value() = event; 
   mLastRequest->header(h_Expires).value() = subscriptionTime;
}

Here is the call graph for this function:

SubscriptionCreator::SubscriptionCreator ( DialogUsageManager dum,
const NameAddr target,
SharedPtr< UserProfile userProfile,
const H_ReferTo::Type &  referTo 
)

Definition at line 35 of file SubscriptionCreator.cxx.

References resip::BaseCreator::makeInitialRequest(), and resip::BaseCreator::mLastRequest.

   : BaseCreator(dum, userProfile),
     mRefreshInterval(-1)
{
   makeInitialRequest(target, REFER);
   mLastRequest->header(h_ReferTo) = referTo;
   mLastRequest->header(h_Event).value() = "refer";
}

Here is the call graph for this function:


Member Function Documentation

int SubscriptionCreator::getRefreshInterval ( ) const

Definition at line 54 of file SubscriptionCreator.cxx.

References mRefreshInterval.

{
   return mRefreshInterval;
}
bool SubscriptionCreator::hasRefreshInterval ( ) const

Definition at line 48 of file SubscriptionCreator.cxx.

References mRefreshInterval.

{
   return mRefreshInterval > 0;   
}

Member Data Documentation

Definition at line 26 of file SubscriptionCreator.hxx.

Definition at line 25 of file SubscriptionCreator.hxx.

Referenced by getRefreshInterval(), and hasRefreshInterval().


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