Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

conf.h

Go to the documentation of this file.
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 CONF_H
00021 #define CONF_H
00022 
00023 #include "configuration.h"
00024 #include "folder.h"
00025 #include "foldersview.h"
00026 #include "processing.h"
00027 #include "preferences.h" 
00028 
00029 
00030 #define XETPAN_CONF_DIR ".xetpan"
00031 
00032 #define XETPAN_PREFERENCES_RC    "preferences.xml"
00033 #define XETPAN_CONFIGURATION_RC  "configuration.xml"
00034 #define XETPAN_FOLDERSLIST_RC    "folderslist.xml"
00035 #define XETPAN_FOLDERSVIEWS_RC   "foldersviews.xml"
00036 #define XETPAN_PROCESSING_RC     "processing.xml"
00037 
00038 #define XETPAN_CONFIGURATION_DTD  "configuration.dtd"
00039 
00040 typedef struct XePConf_s XePConf;
00041 
00042 struct XePConf_s
00043 {
00044 
00045   XePPreferences      *preferences;
00046   XePConfiguration    *configuration;
00047   XePFoldersList      *folderslist;
00048   char *path;
00049 };
00050 
00051 XePConf*
00052 a_Conf_read(const char *path);
00053 
00054 int
00055 a_Conf_write(void);
00056 
00057 void
00058 a_Conf_free(XePConf *conf);
00059 
00060 char *
00061 a_Conf_create_filename(const char *path, const char *file);
00062 
00063 
00064 #endif

Generated on Wed Oct 22 15:50:20 2003 for XetPan by doxygen 1.3.2