wmtime - Fix compiler and linker flags in Makefile.
[dockapps.git] / wmnotify / src / wmnotify.h
blobab19d16c59b529383ac5ef276a9a0e3c3faf4075
1 /*
2 * wmnotify.h
4 * Copyright (C) 2003 Hugo Villeneuve <hugo@hugovil.com>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
21 #ifndef WMNOTIFY_H
22 #define WMNOTIFY_H 1
24 #define POP3_PROTOCOL 0
25 #define IMAP4_PROTOCOL 1
27 /* New messages animation duration, in microseconds. */
28 #define NEW_MAIL_ANIMATION_DURATION 900000
30 /* Flag used in the new messages animation to identify which image is currently
31 displayed. */
32 #define MAILBOX_CLOSED 0
33 #define MAILBOX_FULL 1
35 /* Source coordinates in global pixmap for the closed mailbox image. */
36 #define MAILBOX_CLOSED_SRC_X 64
37 #define MAILBOX_CLOSED_SRC_Y 4
39 /* Source coordinates in global pixmap for the opened and empty mailbox image. */
40 #define MAILBOX_OPENED_EMPTY_SRC_X 64
41 #define MAILBOX_OPENED_EMPTY_SRC_Y 64
43 /* Source coordinates in global pixmap for the opened and full mailbox image. */
44 #define MAILBOX_OPENED_FULL_SRC_X 4
45 #define MAILBOX_OPENED_FULL_SRC_Y 64
47 /* Source coordinates in global pixmap for the opened and full mailbox image. */
48 #define EXEC_CMD_IMG_SRC_X 124
49 #define EXEC_CMD_IMG_SRC_Y 4
51 /* Size of all mailbox images. */
52 #define MAILBOX_SIZE_X 56
53 #define MAILBOX_SIZE_Y 56
55 /* Destination coordinates when copying a mailbox image. */
56 #define MAILBOX_DEST_X 4
57 #define MAILBOX_DEST_Y 4
59 #define ARGV_LIMIT 64
61 #define MAX_STR_LEN 256
63 typedef struct wmnotify_t
65 bool debug;
66 char *display_arg;
67 char *geometry_arg;
68 char *optional_config_file;
69 char mail_client_command[512];
70 char *mail_client_argv[ARGV_LIMIT];
71 unsigned int mail_check_interval; /* In seconds. */
72 bool audible_notification;
73 char audiofile[512];
74 int volume;
75 int protocol;
76 char imap_folder[MAX_STR_LEN];
77 bool use_ssl;
78 char server_name[MAX_STR_LEN];
79 int port;
80 char username[MAX_STR_LEN];
81 char password[MAX_STR_LEN];
82 int sock_fd;
83 } wmnotify_t;
85 /* Exported variables */
86 #undef _SCOPE_
87 #ifdef WMNOTIFY_M
88 # define _SCOPE_ /**/
89 #else
90 # define _SCOPE_ extern
91 #endif
93 _SCOPE_ wmnotify_t wmnotify_infos;
95 #endif /* WMNOTIFY_H */