2 * Claws Mail -- a GTK based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2012 Michael Rasmussen and the Claws Mail 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 3 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, see <http://www.gnu.org/licenses/>.
21 * Edit address item data.
24 #ifndef __EDITADDRESS_OTHER_ATTRIBUTES_LDAP_H__
25 #define __EDITADDRESS_OTHER_ATTRIBUTES_LDAP_H__
28 #include <glib/gi18n.h>
29 #include <gdk/gdkkeysyms.h>
39 typedef struct _PersonEdit_dlg PersonEditDlg
;
40 struct _PersonEdit_dlg
{
44 GtkWidget
*cancel_btn
;
45 GtkWidget
*statusbar
; /* used when prefs_common.addressbook_use_editaddress_dialog is TRUE */
46 GtkWidget
*title
; /* used when prefs_common.addressbook_use_editaddress_dialog is FALSE */
52 GtkWidget
*entry_name
;
53 GtkWidget
*entry_first
;
54 GtkWidget
*entry_last
;
55 GtkWidget
*entry_nick
;
58 GtkWidget
*entry_email
;
59 GtkWidget
*entry_alias
;
60 GtkWidget
*entry_remarks
;
61 GtkWidget
*view_email
;
63 GtkWidget
*email_down
;
68 /* Attribute data tab */
69 GtkWidget
*entry_atname
;
70 GtkWidget
*entry_atvalue
;
71 GtkWidget
*view_attrib
;
72 GtkWidget
*attrib_add
;
73 GtkWidget
*attrib_del
;
74 GtkWidget
*attrib_mod
;
83 static const char *ATTRIBUTE
[] = {
85 /*"description (Remarks)",*/
88 "facsimileTelephoneNumber",
93 "st", /* state or province */
94 "l", /* locality Name */
107 static const int ATTRIBUTE_SIZE
= (sizeof(ATTRIBUTE
) / sizeof(*ATTRIBUTE
)) - 1;
109 /* Function proto types */
110 void addressbook_edit_person_page_attrib_ldap(PersonEditDlg
*personEditDlg
, gint pageNum
, gchar
*pageLbl
);
111 int get_attribute_index(const gchar
*string_literal
);
113 #endif /* USE_LDAP */
115 #endif /* __EDITADDRESS_OTHER_ATTRIBUTES_LDAP_H__ */