31 #ifndef OPAL_IM_PRES_ENT_H
32 #define OPAL_IM_PRES_ENT_H
37 #include <ptlib/pfactory.h>
38 #include <ptlib/safecoll.h>
39 #include <ptclib/url.h>
40 #include <ptclib/guid.h>
41 #include <ptclib/vcard.h>
114 Comparison
Compare(
const PObject & other)
const;
154 const PString & scheme = PString::Empty()
169 virtual bool Open() = 0;
173 virtual bool IsOpen()
const = 0;
177 virtual bool Close() = 0;
213 const PURL & presentity,
214 bool subscribe =
true,
215 const PString & note = PString::Empty()
227 const PURL & presentity
251 const PURL & presentity,
264 const PString & note = PString::Empty()
321 #define PDECLARE_AuthorisationRequestNotifier(cls, fn) PDECLARE_NOTIFIER2(OpalPresentity, cls, fn, const OpalPresentity::AuthorisationRequest &)
322 #define PCREATE_AuthorisationRequestNotifier(fn) PCREATE_NOTIFIER2(fn, const OpalPresentity::AuthorisationRequest &)
342 #define PDECLARE_PresenceChangeNotifier(cls, fn) PDECLARE_NOTIFIER2(OpalPresentity, cls, fn, const OpalPresenceInfo &)
343 #define PCREATE_PresenceChangeNotifier(fn) PCREATE_NOTIFIER2(fn, const OpalPresenceInfo &)
359 const PURL & presentity = PString::Empty(),
360 const PString & displayName = PString::Empty()
446 const BuddyInfo & buddy
456 const PURL & presentity
459 const PURL & presentity
469 PINDEX & successfulCount,
470 bool subscribe =
true
473 bool subscribe =
true
503 #define PDECLARE_ReceivedMessageNotifier(cls, fn) PDECLARE_NOTIFIER2(OpalPresentity, cls, fn, const OpalIM &)
504 #define PCREATE_ReceivedMessageNotifier(fn) PCREATE_NOTIFIER2(fn, const OpalIM &)
522 virtual PString
GetID()
const;
599 bool startQueue =
true
612 bool startQueue =
true
657 #define OPAL_DEFINE_COMMAND(command, entity, func) \
658 class entity##_##command : public command \
660 public: virtual void Process(OpalPresentity & presentity) { dynamic_cast<entity &>(presentity).func(*this); } \
662 static PFactory<OpalPresentityCommand>::Worker<entity##_##command> \
663 s_##entity##_##command(PDefaultPFactoryKey(entity::Class())+typeid(command).name())
716 #if OPAL_SIP && OPAL_PTLIB_EXPAT
721 #endif // OPAL_IM_PRES_ENT_H