• 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
kopeteinfoevent.h
Go to the documentation of this file.
1 /*
2  kopeteinfoevent.h - Kopete Info Event
3 
4  Copyright (c) 2008 by Roman Jarosz <kedgedev@centrum.cz>
5  Kopete (c) 2008 by the Kopete developers <kopete-devel@kde.org>
6 
7  *************************************************************************
8  * *
9  * This library is free software; you can redistribute it and/or *
10  * modify it under the terms of the GNU Lesser General Public *
11  * License as published by the Free Software Foundation; either *
12  * version 2 of the License, or (at your option) any later version. *
13  * *
14  *************************************************************************
15 */
16 #ifndef KOPETEINFOEVENT_H
17 #define KOPETEINFOEVENT_H
18 
19 #include <QtCore/QMap>
20 #include <QtCore/QObject>
21 #include <QtCore/QString>
22 
23 #include "kopete_export.h"
24 
25 namespace Kopete {
26 
39 class KOPETE_EXPORT InfoEvent : public QObject
40 {
41 Q_OBJECT
42 public:
43  InfoEvent( QObject *parent = 0 );
44 
45  ~InfoEvent();
46 
50  QString title() const;
51 
56  void setTitle( const QString& title );
57 
61  QString text() const;
62 
73  void setText( const QString& text );
74 
78  QString additionalText() const;
79 
87  void setAdditionalText( const QString& text );
88 
92  QMap<uint, QString> actions() const;
93 
98  void addAction( uint actionId, const QString& actionText );
99 
103  bool showOnSend() const;
104 
109  void setShowOnSend( bool showOnSend );
110 
114  bool isClosed() const;
115 
116 public Q_SLOTS:
120  virtual void sendEvent();
121 
125  virtual void activate( uint actionId );
126 
132  void close();
133 
134 Q_SIGNALS:
138  void changed();
139 
145  void actionActivated( uint actionId );
146 
150  void eventClosed( Kopete::InfoEvent* event );
151 
152 private:
153  class Private;
154  Private * const d;
155 
156 };
157 
158 }
159 
160 #endif
KOPETE_EXPORT
#define KOPETE_EXPORT
Definition: kopete_export.h:27
QMap< uint, QString >
Kopete::InfoEvent
Base class for all Info Events.
Definition: kopeteinfoevent.h:39
QObject
kopete_export.h
QString
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