• 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
kopeteactivenotification.h
Go to the documentation of this file.
1 /*
2  kopeteactivenotification.h - View Manager
3 
4  Kopete (c) 2009 by the Kopete developers <kopete-devel@kde.org>
5 
6  *************************************************************************
7  * *
8  * This program is free software; you can redistribute it and/or modify *
9  * it under the terms of the GNU General Public License as published by *
10  * the Free Software Foundation; either version 2 of the License, or *
11  * (at your option) any later version. *
12  * *
13  *************************************************************************
14 */
15 
16 #ifndef KOPETEACTIVENOTIFICATION_H
17 #define KOPETEACTIVENOTIFICATION_H
18 
19 #include <QHash>
20 
21 class KNotification;
22 
23 namespace Kopete
24 {
25 
26 class ActiveNotification;
27 
28 typedef QHash<QString, ActiveNotification *> ActiveNotifications;
29 
30 class ActiveNotification : public QObject
31 {
32  Q_OBJECT
33 
34  public:
39  ActiveNotification( KNotification *notification, const QString& id_, ActiveNotifications& notifications_, const QString& title_, const QString& body_ );
40 
44  ~ActiveNotification();
45 
49  void showNotification();
50 
54  void incrementMessages();
55 
56  private:
57  QString id;
58  ActiveNotifications& notifications;
59  int nEventsSinceNotified;
60 
64  QString title;
65 
70  QString body;
71 };
72 
73 }
74 
75 #endif
Kopete::ActiveNotification::ActiveNotification
ActiveNotification(KNotification *notification, const QString &id_, ActiveNotifications &notifications_, const QString &title_, const QString &body_)
Construct an active notification and add to the specified hash.
Definition: kopeteactivenotification.cpp:23
QHash< QString, ActiveNotification * >
QObject
QString
Kopete::ActiveNotification::showNotification
void showNotification()
Show this notification.
Definition: kopeteactivenotification.cpp:46
Kopete::ActiveNotification::incrementMessages
void incrementMessages()
received another message from a sender with a notification
Definition: kopeteactivenotification.cpp:53
Kopete::ActiveNotifications
QHash< QString, ActiveNotification * > ActiveNotifications
Definition: kopeteactivenotification.h:26
Kopete::ActiveNotification
Definition: kopeteactivenotification.h:30
Kopete::ActiveNotification::~ActiveNotification
~ActiveNotification()
Remove active notification from queue.
Definition: kopeteactivenotification.cpp:39
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