#include <glib.h>
#include <libebook/e-book.h>

#ifndef __CONTACT_H__
#define __CONTACT_H__
struct contact {
    gchar *fullname;
    gchar *firstname;
    gchar *lastname;
    struct contact_address *address;
    gchar *organisation;
    gchar *homephone;
    gchar *workphone;
    gchar *cellphone;
    gchar *fax;
    gchar *email;
    gchar *url;
    gchar *categories;
    gchar *rev;
};

struct contact_address {
    gchar *street;
    gchar *city;
    gchar *zipcode;
    gchar *country;
};

struct contact * init_struct_contact(void);
void free_struct_contact(struct contact *);
void contact_populate_from_econtact(struct contact *, EContact *);
void contact_address_populate_from_econtact(struct contact *, EContact *);
gchar * contact_to_vcard_1(struct contact *);
#endif /*__CONTACT_H__*/

