2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 2003-2006 Match Grun and the Sylpheed-Claws team
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 * Definitions for export to LDIF file.
24 #ifndef __EXPORT_LDIF_H__
25 #define __EXPORT_LDIF_H__
29 #include "addrcache.h"
32 #define EXPORT_LDIF_ID_UID 0
33 #define EXPORT_LDIF_ID_DNAME 1
34 #define EXPORT_LDIF_ID_EMAIL 2
36 #define EXPORT_LDIF_FIRST_LAST 0
37 #define EXPORT_LDIF_LAST_FIRST 1
39 /* Export LDIF control data */
40 typedef struct _ExportLdifCtl ExportLdifCtl;
41 struct _ExportLdifCtl {
49 gboolean excludeEMail;
54 /* Function prototypes */
55 ExportLdifCtl *exportldif_create ( void );
56 void exportldif_free ( ExportLdifCtl *ctl );
57 void exportldif_set_path ( ExportLdifCtl *ctl,
59 void exportldif_set_file_html ( ExportLdifCtl *ctl,
61 void exportldif_set_suffix ( ExportLdifCtl *ctl,
63 void exportldif_set_rdn ( ExportLdifCtl *ctl,
65 void exportldif_set_use_dn ( ExportLdifCtl *ctl,
66 const gboolean value );
67 void exportldif_set_exclude_email ( ExportLdifCtl *ctl,
68 const gboolean value );
69 void exportldif_process ( ExportLdifCtl *ctl,
70 AddressCache *cache );
71 gboolean exportldif_test_dir ( ExportLdifCtl *ctl );
72 gboolean exportldif_create_dir ( ExportLdifCtl *ctl );
73 gchar *exportldif_get_create_msg ( ExportLdifCtl *ctl );
75 void exportldif_parse_filespec ( ExportLdifCtl *ctl,
77 void exportldif_load_settings ( ExportLdifCtl *ctl );
78 void exportldif_save_settings ( ExportLdifCtl *ctl );
80 #endif /* __EXPORT_LDIF_H__ */