KDEUI
knotification.h
Go to the documentation of this file.
273 explicit KNotification(const QString & eventId , QWidget *widget=0L, const NotificationFlags &flags=CloseOnTimeout);
298 explicit KNotification(const QString & eventId , const NotificationFlags &flags, QObject *parent = NULL );
virtual bool eventFilter(QObject *watched, QEvent *event)
reimplemented for internal reasons
Definition knotification.cpp:427
KNotification(const QString &eventId, QWidget *widget=0L, const NotificationFlags &flags=CloseOnTimeout)
Create a new notification.
Definition knotification.cpp:82
void action3Activated()
This is an overloaded member function, provided for convenience. It differs from the above function o...
static void beep(const QString &reason=QString(), QWidget *widget=0L)
This is a simple substitution for QApplication::beep()
Definition knotification.cpp:352
static KNotification * event(const QString &eventId, const QString &title, const QString &text, const QPixmap &pixmap=QPixmap(), QWidget *widget=0L, const NotificationFlags &flags=CloseOnTimeout, const KComponentData &componentData=KComponentData())
emit an event
Definition knotification.cpp:291
void action2Activated()
This is an overloaded member function, provided for convenience. It differs from the above function o...
void action1Activated()
Convenience signal that is emitted when the first action is activated.
void ref()
The notification will automatically be closed if all presentations are finished.
Definition knotification.cpp:340
@ CloseOnTimeout
The notification will be automatically closed after a timeout.
Definition knotification.h:219
@ CloseWhenWidgetActivated
The notification will be automatically closed if the widget() becomes activated.
Definition knotification.h:238
@ Persistent
The notification will NOT be automatically closed after a timeout.
Definition knotification.h:226
@ RaiseWidgetOnActivation
When the notification is activated, raise the notification's widget.
Definition knotification.h:214
QPair< QString, QString > Context
Sometimes the user may want different notifications for the same event, depending the source of the e...
Definition knotification.h:203
void activate(unsigned int action=0)
Activate the action specified action If the action is zero, then the default action is activated.
Definition knotification.cpp:222
void deref()
remove a reference made with ref() the notification may be closed when calling this.
Definition knotification.cpp:345
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.