22 #include <utl/UtlDList.h> 45 PidfBody(
const char* resourceAor = NULL);
50 const char* contentEncodingValueString);
73 const char* contentEncodingValueString,
86 virtual void getBytes(
const char** bytes,
int* length)
const;
87 virtual void getBytes(UtlString* bytes,
int* length)
const;
99 UtlBoolean& isTupleStatusBasicOpen,
101 UtlString& tupleNote)
const;
105 const UtlBoolean& isTupleStatusBasicOpen,
106 const UtlString& contact,
107 const UtlString& tupleNote);
111 UtlBoolean isTupleStatusBasicOpen);
125 UtlString mEntityAor;
128 UtlBoolean mRendered;
130 void renderPidfXmlHeader(
const UtlString& entityAor);
131 void renderPidfTuple(
const UtlString& tupleId,
132 const UtlBoolean isTupleStatusBasicOpen,
133 const UtlString& tupleContact,
134 const UtlString& tupleNote);
135 void renderPidfXmlFooter();
137 void copyTuples(
const UtlDList& sourceList, UtlDList& targetList);
142 #endif // _PidfBody_h_ UtlBoolean changeBasicStatus(int tupleIndex, UtlBoolean isTupleStatusBasicOpen)
Change the basic element value in the indicated tuple element.
Definition: PidfBody.cpp:306
UtlBoolean getBasicStatus(int tupleIndex, UtlString &tupleId, UtlBoolean &isTupleStatusBasicOpen, UtlString &contact, UtlString &tupleNote) const
Get the presense status/state.
Definition: PidfBody.cpp:282
PidfBody & operator=(const PidfBody &rhs)
Assignment operator.
Definition: PidfBody.cpp:130
virtual const char * getBytes() const
Definition: HttpBody.cpp:476
static int parseXmlToPidfProperties(const char *bytes, int length, const char *contentEncodingValueString, UtlString &entityAor, UtlDList &tuples)
Definition: PidfBody.cpp:173
void getEntityAor(UtlString &entityAor) const
Get the AOR (PIDF presence element, entity attribute) for the PIDF doc.
Definition: PidfBody.cpp:257
void render()
Render the PIDF data into the XML format of the body.
Definition: PidfBody.cpp:148
PidfBody(const char *resourceAor=NULL)
Default constructor.
Definition: PidfBody.cpp:69
void addBasicStatus(const UtlString &tupleId, const UtlBoolean &isTupleStatusBasicOpen, const UtlString &contact, const UtlString &tupleNote)
Set the presence status/state.
Definition: PidfBody.cpp:319
virtual ~PidfBody()
Destructor.
Definition: PidfBody.cpp:120
class to contain an PIDF presense state body
Definition: PidfBody.h:36
class to contain an HTTP body
Definition: HttpBody.h:55