libqutim  0.3.1.0
qutim_sdk_0_3::MessageHandler Class Referenceabstract

#include <messagehandler.h>

Public Types

enum  Priority {
  LowPriority = 0x00000100, ChatInPriority = 0x00008000, NormalPriortity = 0x00010000, ChatOutPriority = 0x00020000,
  HighPriority = 0x01000000, SenderPriority = 0x02000000
}
 
enum  Result { Accept, Reject, Error }
 

Public Member Functions

virtual ~MessageHandler ()
 

Static Public Member Functions

static Result handle (Message &message, QString *reason=0)
 
static void registerHandler (MessageHandler *handler, int incomingPriority=NormalPriortity, int outgoingPriority=NormalPriortity)
 
static void registerHandler (MessageHandler *handler, const QString &name, int incomingPriority=NormalPriortity, int outgoingPriority=NormalPriortity)
 
static void traceHandlers ()
 
static void unregisterHandler (MessageHandler *handler)
 

Protected Member Functions

virtual Result doHandle (Message &message, QString *reason)=0
 

Member Enumeration Documentation

Enumerator
LowPriority 
ChatInPriority 
NormalPriortity 
ChatOutPriority 
HighPriority 
SenderPriority 
Enumerator
Accept 
Reject 
Error 

Constructor & Destructor Documentation

virtual qutim_sdk_0_3::MessageHandler::~MessageHandler ( )
virtual

Member Function Documentation

virtual Result qutim_sdk_0_3::MessageHandler::doHandle ( Message message,
QString *  reason 
)
protectedpure virtual
static Result qutim_sdk_0_3::MessageHandler::handle ( Message message,
QString *  reason = 0 
)
static
static void qutim_sdk_0_3::MessageHandler::registerHandler ( MessageHandler handler,
int  incomingPriority = NormalPriortity,
int  outgoingPriority = NormalPriortity 
)
static
static void qutim_sdk_0_3::MessageHandler::registerHandler ( MessageHandler handler,
const QString &  name,
int  incomingPriority = NormalPriortity,
int  outgoingPriority = NormalPriortity 
)
static
static void qutim_sdk_0_3::MessageHandler::traceHandlers ( )
static
static void qutim_sdk_0_3::MessageHandler::unregisterHandler ( MessageHandler handler)
static

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

Generated by Doxygen