reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
resip::Pidf Class Reference

Deprecated. More...

#include <Pidf.hxx>

Inheritance diagram for resip::Pidf:
[legend]

Classes

class  Tuple
 Deprecated. More...
 

Public Member Functions

 RESIP_HeapCount (Pidf)
 
 Pidf (const Mime &contentType)
 
 Pidf (const Uri &entity)
 
 Pidf ()
 
 Pidf (const Data &txt)
 
 Pidf (const HeaderFieldValue &hfv, const Mime &contentType)
 
 Pidf (const Data &txt, const Mime &contentType)
 
 Pidf (const Pidf &rhs)
 
virtual ~Pidf ()
 
Pidf & operator= (const Pidf &rhs)
 
virtual Contents * clone () const
 duplicate an Pidf object
 
virtual EncodeStream & encodeParsed (EncodeStream &str) const
 
virtual void parse (ParseBuffer &pb)
 
void setSimpleId (const Data &id)
 
void setEntity (const Uri &entity)
 
const Uri & getEntity () const
 
void setSimpleStatus (bool online, const Data &note=Data::Empty, const Data &contact=Data::Empty)
 
bool getSimpleStatus (Data *note=NULL) const
 
Data & text ()
 
std::vector< Tuple > & getTuples ()
 
const std::vector< Tuple > & getTuples () const
 
int getNumTuples () const
 
void merge (const Pidf &other)
 
- Public Member Functions inherited from resip::Contents
 Contents (const HeaderFieldValue &headerFieldValue, const Mime &contentsType)
 pass Mime instance for parameters
 
 Contents (const Mime &contentsType)
 Create a contents with a given mime type.
 
 Contents (const Contents &rhs)
 Copy constructor.
 
 Contents (const Contents &rhs, HeaderFieldValue::CopyPaddingEnum e)
 
 Contents (const HeaderFieldValue &headerFieldValue, HeaderFieldValue::CopyPaddingEnum e, const Mime &contentsType)
 
virtual ~Contents ()
 
Contents & operator= (const Contents &rhs)
 Assignment operator.
 
void preParseHeaders (ParseBuffer &pb)
 Preforms preparsing on the headers stored in the ParseBuffer pb.
 
EncodeStream & encodeHeaders (EncodeStream &str) const
 encodes headers to an output stream
 
virtual Contents * getContents ()
 access to wrapped contents (signed, encrypted)
 
Contents * getContents (const Mime &)
 
virtual Data getBodyData () const
 
const Mime & getType () const
 getter for mime type of message
 
bool exists (const HeaderBase &headerType) const
 checks to see if a header is present
 
void remove (const HeaderBase &headerType)
 removes a header if it is present
 
bool exists (const MIME_Header &headerType) const
 checks to see if a MIME header exists
 
void remove (const MIME_Header &headerType)
 removes a MIME header if it is present
 
const H_ContentType::Type & header (const H_ContentType &headerType) const
 returns the value of the Content-Type header Throws an Contents::Exception if the header doesn't exist.
 
H_ContentType::Type & header (const H_ContentType &headerType)
 returns the value of the Content-Type header
 
const H_ContentDisposition::Type & header (const H_ContentDisposition &headerType) const
 returns the value of the Content-Disposition header Throws an Contents::Exception if the header doesn't exist.
 
H_ContentDisposition::Type & header (const H_ContentDisposition &headerType)
 returns the value of the Content-Disposition header
 
const H_ContentTransferEncoding::Type & header (const H_ContentTransferEncoding &headerType) const
 returns the value of the Content-Transfer-Encoding header Throws an Contents::Exception if the header doesn't exist.
 
H_ContentTransferEncoding::Type & header (const H_ContentTransferEncoding &headerType)
 returns the value of the Content-Transfer-Encoding header
 
const H_ContentLanguages::Type & header (const H_ContentLanguages &headerType) const
 returns the value of the Content-Languages header Throws an Contents::Exception if the header doesn't exist.
 
H_ContentLanguages::Type & header (const H_ContentLanguages &headerType)
 returns the value of the Content-Languages header
 
const H_ContentID::Type & header (const H_ContentID &headerType) const
 returns the value of the Content-ID MIME header Throws an Contents::Exception if the header doesn't exist.
 
H_ContentID::Type & header (const H_ContentID &headerType)
 returns the value of the Content-ID MIME header
 
const H_ContentDescription::Type & header (const H_ContentDescription &headerType) const
 returns the Content-Description MIME header Throws an Contents::Exception if the header doesn't exist.
 
H_ContentDescription::Type & header (const H_ContentDescription &headerType)
 returns the Content-Description MIME header
 
int & version ()
 returns the major version of MIME used by the contents
 
int & minorVersion ()
 returns the minor version of MIME used by the contents
 
void addBuffer (char *buf)
 
- Public Member Functions inherited from resip::LazyParser
 LazyParser (const HeaderFieldValue &headerFieldValue)
 
 LazyParser (const char *buf, int length)
 
 LazyParser (const HeaderFieldValue &headerFieldValue, HeaderFieldValue::CopyPaddingEnum e)
 
 LazyParser (const LazyParser &rhs)
 
 LazyParser (const LazyParser &rhs, HeaderFieldValue::CopyPaddingEnum e)
 
LazyParser & operator= (const LazyParser &rhs)
 
virtual ~LazyParser ()
 
EncodeStream & encode (EncodeStream &str) const
 Encodes this element to a stream, in the fashion it should be represented on the wire.
 
bool isParsed () const
 Returns true iff a parse has been attempted.
 
HeaderFieldValue & getHeaderField ()
 
void checkParsed () const
 
void checkParsed ()
 
void doParse () const
 
void markDirty () const
 
bool isWellFormed () const
 Returns true iff this element was parsed successfully, according to the implementation of parse().
 

Static Public Member Functions

static const Mime & getStaticType ()
 
static bool init ()
 
- Static Public Member Functions inherited from resip::Contents
static Contents * createContents (const Mime &contentType, const Data &contents)
 factory method to create a Contents object from a mime type and a payload
 

Static Public Attributes

static const Pidf Empty
 

Additional Inherited Members

- Protected Member Functions inherited from resip::Contents
void clear ()
 
void init ()
 
void init (const Contents &orig)
 
void freeMem ()
 
virtual const Data & errorContext () const
 
- Protected Member Functions inherited from resip::LazyParser
 LazyParser ()
 
void clear ()
 
- Protected Attributes inherited from resip::Contents
Mime mType
 
H_ContentDisposition::Type * mDisposition
 
H_ContentTransferEncoding::Type * mTransferEncoding
 
H_ContentLanguages::Type * mLanguages
 
Token * mId
 
H_ContentDescription::Type * mDescription
 
StringCategory * mLength
 
int mVersion
 
int mMinorVersion
 
std::vector< char * > mBufferList
 

Detailed Description

Deprecated.

Deprecated:

SIP body type for holding PIDF contents (MIME content-type application/pidf+xml).

Definition at line 23 of file Pidf.hxx.

Constructor & Destructor Documentation

◆ Pidf() [1/7]

Pidf::Pidf ( const Mime &  contentType)

Definition at line 40 of file Pidf.cxx.

◆ Pidf() [2/7]

Pidf::Pidf ( const Uri &  entity)
explicit

Definition at line 79 of file Pidf.cxx.

◆ Pidf() [3/7]

Pidf::Pidf ( )

Definition at line 28 of file Pidf.cxx.

◆ Pidf() [4/7]

Pidf::Pidf ( const Data &  txt)

Definition at line 34 of file Pidf.cxx.

◆ Pidf() [5/7]

Pidf::Pidf ( const HeaderFieldValue &  hfv,
const Mime &  contentType 
)

Definition at line 46 of file Pidf.cxx.

◆ Pidf() [6/7]

Pidf::Pidf ( const Data &  txt,
const Mime &  contentType 
)

Definition at line 52 of file Pidf.cxx.

◆ Pidf() [7/7]

Pidf::Pidf ( const Pidf &  rhs)

Definition at line 71 of file Pidf.cxx.

◆ ~Pidf()

Pidf::~Pidf ( )
virtual

Definition at line 85 of file Pidf.cxx.

Member Function Documentation

◆ clone()

Contents * Pidf::clone ( ) const
virtual

duplicate an Pidf object

Returns
pointer to a new Pidf object

Implements resip::Contents.

Definition at line 125 of file Pidf.cxx.

◆ encodeParsed()

EncodeStream & Pidf::encodeParsed ( EncodeStream &  str) const
virtual

Implements resip::LazyParser.

Definition at line 138 of file Pidf.cxx.

◆ getEntity()

const Uri & Pidf::getEntity ( ) const

Definition at line 97 of file Pidf.cxx.

◆ getNumTuples()

int Pidf::getNumTuples ( ) const

Definition at line 118 of file Pidf.cxx.

◆ getSimpleStatus()

bool Pidf::getSimpleStatus ( Data *  note = NULL) const

Definition at line 331 of file Pidf.cxx.

◆ getStaticType()

const Mime & Pidf::getStaticType ( )
static

Definition at line 131 of file Pidf.cxx.

◆ getTuples() [1/2]

std::vector< Pidf::Tuple > & Pidf::getTuples ( )

Definition at line 104 of file Pidf.cxx.

◆ getTuples() [2/2]

const std::vector< Pidf::Tuple > & Pidf::getTuples ( ) const

Definition at line 111 of file Pidf.cxx.

◆ init()

bool Pidf::init ( )
static

Definition at line 19 of file Pidf.cxx.

◆ merge()

void Pidf::merge ( const Pidf &  other)

Definition at line 348 of file Pidf.cxx.

◆ operator=()

Pidf & Pidf::operator= ( const Pidf &  rhs)

Definition at line 59 of file Pidf.cxx.

◆ parse()

void Pidf::parse ( ParseBuffer &  pb)
virtual

Implements resip::LazyParser.

Definition at line 171 of file Pidf.cxx.

◆ RESIP_HeapCount()

resip::Pidf::RESIP_HeapCount ( Pidf  )

◆ setEntity()

void Pidf::setEntity ( const Uri &  entity)

Definition at line 90 of file Pidf.cxx.

◆ setSimpleId()

void Pidf::setSimpleId ( const Data &  id)

Definition at line 302 of file Pidf.cxx.

◆ setSimpleStatus()

void Pidf::setSimpleStatus ( bool  online,
const Data &  note = Data::Empty,
const Data &  contact = Data::Empty 
)

Definition at line 314 of file Pidf.cxx.

◆ text()

Data & resip::Pidf::text ( )
inline

Definition at line 54 of file Pidf.hxx.

Member Data Documentation

◆ Empty

const Pidf Pidf::Empty
static

Definition at line 26 of file Pidf.hxx.


The documentation for this class was generated from the following files: