1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
3 * Authors: Michael Zucchi <notzed@ximian.com>
5 * Copyright (C) 1999 Ximian .
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of version 2 of the GNU Lesser General Public
9 * License as published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
22 #ifndef CAMEL_MBOX_FOLDER_H
23 #define CAMEL_MBOX_FOLDER_H 1
25 #include "camel-local-folder.h"
26 #include "camel-mbox-summary.h"
28 #define CAMEL_MBOX_FOLDER_TYPE (camel_mbox_folder_get_type ())
29 #define CAMEL_MBOX_FOLDER(obj) (CAMEL_CHECK_CAST((obj), CAMEL_MBOX_FOLDER_TYPE, CamelMboxFolder))
30 #define CAMEL_MBOX_FOLDER_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_MBOX_FOLDER_TYPE, CamelMboxFolderClass))
31 #define CAMEL_IS_MBOX_FOLDER(o) (CAMEL_CHECK_TYPE((o), CAMEL_MBOX_FOLDER_TYPE))
36 CamelLocalFolder parent_object;
38 int lockfd; /* for when we have a lock on the folder */
42 CamelLocalFolderClass parent_class;
46 } CamelMboxFolderClass;
49 /* flags are taken from CAMEL_STORE_FOLDER_* flags */
50 CamelFolder *camel_mbox_folder_new(CamelStore *parent_store, const char *full_name, guint32 flags, CamelException *ex);
52 /* Standard Camel function */
53 CamelType camel_mbox_folder_get_type(void);
57 #endif /* CAMEL_MBOX_FOLDER_H */