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()
177 virtual bool Close();
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 &)
596 bool startQueue =
true
609 bool startQueue =
true
654 #define OPAL_DEFINE_COMMAND(command, entity, func) \
655 class entity##_##command : public command \
657 public: virtual void Process(OpalPresentity & presentity) { dynamic_cast<entity &>(presentity).func(*this); } \
659 static PFactory<OpalPresentityCommand>::Worker<entity##_##command> \
660 s_##entity##_##command(PDefaultPFactoryKey(entity::Class())+typeid(command).name())
713 #if OPAL_SIP && OPAL_PTLIB_EXPAT
718 #endif // OPAL_IM_PRES_ENT_H