1 /* Notification plugin for Claws-Mail
2 * Copyright (C) 2005-2007 Holger Berndt
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef NOTIFICATION_PREFS_H
19 #define NOTIFICATION_PREFS_H NOTIFICATION_PREFS_H
23 # include "claws-features.h"
28 #include "prefs_gtk.h"
30 #include "notification_banner.h"
32 #ifdef NOTIFICATION_BANNER
34 NOTIFY_BANNER_SHOW_NEVER = 0,
35 NOTIFY_BANNER_SHOW_ALWAYS,
36 NOTIFY_BANNER_SHOW_NONEMPTY
41 gboolean include_mail;
42 gboolean include_news;
44 gboolean include_calendar;
45 gboolean urgency_hint_new;
46 gboolean urgency_hint_unread;
47 #ifdef HAVE_LIBCANBERRA_GTK
48 gboolean canberra_play_sounds;
50 #ifdef NOTIFICATION_BANNER
51 NotifyBannerShow banner_show;
53 gboolean banner_include_unread;
55 gboolean banner_sticky;
58 gboolean banner_folder_specific;
59 gboolean banner_enable_colors;
60 gulong banner_color_bg;
61 gulong banner_color_fg;
64 #ifdef NOTIFICATION_POPUP
67 gboolean popup_folder_specific;
68 #ifndef HAVE_LIBNOTIFY
69 gboolean popup_sticky;
73 gboolean popup_enable_colors;
74 gulong popup_color_bg;
75 gulong popup_color_fg;
76 #else /* HAVE_LIBNOTIFY */
77 gboolean popup_display_folder_name;
78 #endif /* HAVE_LIBNOTIFY */
80 #ifdef NOTIFICATION_COMMAND
81 gboolean command_enabled;
83 gboolean command_folder_specific;
86 #ifdef NOTIFICATION_LCDPROC
87 gboolean lcdproc_enabled;
88 gchar* lcdproc_hostname;
92 #ifdef NOTIFICATION_TRAYICON
93 gboolean trayicon_enabled;
94 gboolean trayicon_hide_at_startup;
95 gboolean trayicon_close_to_tray;
96 gboolean trayicon_hide_when_iconified;
97 gboolean trayicon_folder_specific;
99 gboolean trayicon_display_folder_name;
100 gboolean trayicon_popup_enabled;
101 gint trayicon_popup_timeout;
102 #endif /* HAVE_LIBNOTIFY */
103 #endif /* Trayicon */
104 #ifdef NOTIFICATION_INDICATOR
105 gboolean indicator_enabled;
106 gboolean indicator_hide_minimized;
107 #endif /* NOTIFICATION_INDICATOR */
108 #ifdef NOTIFICATION_HOTKEYS
109 gboolean hotkeys_enabled;
110 gchar* hotkeys_toggle_mainwindow;
114 extern NotifyPrefs notify_config;
115 extern PrefParam notify_param[];
117 void notify_gtk_init(void);
118 void notify_gtk_done(void);
119 void notify_save_config(void);
121 #endif /* NOTIFICATION_PREFS_H */