Fix typo, thanks wwp!
[claws.git] / src / plugins / notification / notification_prefs.h
1 /* Notification plugin for Claws-Mail
2  * Copyright (C) 2005-2007 Holger Berndt
3  *
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.
8  *
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.
13  *
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/>.
16  */
17
18 #ifndef NOTIFICATION_PREFS_H
19 #define NOTIFICATION_PREFS_H NOTIFICATION_PREFS_H
20
21 #ifdef HAVE_CONFIG_H
22 #  include "config.h"
23 #  include "claws-features.h"
24 #endif
25
26 #include <glib.h>
27
28 #include "prefs_gtk.h"
29
30 #include "notification_banner.h"
31
32 #ifdef NOTIFICATION_BANNER
33 typedef enum {
34   NOTIFY_BANNER_SHOW_NEVER = 0,
35   NOTIFY_BANNER_SHOW_ALWAYS,
36   NOTIFY_BANNER_SHOW_NONEMPTY
37 } NotifyBannerShow;
38 #endif
39
40 typedef struct {
41   gboolean         include_mail;
42   gboolean         include_news;
43   gboolean         include_rss;
44   gboolean         include_calendar;
45   gboolean         urgency_hint_new;
46   gboolean         urgency_hint_unread;
47 #ifdef HAVE_LIBCANBERRA_GTK
48   gboolean         canberra_play_sounds;
49 #endif
50 #ifdef NOTIFICATION_BANNER
51   NotifyBannerShow banner_show;
52   gint             banner_speed;
53   gboolean         banner_include_unread;
54   gint             banner_max_msgs;
55   gboolean         banner_sticky;
56   gint             banner_root_x;
57   gint             banner_root_y;
58   gboolean         banner_folder_specific;
59   gboolean         banner_enable_colors;
60   gulong           banner_color_bg;
61   gulong           banner_color_fg;
62         gint             banner_width;
63 #endif
64 #ifdef NOTIFICATION_POPUP
65   gboolean         popup_show;
66   gint             popup_timeout;
67   gboolean         popup_folder_specific;
68 #ifndef HAVE_LIBNOTIFY
69   gboolean         popup_sticky;
70   gint             popup_root_x;
71   gint             popup_root_y;
72   gint             popup_width;
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 */
79 #endif /* Popup */
80 #ifdef NOTIFICATION_COMMAND
81   gboolean         command_enabled;
82   gint             command_timeout;
83   gboolean         command_folder_specific;
84   gchar*           command_line;
85 #endif
86 #ifdef NOTIFICATION_LCDPROC
87   gboolean         lcdproc_enabled;
88   gchar*           lcdproc_hostname;
89   guint            lcdproc_port;
90
91 #endif
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;
98 #ifdef HAVE_LIBNOTIFY
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;
111 #endif /* Hotkeys */
112 } NotifyPrefs;
113
114 extern NotifyPrefs notify_config;
115 extern PrefParam   notify_param[];
116
117 void notify_gtk_init(void);
118 void notify_gtk_done(void);
119 void notify_save_config(void);
120
121 #endif /* NOTIFICATION_PREFS_H */