• 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
  • private
kopeteutils_private.h
Go to the documentation of this file.
1 /*
2  Kopete Utils.
3 
4  Copyright (c) 2005 Duncan Mac-Vicar Prett <duncan@kde.org>
5 
6  Kopete (c) 2002-2005 by the Kopete developers <kopete-devel@kde.org>
7 
8  *************************************************************************
9  * *
10  * This library is free software; you can redistribute it and/or *
11  * modify it under the terms of the GNU Lesser General Public *
12  * License as published by the Free Software Foundation; either *
13  * version 2 of the License, or (at your option) any later version. *
14  * *
15  *************************************************************************
16 */
17 
18 #ifndef KOPETE_UTILS_PRIVATE_H
19 #define KOPETE_UTILS_PRIVATE_H
20 
21 #include <qmap.h>
22 #include "qobject.h"
23 #include "qstring.h"
24 #include "qpixmap.h"
25 
26 class KNotification;
27 
28 namespace Kopete
29 {
30 
31 namespace Utils
32 {
33 
34 typedef struct
35 {
36  QString caption;
37  QString explanation;
38  QString debugInfo;
39 } ErrorNotificationInfo;
40 
41 class NotifyHelper : public QObject
42 {
43 Q_OBJECT
44 public:
45  static NotifyHelper* self();
46  void registerNotification(const KNotification* event, ErrorNotificationInfo error);
47  void unregisterNotification(const KNotification* event);
48 public slots:
49  void slotEventActivated(unsigned int action);
50  void slotEventClosed();
51 private:
52  NotifyHelper();
53  ~NotifyHelper();
54  QMap<const KNotification*, ErrorNotificationInfo> m_events;
55  static NotifyHelper *s_self;
56 };
57 
58 } // end ns Utils
59 } // end ns Kopete
60 
61 #endif
Kopete::Utils::NotifyHelper::slotEventClosed
void slotEventClosed()
Definition: kopeteutils_private.cpp:67
Kopete::Utils::NotifyHelper::slotEventActivated
void slotEventActivated(unsigned int action)
Definition: kopeteutils_private.cpp:52
Kopete::Utils::ErrorNotificationInfo::debugInfo
QString debugInfo
Definition: kopeteutils_private.h:38
QMap
QObject::event
virtual bool event(QEvent *e)
Kopete::Utils::NotifyHelper::unregisterNotification
void unregisterNotification(const KNotification *event)
Definition: kopeteutils_private.cpp:79
QObject
Kopete::Utils::ErrorNotificationInfo::explanation
QString explanation
Definition: kopeteutils_private.h:37
Kopete::Utils::ErrorNotificationInfo
Definition: kopeteutils_private.h:34
QString
Kopete::Utils::NotifyHelper
Definition: kopeteutils_private.h:41
Kopete::Utils::NotifyHelper::registerNotification
void registerNotification(const KNotification *event, ErrorNotificationInfo error)
Definition: kopeteutils_private.cpp:74
Kopete::Utils::ErrorNotificationInfo::caption
QString caption
Definition: kopeteutils_private.h:36
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