sipXcallLib home page


PtSessionDesc.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 
12 #ifndef _PtSessionDesc_h_
13 #define _PtSessionDesc_h_
14 
15 // SYSTEM INCLUDES
16 
17 // APPLICATION INCLUDES
18 #include <utl/UtlString.h>
19 
20 // DEFINES
21 // MACROS
22 // EXTERNAL FUNCTIONS
23 // EXTERNAL VARIABLES
24 // CONSTANTS
25 // STRUCTS
26 // TYPEDEFS
27 // FORWARD DECLARATIONS
28 
29 //:Session attributes that are used when setting up a new connection.
30 // The specifics of the interface to this class are under construction.
31 
32 class PtSessionDesc : public UtlString
33 {
34 /* //////////////////////////// PUBLIC //////////////////////////////////// */
35 public:
36 
38  {
44  };
45 
46 /* ============================ CREATORS ================================== */
47 
48  PtSessionDesc();
49  //:Default constructor
50 
51  PtSessionDesc(const char* callId,
52  const char* toUrl = NULL,
53  const char* fromUrl = NULL,
54  const char* localContact = NULL,
55  int nextCseq = -1,
56  int lastFromCseq = -1,
57  int lastToCseq = -1,
58  int sessionState = SESSION_UNKNOWN);
59  //:constructor
60 
61  PtSessionDesc(const PtSessionDesc& rPtSessionDesc);
62  //:Copy constructor (not implemented for this class)
63 
64  virtual
66  //:Destructor
67 
68 /* ============================ MANIPULATORS ============================== */
69 
71  //:Assignment operator (not implemented for this class)
72 
73  void setCallId(const char* callId);
74  void setFromUrl(const UtlString& fromUrl);
75  void setToUrl(const UtlString& toUrl);
76  void setLocalContact(const UtlString& localContact);
77  void setLastFromCseq(int seqNum);
78  void setLastToCseq(int seqNum);
79 
80 
81 /* ============================ ACCESSORS ================================= */
82 
83  void getCallId(UtlString& callId);
84  void getFromUrl(UtlString& fromUrl);
85  void getToUrl(UtlString& toUrl);
86  void getLocalContact(UtlString& localContact);
87  int getNextFromCseq();
88  int getLastFromCseq();
89  int getLastToCseq();
90  int getSessionState();
91 /* ============================ INQUIRY =================================== */
92 
93 /* //////////////////////////// PROTECTED ///////////////////////////////// */
94 protected:
95  // The callId is stored in the UtlString base class data element
96  UtlString mFromUrl;
97  UtlString mToUrl;
98  UtlString mLocalContact;
99 
104 
105 
106 /* //////////////////////////// PRIVATE /////////////////////////////////// */
107 private:
108 
109 
110 };
111 
112 /* ============================ INLINE METHODS ============================ */
113 
114 #endif // _PtSessionDesc_h_
int mSessionState
Definition: PtSessionDesc.h:103
Definition: PtSessionDesc.h:42
void getToUrl(UtlString &toUrl)
Definition: PtSessionDesc.cpp:143
Definition: PtSessionDesc.h:40
void setLocalContact(const UtlString &localContact)
Definition: PtSessionDesc.cpp:116
int getLastToCseq()
Definition: PtSessionDesc.cpp:158
Definition: PtSessionDesc.h:41
int getSessionState()
Definition: PtSessionDesc.cpp:169
void getLocalContact(UtlString &localContact)
Definition: PtSessionDesc.cpp:148
Definition: PtSessionDesc.h:39
void getFromUrl(UtlString &fromUrl)
Definition: PtSessionDesc.cpp:138
int mLastFromCseq
Definition: PtSessionDesc.h:101
PtSessionDesc()
Definition: PtSessionDesc.cpp:25
int getNextFromCseq()
Definition: PtSessionDesc.cpp:163
UtlString mToUrl
Definition: PtSessionDesc.h:97
Definition: PtSessionDesc.h:43
void setToUrl(const UtlString &toUrl)
Definition: PtSessionDesc.cpp:111
UtlString mLocalContact
Definition: PtSessionDesc.h:98
void getCallId(UtlString &callId)
Definition: PtSessionDesc.cpp:133
void setFromUrl(const UtlString &fromUrl)
Definition: PtSessionDesc.cpp:106
void setCallId(const char *callId)
Definition: PtSessionDesc.cpp:100
Definition: PtSessionDesc.h:32
void setLastToCseq(int seqNum)
Definition: PtSessionDesc.cpp:126
PtSessionDesc & operator=(const PtSessionDesc &rhs)
Definition: PtSessionDesc.cpp:81
virtual ~PtSessionDesc()
Definition: PtSessionDesc.cpp:73
int getLastFromCseq()
Definition: PtSessionDesc.cpp:153
int mNextCseq
Definition: PtSessionDesc.h:100
void setLastFromCseq(int seqNum)
Definition: PtSessionDesc.cpp:121
UtlString mFromUrl
Definition: PtSessionDesc.h:96
int mLastToCseq
Definition: PtSessionDesc.h:102
SessionState
Definition: PtSessionDesc.h:37