/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2001 Match Grun
+ * Copyright (C) 2001-2006 Match Grun and the Claws Mail team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/*
#include "addritem.h"
#include "addrcache.h"
+#include "adbookbase.h"
#define SYLDAP_DFL_PORT 389
#define SYLDAP_MAX_ENTRIES 20
#define SYLDAP_ATTR_EMAIL "mail"
#define SYLDAP_ATTR_UID "uid"
+#define MGU_LDAP_CONNECT -51
+#define MGU_LDAP_INIT -52
+#define MGU_LDAP_BIND -53
+#define MGU_LDAP_SEARCH -54
+#define MGU_LDAP_TIMEOUT -55
+#define MGU_LDAP_CRITERIA -56
+#define MGU_LDAP_NOENTRIES -57
+
typedef struct _SyldapServer SyldapServer;
struct _SyldapServer {
- gchar *name;
- gchar *hostName;
- gint port;
- gchar *baseDN;
- gchar *bindDN;
- gchar *bindPass;
- gchar *searchCriteria;
- gchar *searchValue;
- gint entriesRead;
- gint maxEntries;
- gint timeOut;
- gboolean newSearch;
+ AddressBookType type;
AddressCache *addressCache;
- /* ItemFolder *rootFolder; */
- gboolean accessFlag;
- gint retVal;
- pthread_t *thread;
- gboolean busyFlag;
- void (*callBack)( void * );
- guint idleId;
+ gint retVal;
+ gchar *hostName;
+ gint port;
+ gchar *baseDN;
+ gchar *bindDN;
+ gchar *bindPass;
+ gchar *searchCriteria;
+ gchar *searchValue;
+ gint entriesRead;
+ gint maxEntries;
+ gint timeOut;
+ gboolean newSearch;
+ pthread_t *thread;
+ gboolean busyFlag;
+ void (*callBack)( void * );
+ guint idleId;
};
/* Function prototypes */
gint syldap_get_status ( SyldapServer *ldapServer );
gboolean syldap_get_accessed ( SyldapServer *ldapServer );
gchar *syldap_get_name ( SyldapServer *ldapServer );
+gboolean syldap_get_modified ( SyldapServer *ldapServer );
+void syldap_set_modified ( SyldapServer *ldapServer, const gboolean value );
void syldap_print_data ( SyldapServer *ldapServer, FILE *stream );
gboolean syldap_check_search ( SyldapServer *ldapServer );
gint syldap_read_data_th ( SyldapServer *ldapServer );
void syldap_cancel_read ( SyldapServer *ldapServer );
-/* GList *syldap_get_address_list ( const SyldapServer *ldapServer ); */
ItemFolder *syldap_get_root_folder ( SyldapServer *ldapServer );
GList *syldap_get_list_person ( SyldapServer *ldapServer );
GList *syldap_get_list_folder ( SyldapServer *ldapServer );
#endif /* USE_LDAP */
#endif /* __SYLDAP_H__ */
-