• 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
kopeteinfoeventmanager.h
Go to the documentation of this file.
1 /*
2  kopeteinfoeventmanager.h - Kopete Info Event Manager
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 KOPETEINFOEVENTMANAGER_H
17 #define KOPETEINFOEVENTMANAGER_H
18 
19 #include <QObject>
20 #include "kopete_export.h"
21 
22 namespace Kopete {
23 
24 class InfoEvent;
25 
34 class KOPETE_EXPORT InfoEventManager : public QObject
35 {
36 Q_OBJECT
37 public:
45  static InfoEventManager *self();
46 
47  ~InfoEventManager();
48 
52  QList<InfoEvent*> events() const;
53 
57  int eventCount() const;
58 
62  Kopete::InfoEvent* event( int i ) const;
63 
64 Q_SIGNALS:
68  void changed();
69 
73  void eventAdded( Kopete::InfoEvent* event );
74 
82  void eventAboutToBeAdded( Kopete::InfoEvent* event );
83 
84 protected:
85  friend class InfoEvent;
91  void addEvent( Kopete::InfoEvent* event );
92 
93  using QObject::event;
94 
95 private Q_SLOTS:
96  void eventClosed( Kopete::InfoEvent* event );
97 
98 private:
99  InfoEventManager();
100 
101  static InfoEventManager *instance;
102 
103  class Private;
104  Private * const d;
105 };
106 
107 }
108 
109 #endif
KOPETE_EXPORT
#define KOPETE_EXPORT
Definition: kopete_export.h:27
Kopete::InfoEvent
Base class for all Info Events.
Definition: kopeteinfoevent.h:39
QObject::event
virtual bool event(QEvent *e)
QObject
kopete_export.h
QList
Kopete::InfoEventManager
The Info Event Manager that contains all info event items.
Definition: kopeteinfoeventmanager.h:34
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