64 JID(
const char * jid = 0);
76 operator const PString&()
const;
90 virtual void PrintOn(ostream & strm)
const;
113 :
JID(user, server, resource) { }
159 virtual void OnClose() { m_CloseHandlers.Fire(*
this); }
162 virtual PBoolean Write(
const void * buf, PINDEX len);
168 virtual PXML * Read();
173 virtual void Reset();
194 void SetAutoReconnect(
PBoolean b =
true,
long timeout = 1000);
199 virtual PBoolean Write(
const void * buf, PINDEX len);
202 virtual void OnElement(
PXML& pdu);
233 virtual PBoolean IsValid()
const = 0;
236 virtual PString GetFrom()
const;
239 virtual void SetID(
const PString&
id);
240 virtual void SetFrom(
const PString& from);
241 virtual void SetTo(
const PString& to);
288 virtual PString GetLanguage()
const;
302 virtual void SetType(
const PString& type);
303 virtual void SetLanguage(
const PString& lang);
307 virtual void SetThread(
const PString& thrd);
360 virtual BYTE GetPriority()
const;
370 virtual void SetType(
const PString& type);
371 virtual void SetShow(
ShowType show);
372 virtual void SetShow(
const PString& show);
373 virtual void SetPriority(BYTE priority);
415 virtual void SetType(
IQType type);
416 virtual void SetType(
const PString& type);
422 virtual void SetOriginalMessage(
IQ * iq);
427 virtual IQ * BuildResult()
const;
514 #endif // PTLIB_XMPP_H PNotifierList & ElementHandlers()
Definition: xmpp.h:196
virtual void SetUser(const PString &user)
#define PDECLARE_NOTIFIER(notifier, notifiee, func)
Declare PNotifier derived class with INT parameter. Uses PDECLARE_NOTIFIER2 macro.
Definition: notifier.h:174
BareJID(const char *jid=0)
Definition: xmpp.h:110
PNotifierList m_OpenHandlers
Definition: xmpp.h:178
const PCaselessString & IQQueryTag()
This class defines an arbitrary time interval to millisecond accuracy.
Definition: timeint.h:55
PXMLElement * AsXML(PXMLElement *parent) const
const PString m_Category
Definition: xmpp.h:481
#define PCLASSINFO(cls, par)
Declare all the standard PTLib class information.
Definition: object.h:1049
PString m_User
Definition: xmpp.h:96
Stream * GetStream()
Definition: xmpp.h:197
const PCaselessString & NamespaceTag()
const PString m_Type
Definition: xmpp.h:482
This class represents a XMPP stream, i.e.
Definition: xmpp.h:147
Stream * m_Stream
Definition: xmpp.h:210
BareJID(const PString &jid)
Definition: xmpp.h:111
PStringSet m_Features
Definition: xmpp.h:505
ShowType
Definition: xmpp.h:328
virtual PString GetResource() const
Definition: xmpp.h:124
ItemList(PXMLElement *list)
Comparison
Result of the comparison operation performed by the Compare() function.
Definition: object.h:1184
virtual void SetServer(const PString &server)
virtual void ParseJID(const PString &jid)
This is a channel that operates indirectly through another channel(s).
Definition: indchan.h:49
This class is a variation of a string that ignores case.
Definition: pstring.h:1708
virtual PBoolean OnOpen()
This callback is executed when the Open() function is called with open channels.
Definition: xmpp.h:155
const JID & GetJID() const
Definition: xmpp.h:451
PXMLStreamParser * m_Parser
Definition: xmpp.h:177
PBoolean m_AutoReconnect
Definition: xmpp.h:211
PBoolean m_IsDirty
Definition: xmpp.h:101
PNotifierList & CloseHandlers()
Definition: xmpp.h:160
PString GetServer() const
Definition: xmpp.h:81
virtual PBoolean IsEmpty() const
Determine if the string is empty.
virtual IQ * GetOriginalMessage() const
Definition: xmpp.h:421
BOOL PBoolean
Definition: object.h:102
IQType
Definition: xmpp.h:384
const PCaselessString & PresenceStanzaTag()
const PString & GetType() const
Definition: xmpp.h:475
virtual void BuildJID() const
PNotifierList m_CloseHandlers
Definition: xmpp.h:179
const PString m_Node
Definition: xmpp.h:458
IdentityList & GetIdentities()
Definition: xmpp.h:498
virtual void SetResource(const PString &)
Definition: xmpp.h:125
virtual void OnClose()
Definition: xmpp.h:159
const PCaselessString & LanguageTag()
Various constant strings.
IdentityList m_Identities
Definition: xmpp.h:504
virtual void SetResource(const PString &resource)
PString m_Server
Definition: xmpp.h:97
The character string class.
Definition: pstring.h:108
PXMLStreamParser * GetParser()
Definition: xmpp.h:174
virtual PObject * Clone() const
Create a copy of the class on the heap.
Definition: xmpp.h:78
PString GetUser() const
Definition: xmpp.h:80
This is a set collection class of PString objects.
Definition: pstring.h:2391
static PString Empty()
Return an empty string.
PNotifierList m_ElementHandlers
Definition: xmpp.h:214
virtual PString GetResource() const
Definition: xmpp.h:83
This class defines a thread of execution in the system.
Definition: thread.h:66
PBoolean HasBeenProcessed() const
Definition: xmpp.h:410
const PString m_Name
Definition: xmpp.h:483
virtual PNotifierList GetResponseHandlers()
Definition: xmpp.h:433
JID & operator=(const PString &jid)
virtual Comparison Compare(const PObject &obj) const
Compare the two objects and return their relative rank.
XMPP stanzas: the following classes represent the three stanzas (PDUs) defined by the xmpp protocol...
Definition: xmpp.h:222
virtual PBoolean IsBare() const
Definition: xmpp.h:89
This interface is the base class of each XMPP transport class.
Definition: xmpp.h:134
virtual PObject * Clone() const
Create a copy of the class on the heap.
Definition: xmpp.h:123
const PCaselessString & IQStanzaTag()
const PString & GetName() const
Definition: xmpp.h:476
BareJID(const PString &user, const PString &server, const PString &resource=PString::Empty())
Definition: xmpp.h:112
PNotifierList m_ResponseHandlers
Definition: xmpp.h:438
PNotifierList & OpenHandlers()
Definition: xmpp.h:156
#define PDECLARE_LIST(cls, T)
Begin declaration of list class.
Definition: lists.h:455
PStringSet & GetFeatures()
Definition: xmpp.h:499
PLIST(StanzaList, Stanza)
PTimeInterval m_ReconnectTimeout
Definition: xmpp.h:212
virtual PBoolean IsBare() const
Definition: xmpp.h:126
IQ * m_OriginalIQ
Definition: xmpp.h:437
void SetProcessed()
This method signals that the message was taken care of If the stream handler, after firing all the no...
Definition: xmpp.h:409
MessageType
Definition: xmpp.h:257
const JID m_JID
Definition: xmpp.h:457
const PCaselessString & MessageStanzaTag()
Definition: notifier_ext.h:102
const PString & GetNode() const
Definition: xmpp.h:452
Ultimate parent class for all objects in the class library.
Definition: object.h:1118
PString m_Resource
Definition: xmpp.h:98
PresenceType
Definition: xmpp.h:316
PString m_JID
Definition: xmpp.h:100
virtual void PrintOn(ostream &strm) const
Output the contents of the object to the stream.
PBoolean m_Processed
Definition: xmpp.h:436
const PString & GetCategory() const
Definition: xmpp.h:474
IdentityList(PXMLElement *list)