Mp7Jrs  2.7.1
Mp7JrsClientManager Class Reference

Manages clients accessing Mp7Jrs and need to register for locks and write access. More...

Static Public Member Functions

static Mp7JrsClientID GetNewID (Mp7JrsNotificationListener *listener)
 Get a new client ID.
static Mp7JrsNotificationListener * GetListener (Mp7JrsClientID id)
 Get the listener associated with the given client ID.
static void Unregister (Mp7JrsClientID id)
static void SendUpdateNotification (Mp7JrsNodePtr sender, Mp7JrsNotificationAction action, Mp7JrsClientID client, Mp7JrsNodePtr second, int index=0)
static void SetNotificationsEnabled (bool enabled)
static void SetLockingEnabled (bool enabled)
static bool IsNotificationsEnabled ()
static bool IsLockingEnabled ()

Static Protected Member Functions

static void QueueForLock (Mp7JrsNodePtr sender, Mp7JrsClientID client, bool forAdd)
static bool SendLockRequestNotification (Mp7JrsNodePtr sender, Mp7JrsClientID client, bool forAdd, bool notify)
static void SendLockNotification (Mp7JrsNodePtr sender, Mp7JrsClientID client, bool forAdd)
static void SendUnlockNotification (Mp7JrsNodePtr sender)
static void Register (Mp7JrsClientID id, Mp7JrsNotificationAction action, Mp7JrsNodePtr node, bool recursive=false)
static void Unregister (Mp7JrsClientID id, Mp7JrsNotificationAction action, Mp7JrsNodePtr node)

Friends

class Mp7JrsNode

Detailed Description

Manages clients accessing Mp7Jrs and need to register for locks and write access.

Member Function Documentation

Mp7JrsNotificationListener * Mp7JrsClientManager::GetListener ( Mp7JrsClientID  id)
static

Get the listener associated with the given client ID.

Mp7JrsClientID Mp7JrsClientManager::GetNewID ( Mp7JrsNotificationListener *  listener)
static

Get a new client ID.

Parameters
listenerObject implementing the listener interface which will be registered with the new ID to receive notifications.