1 /* $Id$ */ 2 /* Copyright (c) 2011-2012 Pierre Pronchery <khorben@defora.org> */ 3 /* This file is part of DeforaOS Desktop Mailer */ 4 /* This program is free software: you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation, version 3 of the License. 7 * 8 * This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU General Public License for more details. 12 * 13 * You should have received a copy of the GNU General Public License 14 * along with this program. If not, see <http://www.gnu.org/licenses/>. */ 15 16 17 18 #ifndef DESKTOP_MAILER_FOLDER_H 19 # define DESKTOP_MAILER_FOLDER_H 20 21 # include "mailer.h" 22 23 24 /* Folder */ 25 /* types */ 26 typedef struct _MailerFolder Folder; 27 28 typedef struct _AccountFolder AccountFolder; 29 30 typedef enum _MailerFolderType 31 { 32 FT_INBOX = 0, 33 FT_DRAFTS, 34 FT_SENT, 35 FT_TRASH, 36 FT_FOLDER 37 } FolderType; 38 # define FT_LAST FT_FOLDER 39 # define FT_COUNT (FT_LAST + 1) 40 41 42 /* public */ 43 /* functions */ 44 /* accessors */ 45 char const * folder_get_name(MailerFolder * folder); 46 FolderType folder_get_type(MailerFolder * folder); 47 void folder_set_type(MailerFolder * folder, FolderType type); 48 49 #endif /* !DESKTOP_MAILER_FOLDER_H */ 50