~ubuntu-branches/ubuntu/karmic/libtinymail/karmic

« back to all changes in this revision

Viewing changes to libtinymail-camel/camel-lite/camel/providers/imapp/camel-imapp-store.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-10-12 11:21:12 UTC
  • Revision ID: james.westby@ubuntu.com-20071012112112-fod9fs7yrooxjr7i
Tags: upstream-0.0.2
ImportĀ upstreamĀ versionĀ 0.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 
2
/* camel-imap-store.h : class for an imap store */
 
3
 
 
4
/* 
 
5
 * Authors: Michael Zucchi <notzed@ximian.com>
 
6
 *
 
7
 * Copyright (C) 2002 Ximian, Inc. (www.ximian.com)
 
8
 *
 
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.
 
12
 *
 
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.
 
17
 *
 
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
 
21
 * USA
 
22
 */
 
23
 
 
24
 
 
25
#ifndef CAMEL_IMAPP_STORE_H
 
26
#define CAMEL_IMAPP_STORE_H 1
 
27
 
 
28
#include <camel/camel-types.h>
 
29
#include <camel/camel-store.h>
 
30
#include "camel-imapp-driver.h"
 
31
#include <libedataserver/e-memory.h>
 
32
 
 
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))
 
37
 
 
38
G_BEGIN_DECLS
 
39
 
 
40
struct _pending_fetch {
 
41
        struct _pending_fetch *next;
 
42
        struct _pending_fetch *prev;
 
43
 
 
44
        struct _CamelMessageInfo *info;
 
45
};
 
46
 
 
47
typedef struct {
 
48
        CamelStore parent_object;
 
49
 
 
50
        struct _CamelIMAPPStoreSummary *summary; /* in-memory list of folders */
 
51
        struct _CamelIMAPPDriver *driver; /* IMAP processing engine */
 
52
        struct _CamelDataCache *cache;
 
53
 
 
54
        /* if we had a login error, what to show to user */
 
55
        char *login_error;
 
56
 
 
57
        GPtrArray *pending_list;
 
58
} CamelIMAPPStore;
 
59
 
 
60
typedef struct {
 
61
        CamelStoreClass parent_class;
 
62
 
 
63
} CamelIMAPPStoreClass;
 
64
 
 
65
/* Standard Camel function */
 
66
CamelType camel_imapp_store_get_type (void);
 
67
 
 
68
G_END_DECLS
 
69
 
 
70
#endif /* CAMEL_IMAPP_STORE_H */
 
71
 
 
72