1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
/* camel-imap-store.h : class for an imap store */
5
* Authors: Michael Zucchi <notzed@ximian.com>
7
* Copyright (C) 2002 Ximian, Inc. (www.ximian.com)
9
* This program is free software; you can redistribute it and/or
10
* modify it under the terms of version 2 of the GNU Lesser General Public
11
* License as published by the Free Software Foundation.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU Lesser General Public License for more details.
18
* You should have received a copy of the GNU Lesser General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
25
#ifndef CAMEL_IMAPP_STORE_H
26
#define CAMEL_IMAPP_STORE_H 1
28
#include <camel/camel-types.h>
29
#include <camel/camel-store.h>
30
#include "camel-imapp-driver.h"
31
#include <libedataserver/e-memory.h>
33
#define CAMEL_IMAPP_STORE_TYPE (camel_imapp_store_get_type ())
34
#define CAMEL_IMAPP_STORE(obj) (CAMEL_CHECK_CAST((obj), CAMEL_IMAPP_STORE_TYPE, CamelIMAPPStore))
35
#define CAMEL_IMAPP_STORE_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_IMAPP_STORE_TYPE, CamelIMAPPStoreClass))
36
#define CAMEL_IS_IMAP_STORE(o) (CAMEL_CHECK_TYPE((o), CAMEL_IMAPP_STORE_TYPE))
40
struct _pending_fetch {
41
struct _pending_fetch *next;
42
struct _pending_fetch *prev;
44
struct _CamelMessageInfo *info;
48
CamelStore parent_object;
50
struct _CamelIMAPPStoreSummary *summary; /* in-memory list of folders */
51
struct _CamelIMAPPDriver *driver; /* IMAP processing engine */
52
struct _CamelDataCache *cache;
54
/* if we had a login error, what to show to user */
57
GPtrArray *pending_list;
61
CamelStoreClass parent_class;
63
} CamelIMAPPStoreClass;
65
/* Standard Camel function */
66
CamelType camel_imapp_store_get_type (void);
70
#endif /* CAMEL_IMAPP_STORE_H */