From 1f53a36475802116e84dded35a98ba65626df90a Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 5 Apr 2010 20:17:44 +0000 Subject: kde notifier: better compatibility with opendesktop notification server 1.1 spec, removedhtml tags and other imrovements (patch by Artur Guzik) git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1656 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/kdenotify/kdenotify.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'src/plugins/General/kdenotify/kdenotify.h') diff --git a/src/plugins/General/kdenotify/kdenotify.h b/src/plugins/General/kdenotify/kdenotify.h index 26aae0cdf..937c383f6 100644 --- a/src/plugins/General/kdenotify/kdenotify.h +++ b/src/plugins/General/kdenotify/kdenotify.h @@ -28,8 +28,10 @@ #include "qmmp/qmmp.h" #define DEFAULT_TEMPLATE "%if(%t,%t,%f)\n%if(%p,
%p,)\n%if(%a,
%a,)\n%if(%l,
%l,)" +#define NOTIFY_DELAY 2 class QDBusInterface; +class QTimer; class KdeNotify : public General { @@ -40,17 +42,20 @@ public: private: QList prepareNotification(); - QDBusInterface *notifier; + QString totalTimeString(); + QDBusInterface *m_notifier; QString m_coverPath; - int m_NotifyDelay; - bool m_ShowCovers; - bool m_UseFreedesktopSpec; + int m_notifyDuration; + unsigned int m_currentNotifyId; + bool m_showCovers; + bool m_useFreedesktopSpec; + bool m_updateNotify; QString m_template; QString m_imagesDir; - + private slots: void showMetaData(); - QString totalTimeString(); + void notificationClosed(uint id, uint reason); }; #endif // KDENOTIFY_H -- cgit v1.2.3-13-gbd6f