00001 /* 00002 * XetPan: a libEtPan! based Mail User Agent 00003 * Copyright (C) 2002 Melvin Hadasht 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 */ 00019 00020 #ifndef CONFIGURATION_H 00021 #define CONFIGURATION_H 00022 00023 #include <clist.h> 00024 00025 #include "cntree.h" 00026 00027 #include "folder.h" 00028 #include "mailbox-types.h" 00029 #include "processing.h" 00030 #include "foldersview.h" 00031 00032 #define XEP_CONFIGURATION_FILE_FORMAT_VERSION "0.0.2" 00033 00034 typedef struct XePConfiguration_s XePConfiguration; 00035 00036 struct XePConfiguration_s 00037 { 00038 clist *identities; 00039 clist *mtas; 00040 clist *vfolders; 00041 XePProcessing *processing; 00042 XePFoldersViewsList *foldersviewslist; 00043 chash *folder_refs; 00044 }; 00045 00050 XePConfiguration * 00051 a_Configuration_create_from_tree(cntree *ntree); 00052 00058 cntree * 00059 a_Configuration_create_tree(XePConfiguration *configuration); 00060 00064 void 00065 a_Configuration_free(XePConfiguration *configuration); 00066 00070 int 00071 a_Configuration_link_folders(XePConfiguration *configuration, 00072 XePFoldersList *folderslist); 00073 #endif