Nico Golde:
[apps/madmutt.git] / browser.h
1 /* $Id: browser.h,v 3.1 2002/12/11 11:19:39 roessler Exp $ */
2 /*
3  * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
4  * 
5  *     This program is free software; you can redistribute it and/or modify
6  *     it under the terms of the GNU General Public License as published by
7  *     the Free Software Foundation; either version 2 of the License, or
8  *     (at your option) any later version.
9  * 
10  *     This program is distributed in the hope that it will be useful,
11  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *     GNU General Public License for more details.
14  * 
15  *     You should have received a copy of the GNU General Public License
16  *     along with this program; if not, write to the Free Software
17  *     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
18  */ 
19
20 #ifndef _BROWSER_H
21 #define _BROWSER_H 1
22
23 #ifdef USE_NNTP
24 #include "nntp.h"
25 #endif
26
27 struct folder_file
28 {
29   mode_t mode;
30   off_t size;
31   time_t mtime;
32   struct stat *st;
33
34   char *name;
35   char *desc;
36
37   unsigned short new;
38 #ifdef USE_IMAP
39   char delim;
40   
41   unsigned imap : 1;
42   unsigned selectable : 1;
43   unsigned inferiors : 1;
44 #endif
45 #ifdef USE_NNTP
46   NNTP_DATA *nd;
47 #endif
48   unsigned tagged : 1;
49 };
50
51 struct browser_state
52 {
53   struct folder_file *entry;
54   unsigned int entrylen; /* number of real entries */
55   unsigned int entrymax; /* max entry */
56 #ifdef USE_IMAP
57   short imap_browse;
58   char *folder;
59   unsigned noselect : 1;
60   unsigned marked : 1;
61   unsigned unmarked : 1;
62 #endif
63 };
64
65 #endif /* _BROWSER_H */