|
reSIProcate/stack
9694
|
SIP body type for holding CPIM (Common Profile for Instant Messaging) contents (MIME content-type message/cpim). More...
#include <CpimContents.hxx>


Public Member Functions | |
| CpimContents () | |
| CpimContents (const Data &text) | |
| CpimContents (const HeaderFieldValue &hfv, const Mime &contentType) | |
| CpimContents (const Data &data, const Mime &contentType) | |
| CpimContents (const CpimContents &rhs) | |
| virtual | ~CpimContents () |
| CpimContents & | operator= (const CpimContents &rhs) |
| virtual Contents * | clone () const |
| duplicate an CpimContents object | |
| virtual EncodeStream & | encodeParsed (EncodeStream &str) const |
| virtual void | parse (ParseBuffer &pb) |
| Data & | text () |
| Get the CPIM message text. | |
Static Public Member Functions | |
| static const Mime & | getStaticType () |
| static bool | init () |
Static Public Attributes | |
| static const CpimContents | Empty |
Private Attributes | |
| Data | mText |
SIP body type for holding CPIM (Common Profile for Instant Messaging) contents (MIME content-type message/cpim).
Definition at line 15 of file CpimContents.hxx.
| CpimContents::CpimContents | ( | ) |
Definition at line 27 of file CpimContents.cxx.
Referenced by clone().
: Contents(getStaticType()), mText() {}
| CpimContents::CpimContents | ( | const Data & | text | ) |
Definition at line 32 of file CpimContents.cxx.
: Contents(getStaticType()), mText(txt) {}
| CpimContents::CpimContents | ( | const HeaderFieldValue & | hfv, |
| const Mime & | contentType | ||
| ) |
Definition at line 37 of file CpimContents.cxx.
Definition at line 43 of file CpimContents.cxx.
| CpimContents::CpimContents | ( | const CpimContents & | rhs | ) |
Definition at line 49 of file CpimContents.cxx.
| CpimContents::~CpimContents | ( | ) | [virtual] |
Definition at line 55 of file CpimContents.cxx.
{
}
| Contents * CpimContents::clone | ( | ) | const [virtual] |
duplicate an CpimContents object
Implements resip::Contents.
Definition at line 71 of file CpimContents.cxx.
References CpimContents().
{
return new CpimContents(*this);
}

| EncodeStream & CpimContents::encodeParsed | ( | EncodeStream & | str | ) | const [virtual] |
Implements resip::LazyParser.
Definition at line 84 of file CpimContents.cxx.
References mText.
{
//DebugLog(<< "CpimContents::encodeParsed " << mText);
str << mText;
return str;
}
| const Mime & CpimContents::getStaticType | ( | ) | [static] |
| bool CpimContents::init | ( | ) | [static] |
Reimplemented from resip::Contents.
Definition at line 18 of file CpimContents.cxx.
{
static ContentsFactory<CpimContents> factory;
(void)factory;
return true;
}
| CpimContents & CpimContents::operator= | ( | const CpimContents & | rhs | ) |
Definition at line 60 of file CpimContents.cxx.
References mText.
{
if (this != &rhs)
{
Contents::operator=(rhs);
mText = rhs.mText;
}
return *this;
}
| void CpimContents::parse | ( | ParseBuffer & | pb | ) | [virtual] |
Implements resip::LazyParser.
Definition at line 92 of file CpimContents.cxx.
References resip::ParseBuffer::data(), mText, resip::ParseBuffer::position(), and resip::ParseBuffer::skipToEnd().
{
//DebugLog(<< "CpimContents::parse: " << pb.position());
const char* anchor = pb.position();
pb.skipToEnd();
pb.data(mText, anchor);
//DebugLog("CpimContents::parsed <" << mText << ">" );
}

| Data& resip::CpimContents::text | ( | ) | [inline] |
Get the CPIM message text.
Definition at line 40 of file CpimContents.hxx.
References resip::LazyParser::checkParsed(), and mText.
Referenced by resip::TuIM::processMessageRequest().
{checkParsed(); return mText;}

const CpimContents CpimContents::Empty [static] |
Definition at line 18 of file CpimContents.hxx.
Data resip::CpimContents::mText [private] |
Definition at line 44 of file CpimContents.hxx.
Referenced by encodeParsed(), operator=(), parse(), and text().
1.7.5.1