kopete/libkopete
#include <kopetemessageevent.h>
Public Types | |
enum | EventState { Nothing, Applied, Ignored } |
Public Slots | |
void | accept () |
void | apply () |
void | discard () |
void | ignore () |
Signals | |
void | accepted (Kopete::MessageEvent *event) |
void | discarded (Kopete::MessageEvent *event) |
void | done (Kopete::MessageEvent *) |
Public Member Functions | |
MessageEvent (const Kopete::Message &, QObject *parent=0L) | |
~MessageEvent () | |
Kopete::Message | message () |
void | setMessage (const Kopete::Message &message) |
EventState | state () |
Detailed Description
Kopete::MessageEvent is used when a new messages arrives, it is caught by the UI. It contains just information about the message, and a signal when it is terminated (i.e. the message is read
Definition at line 41 of file kopetemessageevent.h.
Member Enumeration Documentation
The state of the event.
Nothing
means that the event has not been accepted or ignoredApplied
if the event has been appliedIgnored
if the event has been ignored
Enumerator | |
---|---|
Nothing | |
Applied | |
Ignored |
Definition at line 66 of file kopetemessageevent.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 40 of file kopetemessageevent.cpp.
Kopete::MessageEvent::~MessageEvent | ( | ) |
Definition at line 50 of file kopetemessageevent.cpp.
Member Function Documentation
|
slot |
Passes the event to the next handler.
Call this when you've finished processing this event
Definition at line 88 of file kopetemessageevent.cpp.
|
signal |
The event has been accepted by its current handler.
- Parameters
-
event The event sending the signal.
|
slot |
- Deprecated:
- Use accept() instead to continue the processing of this event once the caller has moved to using MessageHandlers
execute the event
Definition at line 72 of file kopetemessageevent.cpp.
|
slot |
Discards the event.
If this event should not be processed any further, this function should be called to discard it.
Definition at line 93 of file kopetemessageevent.cpp.
|
signal |
The event has been discarded.
- Parameters
-
event The event sending the signal.
|
signal |
The event has been processed.
|
slot |
- Deprecated:
- Use discard() instead to destroy this event once the caller has moved to using MessageHandlers
ignore the event
Definition at line 78 of file kopetemessageevent.cpp.
Kopete::Message Kopete::MessageEvent::message | ( | ) |
- Returns
- A copy of the message
Definition at line 57 of file kopetemessageevent.cpp.
void Kopete::MessageEvent::setMessage | ( | const Kopete::Message & | message | ) |
Sets the message contained in this event.
- Parameters
-
message The new value for the message
Definition at line 62 of file kopetemessageevent.cpp.
MessageEvent::EventState Kopete::MessageEvent::state | ( | ) |
Definition at line 67 of file kopetemessageevent.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.