Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

PSmartNotifieeRegistrar Class Reference

#include <notifier_ext.h>

List of all members.

Public Member Functions

 PSmartNotifieeRegistrar ()
 ~PSmartNotifieeRegistrar ()
void Init (void *obj)
unsigned GetID () const

Static Public Member Functions

unsigned RegisterNotifiee (void *obj)
BOOL UnregisterNotifiee (unsigned id)
BOOL UnregisterNotifiee (void *obj)
void * GetNotifiee (unsigned id)

Protected Attributes

unsigned m_ID


Detailed Description

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


Constructor & Destructor Documentation

PSmartNotifieeRegistrar::PSmartNotifieeRegistrar  )  [inline]
 

PSmartNotifieeRegistrar::~PSmartNotifieeRegistrar  )  [inline]
 


Member Function Documentation

unsigned PSmartNotifieeRegistrar::GetID  )  const [inline]
 

void* PSmartNotifieeRegistrar::GetNotifiee unsigned  id  )  [static]
 

void PSmartNotifieeRegistrar::Init void *  obj  )  [inline]
 

unsigned PSmartNotifieeRegistrar::RegisterNotifiee void *  obj  )  [static]
 

BOOL PSmartNotifieeRegistrar::UnregisterNotifiee void *  obj  )  [static]
 

BOOL PSmartNotifieeRegistrar::UnregisterNotifiee unsigned  id  )  [static]
 


Member Data Documentation

unsigned PSmartNotifieeRegistrar::m_ID [protected]
 


The documentation for this class was generated from the following file:
Generated on Sat Jul 24 15:35:59 2004 for PWLib by doxygen 1.3.7