]> git.datanom.net - vcard-parser.git/blobdiff - src/parser/vcard.h
All features added
[vcard-parser.git] / src / parser / vcard.h
index b5235278212ef877f92273f6f5ef1e47d91a0430..a83c5e3f34514e7b83534eaede6c15346e45932f 100644 (file)
@@ -29,11 +29,13 @@ G_BEGIN_DECLS
 #include <stdio.h>
 #include <globals.h>
 
-//VCard* VCard_new(VCardVersion version);
+#define DEFAULT_VCARD_VERSION VCARD_VERSION_3_0
+
+VCard* VCard_version_new(VCardVersion version, gboolean init);
+VCard* VCard_new();
 GSList* VCard_new_from_text(const gchar* text, VCardVersion version, gboolean skip_broken);
 GSList* VCard_new_from_file(FILE* file, VCardVersion version, gboolean skip_broken);
 void VCard_free(VCard* object);
-void VCard_list_free(GSList* list);
 
 void VCard_print_list(GSList* list);
 void VCard_print_list_fd(GSList* list, int fd);
@@ -41,6 +43,29 @@ void VCard_print(VCard* object);
 void VCard_print_fd(VCard* object, int fd);
 gchar* VCard_get_state(VCard* object);
 GSList* VCard_get_property(VCard* object, const gchar* property);
+void VCard_set_property(VCard* object, const gchar* property, GSList* props);
+void vcard_property_free(gpointer data);
+void vcard_slist_property_free(gpointer data);
+
+void VCard_set_name(VCard* vcard, const gchar* firstname, const gchar* lastname);
+void VCard_set_company(VCard* vcard, const gchar* company);
+void VCard_set_telefon(VCard* vcard, TelefonType type, const gchar* number);
+void VCard_set_address(VCard* vcard, AddressType type, const gchar* address, const gchar* state, const gchar* city, const gchar* zip, const gchar* country);
+void VCard_set_photo_uri(VCard* vcard, PhotoType type, const gchar* uri);
+void VCard_set_photo_image(VCard* vcard, PhotoType type, const gchar* image);
+void VCard_set_email(VCard* vcard, EmailType type, const gchar* email);
+void VCard_set_etag(VCard* vcard, const gchar* etag);
+
+gchar* VCard_get_name(VCard* vcard);
+gchar* VCard_get_company(VCard* vcard);
+GSList* VCard_get_telefon(VCard* vcard, TelefonType type);
+GSList* VCard_get_address(VCard* vcard, AddressType type);
+gchar* VCard_get_photo(VCard* vcard);
+GSList* VCard_get_email(VCard* vcard, EmailType type);
+gchar* VCard_get_as_string(VCard* object);
+gchar* VCard_get_etag(VCard* vcard);
+
+void print_slist(GSList* list);
 
 G_END_DECLS
 
This page took 0.113362 seconds and 5 git commands to generate.