1#if !defined(RESIP_MESSAGEWAITINGCONTENTS_HXX)
2#define RESIP_MESSAGEWAITINGCONTENTS_HXX
138 Header(
unsigned int numNew,
139 unsigned int numOld);
148 Header(
unsigned int numNew,
150 unsigned int numUrgentNew,
151 unsigned int numUrgentOld);
156 const unsigned int&
newCount()
const {
return mNew;}
166 const unsigned int&
oldCount()
const {
return mOld;}
177 const bool&
urgent()
const {
return mHasUrgent;}
209 unsigned int mUrgentNew;
210 unsigned int mUrgentOld;
222 std::map<Data, Data> mExtensions;
Base class for all SIP body types.
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
SIP body type for holding MWI contents (MIME content-type application/simple-message-summary).
virtual ~MessageWaitingContents()
static const Mime & getStaticType()
virtual EncodeStream & encodeParsed(EncodeStream &str) const
bool exists(HeaderType ht) const
Check if HeaderType is present.
virtual Contents * clone() const
duplicate an MessageWaitingContents object
bool & hasMessages()
Check to see if there are messages.
Header & header(HeaderType ht)
Get the header correspoding to ht.
void remove(HeaderType ht)
Remove the header correspoding to ht.
virtual void parse(ParseBuffer &pb)
MessageWaitingContents & operator=(const MessageWaitingContents &rhs)
Represents the "media-type" element in the RFC 3261 grammar.
Provides string-parsing functionality with protection from buffer overflow.
Represents the "SIP-URI" and "SIPS-URI" elements in the RFC 3261 grammar.
dcm! – add UnusedChecking(_enum) below;
static bool invokeMessageWaitingContentsInit
MessageWaitingContents::AccountHeader mw_account
Used to access the Message-Account header in MessageWaiting docs.
const char * skipSipLWS(ParseBuffer &pb)
HeaderType
An enumeration of MessageWaiting header types for use with resip::MessageWaitingContents.