PTLib  Version 2.10.4
XMPP::IQ Class Reference

#include <xmpp.h>

Inheritance diagram for XMPP::IQ:
XMPP::Stanza PXML PXMLBase PObject

List of all members.

Public Types

enum  IQType {
  Get, Set, Result, Error,
  Unknown = 999
}

Public Member Functions

 IQ (IQType type, PXMLElement *body=0)
 IQ (PXML &pdu)
 IQ (PXML *pdu)
 ~IQ ()
virtual PBoolean IsValid () const
void SetProcessed ()
 This method signals that the message was taken care of If the stream handler, after firing all the notifiers finds that an iq set/get pdu has not being processed, it returns an error to the sender.
PBoolean HasBeenProcessed () const
virtual IQType GetType (PString *typeName=0) const
virtual PXMLElementGetBody ()
virtual void SetType (IQType type)
virtual void SetType (const PString &type)
virtual void SetBody (PXMLElement *body)
virtual IQGetOriginalMessage () const
virtual void SetOriginalMessage (IQ *iq)
virtual IQBuildResult () const
 Creates a new response iq for this message (that must be of the set/get type!)
virtual IQBuildError (const PString &type, const PString &code) const
 Creates an error response for this message.
virtual PNotifierList GetResponseHandlers ()

Static Public Member Functions

static const PCaselessStringTypeTag ()
 Various constant strings.
static PBoolean IsValid (const PXML *pdu)

Protected Attributes

PBoolean m_Processed
IQm_OriginalIQ
PNotifierList m_ResponseHandlers

Member Enumeration Documentation

Enumerator:
Get 
Set 
Result 
Error 
Unknown 

Constructor & Destructor Documentation

XMPP::IQ::IQ ( IQType  type,
PXMLElement body = 0 
)
XMPP::IQ::IQ ( PXML pdu)
XMPP::IQ::IQ ( PXML pdu)

Member Function Documentation

virtual IQ* XMPP::IQ::BuildError ( const PString type,
const PString code 
) const [virtual]

Creates an error response for this message.

virtual IQ* XMPP::IQ::BuildResult ( ) const [virtual]

Creates a new response iq for this message (that must be of the set/get type!)

virtual PXMLElement* XMPP::IQ::GetBody ( ) [virtual]
virtual IQ* XMPP::IQ::GetOriginalMessage ( ) const [inline, virtual]

References m_OriginalIQ.

virtual PNotifierList XMPP::IQ::GetResponseHandlers ( ) [inline, virtual]

References m_ResponseHandlers.

virtual IQType XMPP::IQ::GetType ( PString typeName = 0) const [virtual]

References m_Processed.

virtual PBoolean XMPP::IQ::IsValid ( ) const [virtual]

Implements XMPP::Stanza.

static PBoolean XMPP::IQ::IsValid ( const PXML pdu) [static]
virtual void XMPP::IQ::SetBody ( PXMLElement body) [virtual]
virtual void XMPP::IQ::SetOriginalMessage ( IQ iq) [virtual]
void XMPP::IQ::SetProcessed ( ) [inline]

This method signals that the message was taken care of If the stream handler, after firing all the notifiers finds that an iq set/get pdu has not being processed, it returns an error to the sender.

References m_Processed.

virtual void XMPP::IQ::SetType ( IQType  type) [virtual]
virtual void XMPP::IQ::SetType ( const PString type) [virtual]
static const PCaselessString& XMPP::IQ::TypeTag ( ) [static]

Various constant strings.


Member Data Documentation

IQ* XMPP::IQ::m_OriginalIQ [protected]

Referenced by GetOriginalMessage().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines