sipXcallLib home page


Public Types | Public Member Functions | Protected Attributes | List of all members
PtSessionDesc Class Reference

#include <PtSessionDesc.h>

Inheritance diagram for PtSessionDesc:
Inheritance graph
[legend]
Collaboration diagram for PtSessionDesc:
Collaboration graph
[legend]

Public Types

enum  SessionState {
  SESSION_UNKNOWN, SESSION_INITIATED, SESSION_SETUP, SESSION_FAILED,
  SESSION_TERMINATED
}
 

Public Member Functions

 PtSessionDesc ()
 
 PtSessionDesc (const char *callId, const char *toUrl=NULL, const char *fromUrl=NULL, const char *localContact=NULL, int nextCseq=-1, int lastFromCseq=-1, int lastToCseq=-1, int sessionState=SESSION_UNKNOWN)
 
 PtSessionDesc (const PtSessionDesc &rPtSessionDesc)
 
virtual ~PtSessionDesc ()
 
PtSessionDescoperator= (const PtSessionDesc &rhs)
 
void setCallId (const char *callId)
 
void setFromUrl (const UtlString &fromUrl)
 
void setToUrl (const UtlString &toUrl)
 
void setLocalContact (const UtlString &localContact)
 
void setLastFromCseq (int seqNum)
 
void setLastToCseq (int seqNum)
 
void getCallId (UtlString &callId)
 
void getFromUrl (UtlString &fromUrl)
 
void getToUrl (UtlString &toUrl)
 
void getLocalContact (UtlString &localContact)
 
int getNextFromCseq ()
 
int getLastFromCseq ()
 
int getLastToCseq ()
 
int getSessionState ()
 

Protected Attributes

UtlString mFromUrl
 
UtlString mToUrl
 
UtlString mLocalContact
 
int mNextCseq
 
int mLastFromCseq
 
int mLastToCseq
 
int mSessionState
 

Member Enumeration Documentation

Enumerator
SESSION_UNKNOWN 
SESSION_INITIATED 
SESSION_SETUP 
SESSION_FAILED 
SESSION_TERMINATED 

Constructor & Destructor Documentation

PtSessionDesc ( const char *  callId,
const char *  toUrl = NULL,
const char *  fromUrl = NULL,
const char *  localContact = NULL,
int  nextCseq = -1,
int  lastFromCseq = -1,
int  lastToCseq = -1,
int  sessionState = SESSION_UNKNOWN 
)
PtSessionDesc ( const PtSessionDesc rPtSessionDesc)
~PtSessionDesc ( )
virtual

Member Function Documentation

void getCallId ( UtlString &  callId)
void getFromUrl ( UtlString &  fromUrl)
int getLastFromCseq ( )
int getLastToCseq ( )
void getLocalContact ( UtlString &  localContact)
int getNextFromCseq ( )
int getSessionState ( )
void getToUrl ( UtlString &  toUrl)
PtSessionDesc & operator= ( const PtSessionDesc rhs)
void setCallId ( const char *  callId)
void setFromUrl ( const UtlString &  fromUrl)
void setLastFromCseq ( int  seqNum)
void setLastToCseq ( int  seqNum)
void setLocalContact ( const UtlString &  localContact)
void setToUrl ( const UtlString &  toUrl)

Member Data Documentation

UtlString mFromUrl
protected
int mLastFromCseq
protected
int mLastToCseq
protected
UtlString mLocalContact
protected
int mNextCseq
protected
int mSessionState
protected
UtlString mToUrl
protected