kopete/libkopete
#include <kopetesimplemessagehandler.h>
Public Member Functions | |
SimpleMessageHandlerFactory (Message::MessageDirection direction, int position, QObject *target, const char *slot) | |
~SimpleMessageHandlerFactory () | |
MessageHandler * | create (ChatSession *manager, Message::MessageDirection direction) |
int | filterPosition (ChatSession *manager, Message::MessageDirection direction) |
Public Member Functions inherited from Kopete::MessageHandlerFactory | |
MessageHandlerFactory () | |
virtual | ~MessageHandlerFactory () |
Additional Inherited Members | |
Public Types inherited from Kopete::MessageHandlerFactory | |
typedef QLinkedList < MessageHandlerFactory * > | FactoryList |
enum | InboundStage { InStageStart = 0, InStageToSent = 2000, InStageToDesired = 5000, InStageFormat = 7000, InStageEnd = 10000 } |
enum | InternalStage { IntStageStart = 0, IntStageEnd = 10000 } |
enum | Offset { OffsetBefore = -90, OffsetVeryEarly = -60, OffsetEarly = -30, OffsetNormal = 0, OffsetLate = 30, OffsetVeryLate = 60, OffsetAfter = 90 } |
enum | OutboundStage { OutStageStart = 0, OutStageParse = 2000, OutStageToDesired = 4000, OutStageFormat = 6000, OutStageToSent = 8000, OutStageEnd = 10000 } |
enum | SpecialStage { StageDoNotCreate = -10000, StageStart = 0, StageEnd = 10000 } |
Static Public Member Functions inherited from Kopete::MessageHandlerFactory | |
static FactoryList | messageHandlerFactories () |
Detailed Description
A MessageHandlerFactory that creates synchronous MessageHandlers that just call a slot.
A concrete MessageHandlerFactory. This class is intended to make writing MessageHandlers simpler; all that is required is to implement a message processing function and place an instance of this class in your Plugin-derived class.
Whenever a message passes through a handler created by this factory, the slot passed to the constructor will be called. The slot should take a single argument of type (non-const
) Message &
.
Definition at line 37 of file kopetesimplemessagehandler.h.
Constructor & Destructor Documentation
Kopete::SimpleMessageHandlerFactory::SimpleMessageHandlerFactory | ( | Message::MessageDirection | direction, |
int | position, | ||
QObject * | target, | ||
const char * | slot | ||
) |
- Parameters
-
direction The direction this factory should create message handlers for position Where in the chain the handler should be installed target The object to call back to when handling a message slot The slot on target
to call when handling a message
Definition at line 36 of file kopetesimplemessagehandler.cpp.
Kopete::SimpleMessageHandlerFactory::~SimpleMessageHandlerFactory | ( | ) |
Definition at line 46 of file kopetesimplemessagehandler.cpp.
Member Function Documentation
|
virtual |
Creates and returns a SimpleMessageHandler object.
Implements Kopete::MessageHandlerFactory.
Definition at line 51 of file kopetesimplemessagehandler.cpp.
|
virtual |
Returns the filter position passed to the constructor if direction
matches the direction passed to the constructor, otherwise returns StageDoNotCreate
.
Implements Kopete::MessageHandlerFactory.
Definition at line 61 of file kopetesimplemessagehandler.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.