1 /* -*-mode:c; c-style:k&r; c-basic-offset:4; -*- */ 2 /* Balsa E-Mail Client 3 * 4 * Copyright (C) 1997-2013 Stuart Parmenter and others, 5 * See the file AUTHORS for a list. 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2, or (at your option) 10 * any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 20 * 02111-1307, USA. 21 */ 22 23 #ifndef __LIBBALSA_MAILBOX_MH_H__ 24 #define __LIBBALSA_MAILBOX_MH_H__ 25 26 #define LIBBALSA_TYPE_MAILBOX_MH \ 27 (libbalsa_mailbox_mh_get_type()) 28 #define LIBBALSA_MAILBOX_MH(obj) \ 29 (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBBALSA_TYPE_MAILBOX_MH, \ 30 LibBalsaMailboxMh)) 31 #define LIBBALSA_MAILBOX_MH_CLASS(klass) \ 32 (G_TYPE_CHECK_CLASS_CAST ((klass), LIBBALSA_TYPE_MAILBOX_MH, \ 33 LibBalsaMailboxMhClass)) 34 #define LIBBALSA_IS_MAILBOX_MH(obj) \ 35 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBBALSA_TYPE_MAILBOX_MH)) 36 #define LIBBALSA_IS_MAILBOX_MH_CLASS(klass) \ 37 (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBBALSA_TYPE_MAILBOX_MH)) 38 39 typedef struct _LibBalsaMailboxMh LibBalsaMailboxMh; 40 typedef struct _LibBalsaMailboxMhClass LibBalsaMailboxMhClass; 41 42 struct _LibBalsaMailboxMh { 43 LibBalsaMailboxLocal parent; 44 45 GHashTable* messages_info; 46 GPtrArray* msgno_2_msg_info; 47 gchar* sequences_filename; 48 time_t mtime_sequences; 49 guint last_fileno; 50 }; 51 52 struct _LibBalsaMailboxMhClass { 53 LibBalsaMailboxLocalClass klass; 54 }; 55 56 GType libbalsa_mailbox_mh_get_type(void); 57 GObject *libbalsa_mailbox_mh_new(const gchar * path, gboolean create); 58 #endif 59 60