1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
|
/*
This file is part of SLRN.
Copyright (c) 1994, 1999, 2007-2009 John E. Davis <jed@jedsoft.org>
Copyright (c) 2001-2006 Thomas Schultz <tststs@gmx.de>
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 of the License, 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.
*/
#include "ranges.h"
extern int slrn_select_group_mode (void);
extern void slrn_group_quit (void);
extern int slrn_add_group (char *);
extern void slrn_select_next_group (void);
extern void slrn_select_prev_group (void);
extern int slrn_group_select_group (void);
extern void slrn_list_all_groups (int);
extern void slrn_hide_groups (int);
extern int slrn_read_newsrc (int);
extern int slrn_write_newsrc (int);
extern void slrn_mark_articles_as_read (char *, NNTP_Artnum_Type, NNTP_Artnum_Type);
extern int slrn_get_new_groups (int);
extern void slrn_init_group_mode (void);
extern void slrn_get_group_descriptions (void);
extern int slrn_read_group_descriptions (void);
extern int slrn_set_group_format (unsigned int, char *);
extern SLKeyMap_List_Type *Slrn_Group_Keymap;
extern void slrn_post_cmd (void);
extern unsigned int slrn_group_up_n (unsigned int);
extern unsigned int slrn_group_down_n (unsigned int);
extern int slrn_group_search (char *, int);
extern void slrn_catchup_group (void);
extern void slrn_uncatchup_group (void);
extern void slrn_hide_current_group (void);
extern void slrn_intr_get_group_order (void);
extern void slrn_intr_set_group_order (void);
typedef struct Slrn_Group_Type
{
struct Slrn_Group_Type *next;
struct Slrn_Group_Type *prev;
unsigned int flags;
#define GROUP_UNSUBSCRIBED 0x0001
#define GROUP_NEW_GROUP_FLAG 0x0002
#define GROUP_HARMLESS_FLAGS_MASK 0x00FF
#define GROUP_HIDDEN 0x0100
#define GROUP_TOUCHED 0x0200
#define GROUP_PROCESSED 0x0400
char *group_name;
unsigned long hash;
struct Slrn_Group_Type *hash_next;
Slrn_Range_Type range; /* the first range corresponds to
* what the server has. next ranges
* correspond to what has been read.
*/
Slrn_Range_Type *requests; /* body requests for true offline mode
* note that the first one is also malloced here! */
int requests_loaded; /* We load these each time we enter article mode in case
* slrnpull ran in the background */
NNTP_Artnum_Type unread;
char *descript; /* description of the group -- malloced, could be NULL */
}
Slrn_Group_Type;
extern Slrn_Group_Type *Slrn_Group_Current_Group;
extern void slrn_group_recount_unread (Slrn_Group_Type *);
extern char *Slrn_Group_Help_Line;
extern char *Slrn_Group_Status_Line;
extern int Slrn_Groups_Dirty;
extern int *Slrn_Prefix_Arg_Ptr;
extern int Slrn_No_Backups;
extern int Slrn_No_Autosave;
extern int Slrn_Unsubscribe_New_Groups;
extern int Slrn_Check_New_Groups;
extern int Slrn_List_Active_File;
extern int Slrn_Query_Group_Cutoff;
extern int Slrn_Write_Newsrc_Flags;
extern int Slrn_Display_Cursor_Bar;
extern int Slrn_Drop_Bogus_Groups;
extern int Slrn_Max_Queued_Groups;
|