KDEUI
knotification.cpp
Go to the documentation of this file.
82KNotification::KNotification(const QString& eventId, QWidget *parent, const NotificationFlags& flags) :
291KNotification *KNotification::event( const QString& eventid , const QString& title, const QString& text,
292 const QPixmap& pixmap, QWidget *widget, const NotificationFlags &flags, const KComponentData &componentData)
306 const QPixmap& pixmap, QWidget *widget, const NotificationFlags &flags, const KComponentData &componentData)
312KNotification *KNotification::event( StandardEvent eventid , const QString& title, const QString& text,
QString componentName() const
virtual bool eventFilter(QObject *watched, QEvent *event)
reimplemented for internal reasons
Definition knotification.cpp:427
void setTitle(const QString &title)
Set the title of the notification popup.
Definition knotification.cpp:144
KNotification(const QString &eventId, QWidget *widget=0L, const NotificationFlags &flags=CloseOnTimeout)
Create a new notification.
Definition knotification.cpp:82
void setContexts(const ContextList &contexts)
set the list of contexts, see KNotification::Context
Definition knotification.cpp:191
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
void setFlags(const NotificationFlags &flags)
Set the notification flags.
Definition knotification.cpp:211
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 setPixmap(const QPixmap &pix)
set the pixmap that will be shown in the popup.
Definition knotification.cpp:165
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
void setActions(const QStringList &actions)
Set the list of actions link shown in the popup.
Definition knotification.cpp:178
void addContext(const Context &context)
append a context at the list of contexts, see KNotificaiton::Context
Definition knotification.cpp:196
@ 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
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 setWidget(QWidget *widget)
Set the widget associated to the notification.
Definition knotification.cpp:135
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 setComponentData(const KComponentData &componentData)
The componentData is used to determine the location of the config file.
Definition knotification.cpp:217
void setText(const QString &text)
Set the notification text that will appear in the popup.
Definition knotification.cpp:152
void deref()
remove a reference made with ref() the notification may be closed when calling this.
Definition knotification.cpp:345
static void activateWindow(WId win, long time=0)
Requests that window win is activated.
Definition kwindowsystem_mac.cpp:355
#define kWarning
int timeout
const KComponentData & mainComponent()
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.