summaryrefslogtreecommitdiffstats
path: root/src/daemon/engines.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-17 19:45:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-17 19:45:53 +0000
commit845ab4463a5cd4f817467ae6ad15110929a41c5e (patch)
treee48d54e487782985ad44702a27ceddfceda8d95b /src/daemon/engines.h
downloadkdbusnotification-845ab4463a5cd4f817467ae6ad15110929a41c5e.tar.gz
kdbusnotification-845ab4463a5cd4f817467ae6ad15110929a41c5e.zip
Add kdbusnotification skeleton
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdbusnotification@1259323 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/daemon/engines.h')
-rw-r--r--src/daemon/engines.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/daemon/engines.h b/src/daemon/engines.h
new file mode 100644
index 0000000..fc2ccf7
--- /dev/null
+++ b/src/daemon/engines.h
@@ -0,0 +1,47 @@
+/* $Id: engines.h 2114 2006-10-22 14:44:42Z nick $
+ *
+ * Copyright (C) 2006 Christian Hammond <chipx86@chipx86.com>
+ * Copyright (C) 2005 John (J5) Palmieri <johnp@redhat.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * 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 _ENGINES_H_
+#define _ENGINES_H_
+
+#include <gtk/gtk.h>
+
+typedef void (*UrlClickedCb)(GtkWindow *nw, const char *url);
+
+GtkWindow *theme_create_notification(UrlClickedCb url_clicked_cb);
+void theme_destroy_notification(GtkWindow *nw);
+void theme_show_notification(GtkWindow *nw);
+void theme_hide_notification(GtkWindow *nw);
+void theme_set_notification_hints(GtkWindow *nw, GHashTable *hints);
+void theme_set_notification_timeout(GtkWindow *nw, glong timeout);
+void theme_notification_tick(GtkWindow *nw, glong remaining);
+void theme_set_notification_text(GtkWindow *nw, const char *summary,
+ const char *body);
+void theme_set_notification_icon(GtkWindow *nw, GdkPixbuf *pixbuf);
+void theme_set_notification_arrow(GtkWindow *nw, gboolean visible,
+ int x, int y);
+void theme_add_notification_action(GtkWindow *nw, const char *label,
+ const char *key, GCallback cb);
+void theme_clear_notification_actions(GtkWindow *nw);
+void theme_move_notification(GtkWindow *nw, int x, int y);
+void theme_changed_cb(void);
+
+#endif /* _ENGINES_H_ */