1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /* camel-pop3-folder.h : Class for a POP3 folder */
6 * Dan Winship <danw@ximian.com>
7 * Michael Zucchi <notzed@ximian.com>
9 * Copyright (C) 2002 Ximian, Inc. (www.ximian.com)
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of version 2 of the GNU Lesser General Public
13 * License as published by the Free Software Foundation.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
26 #ifndef CAMEL_POP3_FOLDER_H
27 #define CAMEL_POP3_FOLDER_H 1
29 #include "camel-folder.h"
31 #define CAMEL_POP3_FOLDER_TYPE (camel_pop3_folder_get_type ())
32 #define CAMEL_POP3_FOLDER(obj) (CAMEL_CHECK_CAST((obj), CAMEL_POP3_FOLDER_TYPE, CamelPOP3Folder))
33 #define CAMEL_POP3_FOLDER_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_POP3_FOLDER_TYPE, CamelPOP3FolderClass))
34 #define CAMEL_IS_POP3_FOLDER(o) (CAMEL_CHECK_TYPE((o), CAMEL_POP3_FOLDER_TYPE))
42 guint32 index; /* index of request */
45 struct _CamelPOP3Command *cmd;
46 struct _CamelStream *stream;
47 } CamelPOP3FolderInfo;
50 CamelFolder parent_object;
53 GHashTable *uids_uid; /* messageinfo by uid */
54 GHashTable *uids_id; /* messageinfo by id */
58 CamelFolderClass parent_class;
62 } CamelPOP3FolderClass;
65 CamelFolder *camel_pop3_folder_new (CamelStore *parent, CamelException *ex);
67 /* Standard Camel function */
68 CamelType camel_pop3_folder_get_type (void);
70 int camel_pop3_delete_old(CamelFolder *folder, int days_to_delete, CamelException *ex);
74 #endif /* CAMEL_POP3_FOLDER_H */