MoleQueue  0.8.0
 All Classes Functions Variables Enumerations Enumerator Pages
Static Public Member Functions | List of all members
MessageIdManager Class Reference

#include <messageidmanager_p.h>

Static Public Member Functions

static MessageIdType registerMethod (const QString &method)
 
static QString lookupMethod (const MessageIdType &id)
 

Detailed Description

The MessageIdManager class provides a static lookup table that is used to identify replies to JSON-RPC requests.

Author
David C. Lonie

Member Function Documentation

static MessageIdType registerMethod ( const QString &  method)
static

registerMethod Request a new message id that is assocated with method. The new id and method will be registered in the lookup table.

Returns
The assigned message id.
static QString lookupMethod ( const MessageIdType &  id)
static

lookupMethod Determine the method assocated with the id.

Note
This removes the id from the internal lookup table.
Returns
The method assocated with the given id.

The documentation for this class was generated from the following file: