summaryrefslogtreecommitdiffstats
path: root/src/daemon/NotifyWidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/NotifyWidget.h')
-rw-r--r--src/daemon/NotifyWidget.h25
1 files changed, 18 insertions, 7 deletions
diff --git a/src/daemon/NotifyWidget.h b/src/daemon/NotifyWidget.h
index 9927d61..d80c154 100644
--- a/src/daemon/NotifyWidget.h
+++ b/src/daemon/NotifyWidget.h
@@ -25,12 +25,12 @@
#include <tqlabel.h>
#include <tqtextedit.h>
-#include <tqpixmap.h>
+#include <tqimage.h>
#include <tqdbusvariant.h>
//class NotificationsService;
-class NotifyWidget: public TQLabel
+class NotifyWidget: public TQWidget
{
TQ_OBJECT
@@ -87,9 +87,12 @@ Categories are in class.specific form. class specifies the generic type of notif
void setSoundFile(const TQString&);
void setSoundName(const TQString&);
void setSuppressSound(bool);
+ void setResident(bool);
+ bool isResident();
void setTransient(bool);
- void setUrgency(TQ_UINT16);
- void setSenderPid(TQ_UINT64);
+ bool isTransient();
+ void setUrgency(TQ_UINT8);
+ void setSenderPid(TQ_INT64);
/**
* The timeout time in milliseconds since the display of the notification at which the notification should automatically close.
@@ -99,6 +102,11 @@ If -1, the notification's expiration time is dependent on the notification serve
If 0, the notification never expires.
*/
void setTimeout(TQ_INT32 t);
+
+ /**
+ * Set the text of the notification
+ */
+ void setText(TQString);
/**
* DBus signals
* 1. org.freedesktop.Notifications.NotificationClosed is implemented
@@ -125,20 +133,23 @@ private slots:
void slotFadeAway();
private:
+ TQLabel* mIconLabel;
+ TQLabel* mImageLabel;
+ TQLabel* mTextLabel;
TQString mName;
TQ_INT32 mId;
- TQString mIcon;
TQStringList mActions; // not implemented
TQString mCategory; // not implemented
TQTimer *mTimer;
TQ_UINT16 mUrgency;
- TQPixmap mImageData;
+ TQImage mImageData;
TQString mSoundFile;
TQString mSoundName;
bool mPersistence;
bool mSuppressSound;
+ bool mResident;
bool mTransient;
- TQ_UINT64 mSenderPid;
+ TQ_INT64 mSenderPid;
};