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

kopete/libkopete

  • sources
  • kde-4.14
  • kdenetwork
  • kopete
  • libkopete
kopetemessageevent.h
Go to the documentation of this file.
1 /*
2  kopetemessageevent.h - Kopete Message Event
3 
4  Copyright (c) 2003 by Olivier Goffart <ogoffart@kde.org>
5  Copyright (c) 2002 by Duncan Mac-Vicar Prett <duncan@kde.org>
6  Copyright (c) 2002 by Hendrik vom Lehn <hvl@linux-4-ever.de>
7  Copyright (c) 2004 by Richard Smith <richard@metafoo.co.uk>
8 
9  Kopete (c) 2002 by the Kopete developers <kopete-devel@kde.org>
10 
11  *************************************************************************
12  * *
13  * This library is free software; you can redistribute it and/or *
14  * modify it under the terms of the GNU Lesser General Public *
15  * License as published by the Free Software Foundation; either *
16  * version 2 of the License, or (at your option) any later version. *
17  * *
18  *************************************************************************
19 */
20 
21 #ifndef KOPETEMESSAGEEVENT_H
22 #define KOPETEMESSAGEEVENT_H
23 
24 #include <QtCore/QObject>
25 
26 #include "kopetemessage.h"
27 #include "kopete_export.h"
28 
29 namespace Kopete
30 {
31 
41 class KOPETE_EXPORT MessageEvent : public QObject
42 {
43  Q_OBJECT
44 
45 public:
46  explicit MessageEvent(const Kopete::Message& , QObject* parent=0L ); /* implicit */
47  ~MessageEvent();
48 
52  Kopete::Message message();
53 
58  void setMessage( const Kopete::Message &message );
59 
66  enum EventState { Nothing , Applied , Ignored };
67 
68  EventState state();
69 
70 public slots:
76  void apply();
77 
83  void ignore();
84 
90  void accept();
91 
98  void discard();
99 
100 signals:
104  void done(Kopete::MessageEvent *);
105 
110  void discarded(Kopete::MessageEvent *event);
111 
116  void accepted(Kopete::MessageEvent *event);
117 
118 private:
119  class Private;
120  Private * const d;
121 };
122 
123 }
124 
125 #endif
126 
127 // vim: set noet ts=4 sts=4 sw=4:
128 
KOPETE_EXPORT
#define KOPETE_EXPORT
Definition: kopete_export.h:27
Kopete::MessageEvent
Definition: kopetemessageevent.h:41
Kopete::MessageEvent::EventState
EventState
The state of the event.
Definition: kopetemessageevent.h:66
QObject
kopete_export.h
Kopete::MessageEvent::Nothing
Definition: kopetemessageevent.h:66
kopetemessage.h
Kopete::Message
Representation of a message in Kopete.
Definition: kopetemessage.h:82
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:19 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