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.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/daemon/NotifyWidget.h b/src/daemon/NotifyWidget.h
new file mode 100644
index 0000000..17b17b6
--- /dev/null
+++ b/src/daemon/NotifyWidget.h
@@ -0,0 +1,57 @@
+/*
+ * NotifyWidget.h
+ *
+ * Created on: May 14, 2021
+ * Author: emanoil
+ *
+ * kdbusnotification Copyright (C) 2009 kdbusnotification development team
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+#ifndef SRC_DAEMON_NOTIFYWIDGET_H_
+#define SRC_DAEMON_NOTIFYWIDGET_H_
+
+#include <tqlabel.h>
+
+class NotifyWidget: public TQLabel
+{
+ TQ_OBJECT
+
+public:
+ NotifyWidget( TQWidget *parent=0, const char *name=0 );
+ virtual ~NotifyWidget();
+
+ void setAutoMask(bool b);
+
+ void setIcon(const TQString& icon);
+ void setActions(const TQStringList& actions);
+// void setHints(const TQMap< TQString, TQT_DBusVariant >& hints);
+ void setTimeout(TQ_INT32 t);
+
+protected:
+ void mousePressEvent( TQMouseEvent *);
+
+private slots:
+ void timeout();
+
+private:
+ TQString mIcon;
+ TQStringList mActions;
+// TQMap< TQString, TQT_DBusVariant > mHints;
+ TQ_INT32 mTimeout;
+ TQString id;
+
+};
+
+#endif /* SRC_DAEMON_NOTIFYWIDGET_H_ */