KDEUI
knotification.cpp
Go to the documentation of this file.
82 KNotification::KNotification(const QString& eventId, QWidget *parent, const NotificationFlags& flags) :
291 KNotification *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)
312 KNotification *KNotification::event( StandardEvent eventid , const QString& title, const QString& text,
372 if (KNotificationManager::self()->notify( this , d->pixmap , d->actions , d->contexts , appname ))
void message(KMessage::MessageType messageType, const QString &text, const QString &caption=QString())
Definition: knotification.h:247
Type type() const
int timeout
QString message() const
bool isTopLevel() const
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 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 setActions(const QStringList &actions)
Set the list of actions link shown in the popup.
Definition: knotification.cpp:178
virtual bool eventFilter(QObject *watched, QEvent *event)
reimplemented for internal reasons
Definition: knotification.cpp:427
void setFlags(const NotificationFlags &flags)
Set the notification flags.
Definition: knotification.cpp:211
Definition: knotification.h:256
static void activateWindow(WId win, long time=0)
Requests that window win is activated.
Definition: kwindowsystem_mac.cpp:355
void setPixmap(const QPixmap &pix)
set the pixmap that will be shown in the popup.
Definition: knotification.cpp:165
void installEventFilter(QObject *filterObj)
void ref()
The notification will automatically be closed if all presentations are finished.
Definition: knotification.cpp:340
void setTitle(const QString &title)
Set the title of the notification popup.
Definition: knotification.cpp:144
void setWidget(QWidget *widget)
Set the widget associated to the notification.
Definition: knotification.cpp:135
void raise()
void setText(const QString &text)
Set the notification text that will appear in the popup.
Definition: knotification.cpp:152
static void beep(const QString &reason=QString(), QWidget *widget=0L)
This is a simple substitution for QApplication::beep()
Definition: knotification.cpp:352
WId winId() const
void deleteLater()
QString componentName() const
Definition: knotification.h:256
void setComponentData(const KComponentData &componentData)
The componentData is used to determine the location of the config file.
Definition: knotification.cpp:217
The notification will be automatically closed if the widget() becomes activated.
Definition: knotification.h:238
void setParent(QObject *parent)
void addContext(const Context &context)
append a context at the list of contexts, see KNotificaiton::Context
Definition: knotification.cpp:196
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 activateWindow()
void action3Activated()
This is an overloaded member function, provided for convenience. It differs from the above function o...
QWidget * parentWidget() const
const KComponentData & mainComponent()
Definition: knotification.h:256
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void action1Activated()
Convenience signal that is emitted when the first action is activated.
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void action2Activated()
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: knotification.h:256
The notification will be automatically closed after a timeout.
Definition: knotification.h:219
QWidget * widget() const
the widget associated to the notification
Definition: knotification.cpp:130
void deref()
remove a reference made with ref() the notification may be closed when calling this.
Definition: knotification.cpp:345
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.