PTLib
Version 2.10.11
|
Implements a function similar to the PNotifier, but uses an "id" to link the caller and callee rather than using a pointer. More...
#include <notifier_ext.h>
Public Member Functions | |
PSmartNotifieeRegistrar () | |
~PSmartNotifieeRegistrar () | |
void | Init (void *obj) |
unsigned | GetID () const |
Static Public Member Functions | |
static unsigned | RegisterNotifiee (void *obj) |
static PBoolean | UnregisterNotifiee (unsigned id) |
static PBoolean | UnregisterNotifiee (void *obj) |
static void * | GetNotifiee (unsigned id) |
Protected Attributes | |
unsigned | m_ID |
Implements a function similar to the PNotifier, but uses an "id" to link the caller and callee rather than using a pointer.
This has the advantage that if the pointer becomes invalid, the caller can gracefully fail the notification rather than simply crashing due to an invalid pointer access.
These classes were created to support of the XMPP classes
|
inline |
|
inline |
References m_ID, and UnregisterNotifiee().
|
inline |
References m_ID.
|
static |
Referenced by PSmartNotifierFunction::GetNotifiee().
|
inline |
References m_ID, and RegisterNotifiee().
|
static |
Referenced by Init().
|
static |
Referenced by ~PSmartNotifieeRegistrar().
|
static |
|
protected |
Referenced by GetID(), Init(), and ~PSmartNotifieeRegistrar().