| Reference Manual for CouchDB GLib Bindings | ||||
|---|---|---|---|---|
| Top | Description | ||||
#define COUCHDB_DOCUMENT_CONTACTGET_CLASS (obj) CouchdbDocumentContact; CouchdbDocumentContactClass; CouchdbDocumentContact * couchdb_document_contact_new (void); const char * couchdb_document_contact_get_title (CouchdbDocumentContact *document); void couchdb_document_contact_set_title (CouchdbDocumentContact *document,const char *title); const char * couchdb_document_contact_get_first_name (CouchdbDocumentContact *document); void couchdb_document_contact_set_first_name (CouchdbDocumentContact *document,const char *first_name); const char * couchdb_document_contact_get_middle_name (CouchdbDocumentContact *document); void couchdb_document_contact_set_middle_name (CouchdbDocumentContact *document,const char *middle_name); const char * couchdb_document_contact_get_last_name (CouchdbDocumentContact *document); void couchdb_document_contact_set_last_name (CouchdbDocumentContact *document,const char *last_name); const char * couchdb_document_contact_get_suffix (CouchdbDocumentContact *document); void couchdb_document_contact_set_suffix (CouchdbDocumentContact *document,const char *suffix); const char * couchdb_document_contact_get_nick_name (CouchdbDocumentContact *document); void couchdb_document_contact_set_nick_name (CouchdbDocumentContact *document,const char *nick_name); const char * couchdb_document_contact_get_spouse_name (CouchdbDocumentContact *document); void couchdb_document_contact_set_spouse_name (CouchdbDocumentContact *document,const char *spouse_name); const char * couchdb_document_contact_get_birth_date (CouchdbDocumentContact *document); void couchdb_document_contact_set_birth_date (CouchdbDocumentContact *document,const char *birth_date); const char * couchdb_document_contact_get_wedding_date (CouchdbDocumentContact *document); void couchdb_document_contact_set_wedding_date (CouchdbDocumentContact *document,const char *wedding_date); const char * couchdb_document_contact_get_company (CouchdbDocumentContact *document); void couchdb_document_contact_set_company (CouchdbDocumentContact *document,const char *company); const char * couchdb_document_contact_get_department (CouchdbDocumentContact *document); void couchdb_document_contact_set_department (CouchdbDocumentContact *document,const char *department); const char * couchdb_document_contact_get_job_title (CouchdbDocumentContact *document); void couchdb_document_contact_set_job_title (CouchdbDocumentContact *document,const char *job_title); const char * couchdb_document_contact_get_manager_name (CouchdbDocumentContact *document); void couchdb_document_contact_set_manager_name (CouchdbDocumentContact *document,const char *manager_name); const char * couchdb_document_contact_get_assistant_name (CouchdbDocumentContact *document); void couchdb_document_contact_set_assistant_name (CouchdbDocumentContact *document,const char *assistant_name); const char * couchdb_document_contact_get_office (CouchdbDocumentContact *document); void couchdb_document_contact_set_office (CouchdbDocumentContact *document,const char *office); GSList * couchdb_document_contact_get_email_addresses (CouchdbDocumentContact *document); void couchdb_document_contact_set_email_addresses (CouchdbDocumentContact *document,GSList *list); GSList * couchdb_document_contact_get_phone_numbers (CouchdbDocumentContact *document); void couchdb_document_contact_set_phone_numbers (CouchdbDocumentContact *document,GSList *list); GSList * couchdb_document_contact_get_addresses (CouchdbDocumentContact *document); void couchdb_document_contact_set_addresses (CouchdbDocumentContact *document,GSList *list); GSList * couchdb_document_contact_get_im_addresses (CouchdbDocumentContact *document); void couchdb_document_contact_set_im_addresses (CouchdbDocumentContact *document,GSList *list); GSList * couchdb_document_contact_get_urls (CouchdbDocumentContact *document); void couchdb_document_contact_set_urls (CouchdbDocumentContact *document,GSList *list); const char * couchdb_document_contact_get_categories (CouchdbDocumentContact *document); void couchdb_document_contact_set_categories (CouchdbDocumentContact *document,const char *categories); const char * couchdb_document_contact_get_notes (CouchdbDocumentContact *document); void couchdb_document_contact_set_notes (CouchdbDocumentContact *document,const char *notes); CouchdbStructField * couchdb_document_contact_email_new (const char *uuid,const char *address,const char *description); const char * couchdb_document_contact_email_get_address (CouchdbStructField *sf); void couchdb_document_contact_email_set_address (CouchdbStructField *sf,const char *email); #define COUCHDB_DOCUMENT_CONTACT_EMAIL_DESCRIPTION_HOME #define COUCHDB_DOCUMENT_CONTACT_EMAIL_DESCRIPTION_OTHER #define COUCHDB_DOCUMENT_CONTACT_EMAIL_DESCRIPTION_WORK const char * couchdb_document_contact_email_get_description (CouchdbStructField *sf); void couchdb_document_contact_email_set_description (CouchdbStructField *sf,const char *description); CouchdbStructField * couchdb_document_contact_phone_new (const char *uuid,const char *number,const char *description,gint priority); gint couchdb_document_contact_phone_get_priority (CouchdbStructField *sf); void couchdb_document_contact_phone_set_priority (CouchdbStructField *sf,gint priority); const char * couchdb_document_contact_phone_get_number (CouchdbStructField *sf); void couchdb_document_contact_phone_set_number (CouchdbStructField *sf,const char *number); #define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_ASSISTANT #define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_CALLBACK #define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_CAR #define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_COMPANY #define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_HOME #define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_HOME_FAX #define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_MOBILE #define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_OTHER #define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_OTHER_FAX #define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_PAGER #define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_PRIMARY #define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_RADIO #define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_TELEX #define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_WORK #define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_WORK_FAX const char * couchdb_document_contact_phone_get_description (CouchdbStructField *sf); void couchdb_document_contact_phone_set_description (CouchdbStructField *sf,const char *description); CouchdbStructField * couchdb_document_contact_address_new (const char *uuid,const char *street,const char *ext_street,const char *city,const char *state,const char *country,const char *postalcode,const char *pobox,const char *description); const char * couchdb_document_contact_address_get_street (CouchdbStructField *sf); void couchdb_document_contact_address_set_street (CouchdbStructField *sf,const char *street); const char * couchdb_document_contact_address_get_ext_street (CouchdbStructField *sf); void couchdb_document_contact_address_set_ext_street (CouchdbStructField *sf,const char *ext_street); const char * couchdb_document_contact_address_get_city (CouchdbStructField *sf); void couchdb_document_contact_address_set_city (CouchdbStructField *sf,const char *city); const char * couchdb_document_contact_address_get_state (CouchdbStructField *sf); void couchdb_document_contact_address_set_state (CouchdbStructField *sf,const char *state); const char * couchdb_document_contact_address_get_country (CouchdbStructField *sf); void couchdb_document_contact_address_set_country (CouchdbStructField *sf,const char *country); const char * couchdb_document_contact_address_get_postalcode (CouchdbStructField *sf); void couchdb_document_contact_address_set_postalcode (CouchdbStructField *sf,const char *postalcode); const char * couchdb_document_contact_address_get_pobox (CouchdbStructField *sf); void couchdb_document_contact_address_set_pobox (CouchdbStructField *sf,const char *pobox); #define COUCHDB_DOCUMENT_CONTACT_ADDRESS_DESCRIPTION_HOME #define COUCHDB_DOCUMENT_CONTACT_ADDRESS_DESCRIPTION_OTHER #define COUCHDB_DOCUMENT_CONTACT_ADDRESS_DESCRIPTION_WORK const char * couchdb_document_contact_address_get_description (CouchdbStructField *sf); void couchdb_document_contact_address_set_description (CouchdbStructField *sf,const char *description); CouchdbStructField * couchdb_document_contact_im_new (const char *uuid,const char *address,const char *description,const char *protocol); const char * couchdb_document_contact_im_get_address (CouchdbStructField *sf); void couchdb_document_contact_im_set_address (CouchdbStructField *sf,const char *address); const char * couchdb_document_contact_im_get_description (CouchdbStructField *sf); void couchdb_document_contact_im_set_description (CouchdbStructField *sf,const char *description); #define COUCHDB_DOCUMENT_CONTACT_IM_PROTOCOL_AIM #define COUCHDB_DOCUMENT_CONTACT_IM_PROTOCOL_GADU_GADU #define COUCHDB_DOCUMENT_CONTACT_IM_PROTOCOL_GROUPWISE #define COUCHDB_DOCUMENT_CONTACT_IM_PROTOCOL_ICQ #define COUCHDB_DOCUMENT_CONTACT_IM_PROTOCOL_IRC #define COUCHDB_DOCUMENT_CONTACT_IM_PROTOCOL_JABBER #define COUCHDB_DOCUMENT_CONTACT_IM_PROTOCOL_MSN #define COUCHDB_DOCUMENT_CONTACT_IM_PROTOCOL_SKYPE #define COUCHDB_DOCUMENT_CONTACT_IM_PROTOCOL_YAHOO const char * couchdb_document_contact_im_get_protocol (CouchdbStructField *sf); void couchdb_document_contact_im_set_protocol (CouchdbStructField *sf,const char *protocol); CouchdbStructField * couchdb_document_contact_url_new (const char *uuid,const char *address,const char *description); const char * couchdb_document_contact_url_get_address (CouchdbStructField *sf); void couchdb_document_contact_url_set_address (CouchdbStructField *sf,const char *address); #define COUCHDB_DOCUMENT_CONTACT_URL_DESCRIPTION_BLOG #define COUCHDB_DOCUMENT_CONTACT_URL_DESCRIPTION_HOMEPAGE const char * couchdb_document_contact_url_get_description (CouchdbStructField *sf); void couchdb_document_contact_url_set_description (CouchdbStructField *sf,const char *description);
typedef struct {
CouchdbDocumentClass parent_class;
} CouchdbDocumentContactClass;
CouchdbDocumentContact * couchdb_document_contact_new (void);
Create a new CouchdbDocumentContact object.
const char * couchdb_document_contact_get_title (CouchdbDocumentContact *document);
void couchdb_document_contact_set_title (CouchdbDocumentContact *document,const char *title);
const char * couchdb_document_contact_get_first_name
(CouchdbDocumentContact *document);
void couchdb_document_contact_set_first_name (CouchdbDocumentContact *document,const char *first_name);
const char * couchdb_document_contact_get_middle_name
(CouchdbDocumentContact *document);
void couchdb_document_contact_set_middle_name (CouchdbDocumentContact *document,const char *middle_name);
const char * couchdb_document_contact_get_last_name
(CouchdbDocumentContact *document);
void couchdb_document_contact_set_last_name (CouchdbDocumentContact *document,const char *last_name);
const char * couchdb_document_contact_get_suffix (CouchdbDocumentContact *document);
void couchdb_document_contact_set_suffix (CouchdbDocumentContact *document,const char *suffix);
const char * couchdb_document_contact_get_nick_name
(CouchdbDocumentContact *document);
void couchdb_document_contact_set_nick_name (CouchdbDocumentContact *document,const char *nick_name);
const char * couchdb_document_contact_get_spouse_name
(CouchdbDocumentContact *document);
void couchdb_document_contact_set_spouse_name (CouchdbDocumentContact *document,const char *spouse_name);
const char * couchdb_document_contact_get_birth_date
(CouchdbDocumentContact *document);
void couchdb_document_contact_set_birth_date (CouchdbDocumentContact *document,const char *birth_date);
const char * couchdb_document_contact_get_wedding_date
(CouchdbDocumentContact *document);
void couchdb_document_contact_set_wedding_date (CouchdbDocumentContact *document,const char *wedding_date);
const char * couchdb_document_contact_get_company
(CouchdbDocumentContact *document);
void couchdb_document_contact_set_company (CouchdbDocumentContact *document,const char *company);
const char * couchdb_document_contact_get_department
(CouchdbDocumentContact *document);
void couchdb_document_contact_set_department (CouchdbDocumentContact *document,const char *department);
const char * couchdb_document_contact_get_job_title
(CouchdbDocumentContact *document);
void couchdb_document_contact_set_job_title (CouchdbDocumentContact *document,const char *job_title);
const char * couchdb_document_contact_get_manager_name
(CouchdbDocumentContact *document);
void couchdb_document_contact_set_manager_name (CouchdbDocumentContact *document,const char *manager_name);
const char * couchdb_document_contact_get_assistant_name
(CouchdbDocumentContact *document);
void couchdb_document_contact_set_assistant_name (CouchdbDocumentContact *document,const char *assistant_name);
const char * couchdb_document_contact_get_office (CouchdbDocumentContact *document);
void couchdb_document_contact_set_office (CouchdbDocumentContact *document,const char *office);
GSList * couchdb_document_contact_get_email_addresses
(CouchdbDocumentContact *document);
Retrieve a list of email addresses from the specified contact document. Email addresses are returned in a GSList of CouchdbStructField objects, which can be manipulated with the couchdb_document_contact_email_* functions and freed with: g_slist_foreach (list, (GFunc) couchdb_struct_field_unref, NULL); g_slist_free (list);
|
A CouchdbDocumentContact object representing a contact |
Returns : |
a GSList of CouchdbStructField objects. |
void couchdb_document_contact_set_email_addresses (CouchdbDocumentContact *document,GSList *list);
GSList * couchdb_document_contact_get_phone_numbers
(CouchdbDocumentContact *document);
void couchdb_document_contact_set_phone_numbers (CouchdbDocumentContact *document,GSList *list);
GSList * couchdb_document_contact_get_addresses
(CouchdbDocumentContact *document);
void couchdb_document_contact_set_addresses (CouchdbDocumentContact *document,GSList *list);
GSList * couchdb_document_contact_get_im_addresses
(CouchdbDocumentContact *document);
void couchdb_document_contact_set_im_addresses (CouchdbDocumentContact *document,GSList *list);
GSList * couchdb_document_contact_get_urls (CouchdbDocumentContact *document);
void couchdb_document_contact_set_urls (CouchdbDocumentContact *document,GSList *list);
const char * couchdb_document_contact_get_categories
(CouchdbDocumentContact *document);
Get the list of categories (as a string) for this contact document.
|
A CouchdbDocumentContact object |
Returns : |
A comma separated list of categories as a string. |
void couchdb_document_contact_set_categories (CouchdbDocumentContact *document,const char *categories);
const char * couchdb_document_contact_get_notes (CouchdbDocumentContact *document);
void couchdb_document_contact_set_notes (CouchdbDocumentContact *document,const char *notes);
CouchdbStructField * couchdb_document_contact_email_new (const char *uuid,const char *address,const char *description);
const char * couchdb_document_contact_email_get_address
(CouchdbStructField *sf);
void couchdb_document_contact_email_set_address (CouchdbStructField *sf,const char *email);
#define COUCHDB_DOCUMENT_CONTACT_EMAIL_DESCRIPTION_HOME
#define COUCHDB_DOCUMENT_CONTACT_EMAIL_DESCRIPTION_OTHER
#define COUCHDB_DOCUMENT_CONTACT_EMAIL_DESCRIPTION_WORK
const char * couchdb_document_contact_email_get_description
(CouchdbStructField *sf);
void couchdb_document_contact_email_set_description (CouchdbStructField *sf,const char *description);
CouchdbStructField * couchdb_document_contact_phone_new (const char *uuid,const char *number,const char *description,gint priority);
gint couchdb_document_contact_phone_get_priority
(CouchdbStructField *sf);
void couchdb_document_contact_phone_set_priority (CouchdbStructField *sf,gint priority);
const char * couchdb_document_contact_phone_get_number
(CouchdbStructField *sf);
void couchdb_document_contact_phone_set_number (CouchdbStructField *sf,const char *number);
#define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_ASSISTANT
#define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_CALLBACK
#define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_CAR
#define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_COMPANY
#define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_HOME
#define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_HOME_FAX
#define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_MOBILE
#define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_OTHER
#define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_OTHER_FAX
#define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_PAGER
#define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_PRIMARY
#define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_RADIO
#define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_TELEX
#define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_WORK
#define COUCHDB_DOCUMENT_CONTACT_PHONE_DESCRIPTION_WORK_FAX
const char * couchdb_document_contact_phone_get_description
(CouchdbStructField *sf);
void couchdb_document_contact_phone_set_description (CouchdbStructField *sf,const char *description);
CouchdbStructField * couchdb_document_contact_address_new (const char *uuid,const char *street,const char *ext_street,const char *city,const char *state,const char *country,const char *postalcode,const char *pobox,const char *description);
const char * couchdb_document_contact_address_get_street
(CouchdbStructField *sf);
void couchdb_document_contact_address_set_street (CouchdbStructField *sf,const char *street);
const char * couchdb_document_contact_address_get_ext_street
(CouchdbStructField *sf);
void couchdb_document_contact_address_set_ext_street (CouchdbStructField *sf,const char *ext_street);
const char * couchdb_document_contact_address_get_city
(CouchdbStructField *sf);
void couchdb_document_contact_address_set_city (CouchdbStructField *sf,const char *city);
const char * couchdb_document_contact_address_get_state
(CouchdbStructField *sf);
void couchdb_document_contact_address_set_state (CouchdbStructField *sf,const char *state);
const char * couchdb_document_contact_address_get_country
(CouchdbStructField *sf);
void couchdb_document_contact_address_set_country (CouchdbStructField *sf,const char *country);
const char * couchdb_document_contact_address_get_postalcode
(CouchdbStructField *sf);
void couchdb_document_contact_address_set_postalcode (CouchdbStructField *sf,const char *postalcode);
const char * couchdb_document_contact_address_get_pobox
(CouchdbStructField *sf);
void couchdb_document_contact_address_set_pobox (CouchdbStructField *sf,const char *pobox);
#define COUCHDB_DOCUMENT_CONTACT_ADDRESS_DESCRIPTION_HOME
#define COUCHDB_DOCUMENT_CONTACT_ADDRESS_DESCRIPTION_OTHER
#define COUCHDB_DOCUMENT_CONTACT_ADDRESS_DESCRIPTION_WORK
const char * couchdb_document_contact_address_get_description
(CouchdbStructField *sf);
void couchdb_document_contact_address_set_description (CouchdbStructField *sf,const char *description);
CouchdbStructField * couchdb_document_contact_im_new (const char *uuid,const char *address,const char *description,const char *protocol);
const char * couchdb_document_contact_im_get_address
(CouchdbStructField *sf);
void couchdb_document_contact_im_set_address (CouchdbStructField *sf,const char *address);
const char * couchdb_document_contact_im_get_description
(CouchdbStructField *sf);
void couchdb_document_contact_im_set_description (CouchdbStructField *sf,const char *description);
#define COUCHDB_DOCUMENT_CONTACT_IM_PROTOCOL_GADU_GADU
#define COUCHDB_DOCUMENT_CONTACT_IM_PROTOCOL_GROUPWISE
const char * couchdb_document_contact_im_get_protocol
(CouchdbStructField *sf);
void couchdb_document_contact_im_set_protocol (CouchdbStructField *sf,const char *protocol);
CouchdbStructField * couchdb_document_contact_url_new (const char *uuid,const char *address,const char *description);
const char * couchdb_document_contact_url_get_address
(CouchdbStructField *sf);
void couchdb_document_contact_url_set_address (CouchdbStructField *sf,const char *address);
#define COUCHDB_DOCUMENT_CONTACT_URL_DESCRIPTION_HOMEPAGE
const char * couchdb_document_contact_url_get_description
(CouchdbStructField *sf);
void couchdb_document_contact_url_set_description (CouchdbStructField *sf,const char *description);