KNotify
notifybypopup.cpp
Go to the documentation of this file.
267 KVBox *vb = pop->standardView( config->title.isEmpty() ? appCaption : config->title , config->image.isNull() ? config->text : QString() , appIcon );
301 linkCode+=QString::fromLatin1(" <a href=\"%1/%2\">%3</a> ").arg( id ).arg( i ).arg( Qt::escape(it) );
308 QObject::connect(link, SIGNAL(linkActivated(const QString &)), this, SLOT(slotLinkClicked(const QString& ) ) );
391 void NotifyByPopup::getAppCaptionAndIconName(KNotifyConfig *config, QString *appCaption, QString *iconName)
414 QDBusMessage m = QDBusMessage::createMethodCall( dbusServiceName, dbusPath, dbusInterfaceName, "Notify" );
478 kWarning() << "Received twice the same id "<< dbus_id << "( previous notification: " << oldId << ")";
void clear()
QString & append(QChar ch)
QDBusReply< void > startService(const QString &name)
iterator insert(const Key &key, const T &value)
int width() const
bool contains(const Key &key) const
const Key key(const T &value) const
QDBusMessage call(const QDBusMessage &message, QDBus::CallMode mode, int timeout) const
QObject * sender() const
void setOpenExternalLinks(bool open)
QDBusConnectionInterface * interface() const
void setPixmap(const QPixmap &)
bool contains(const QString &str, Qt::CaseSensitivity cs) const
QList< QVariant > arguments() const
int timeout
How long the notification should be presented (in seconds).
Definition: knotifyconfig.h:95
MessageType type() const
void setAlignment(QFlags< Qt::AlignmentFlag >)
QPixmap fromImage(const QImage &image, QFlags< Qt::ImageConversionFlag > flags)
bool isValid() const
QDBusConnection sessionBus()
virtual void timerEvent(QTimerEvent *event)
QList< Key > keys() const
QString number(int n, int base)
void append(const T &value)
void setConnection(const QDBusConnection &connection)
int top() const
Type value() const
int left() const
bool isEmpty() const
bool send(const QDBusMessage &message) const
bool isEmpty() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
void setScaledContents(bool)
QFuture< void > map(Sequence &sequence, MapFunction function)
iterator end()
int remove(const Key &key)
iterator begin()
virtual void update(int id, KNotifyConfig *config)
This function is called when the notification has changed (such as the text or the icon) ...
Definition: notifybypopup.cpp:235
QList< Key > keys() const
bool isNull() const
void clear()
const T value(const Key &key) const
int height() const
QString name() const
const Key key(const T &value) const
void finish(int id)
emit the finished signal you MUST call this function for each call to notify(), even if you do nothin...
Definition: knotifyplugin.cpp:49
void setTextInteractionFlags(QFlags< Qt::TextInteractionFlag > flags)
int startTimer(int interval)
int width() const
void setMaximumWidth(int maxw)
virtual void notify(int id, KNotifyConfig *config)
This function is called when the notification is sent.
Definition: notifybypopup.cpp:107
T take(const Key &key)
QDesktopWidget * desktop()
void setMaximumHeight(int maxh)
QString escape(const QString &plain)
virtual QString resolveUndeclaredEntity(const QString &name)
virtual void close(int id)
This function is called when the notification has been closed.
Definition: notifybypopup.cpp:225
static void popup(const QPixmap *icon, int timeout, const QString &title, const QString &message)
Send a popup through Growl.
Definition: notifybypopupgrowl.cpp:55
static QStringList capabilities()
Get the capabilities supported by Growl.
Definition: notifybypopupgrowl.cpp:43
int timerId() const
WId winId
The windowsID of the window that initiated the notification (it is a window in the client) ...
Definition: knotifyconfig.h:100
QString section(QChar sep, int start, int end, QFlags< QString::SectionFlag > flags) const
QStringList popupServerCapabilities()
Definition: notifybypopup.cpp:519
QString fromLatin1(const char *str, int size)
void setArguments(const QList< QVariant > &arguments)
const QRect availableGeometry(int screen) const
bool contains(const Key &key) const
QVariant variantForImage(const QImage &_image)
Returns a variant representing an image using the format describe in the galago spec.
Definition: imageconverter.cpp:63
void actionInvoked(int id, int action)
emit this signal if one action was invoked
bool connect(const QString &service, const QString &path, const QString &interface, const QString &name, QObject *receiver, const char *slot)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setWatchMode(QFlags< QDBusServiceWatcher::WatchModeFlag > mode)
QString appname
the name of the application that triggered the notification
Definition: knotifyconfig.h:109
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
void killTimer(int id)
QDBusMessage createMethodCall(const QString &service, const QString &path, const QString &interface, const QString &method)
T take(const Key &key)
void destroyed(QObject *obj)
void addWatchedService(const QString &newService)
const T value(const Key &key) const
uint toUInt(bool *ok, int base) const
int remove(const Key &key)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:08:23 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:08:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.