• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/libkopete

  • Kopete
  • MessageEvent
Public Types | Public Slots | Signals | Public Member Functions | List of all members
Kopete::MessageEvent Class Reference

#include <kopetemessageevent.h>

Inheritance diagram for Kopete::MessageEvent:
Inheritance graph
[legend]

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

Author
Olivier Goffart ogoff.nosp@m.art@.nosp@m.kde.o.nosp@m.rg
Richard Smith richa.nosp@m.rd@m.nosp@m.etafo.nosp@m.o.co.nosp@m..uk

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

enum Kopete::MessageEvent::EventState

The state of the event.

  • Nothing means that the event has not been accepted or ignored
  • Applied if the event has been applied
  • Ignored if the event has been ignored
Enumerator
Nothing 
Applied 
Ignored 

Definition at line 66 of file kopetemessageevent.h.

Constructor & Destructor Documentation

Kopete::MessageEvent::MessageEvent ( const Kopete::Message &  m,
QObject *  parent = 0L 
)
explicit

Definition at line 40 of file kopetemessageevent.cpp.

Kopete::MessageEvent::~MessageEvent ( )

Definition at line 50 of file kopetemessageevent.cpp.

Member Function Documentation

void Kopete::MessageEvent::accept ( )
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.

void Kopete::MessageEvent::accepted ( Kopete::MessageEvent *  event)
signal

The event has been accepted by its current handler.

Parameters
eventThe event sending the signal.
void Kopete::MessageEvent::apply ( )
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.

void Kopete::MessageEvent::discard ( )
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.

void Kopete::MessageEvent::discarded ( Kopete::MessageEvent *  event)
signal

The event has been discarded.

Parameters
eventThe event sending the signal.
void Kopete::MessageEvent::done ( Kopete::MessageEvent *  )
signal

The event has been processed.

void Kopete::MessageEvent::ignore ( )
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
messageThe 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:
  • kopetemessageevent.h
  • kopetemessageevent.cpp
This file is part of the KDE documentation.
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.

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal