![]() |
![]() |
![]() |
GData Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
#include <gdata/gcontact/gdata-gcontact-website.h> #define GDATA_GCONTACT_WEBSITE_HOME_PAGE #define GDATA_GCONTACT_WEBSITE_BLOG #define GDATA_GCONTACT_WEBSITE_PROFILE #define GDATA_GCONTACT_WEBSITE_HOME #define GDATA_GCONTACT_WEBSITE_WORK #define GDATA_GCONTACT_WEBSITE_OTHER #define GDATA_GCONTACT_WEBSITE_FTP GDataGContactWebsite; GDataGContactWebsiteClass; GDataGContactWebsite * gdata_gcontact_website_new (const gchar *uri
,const gchar *relation_type
,const gchar *label
,gboolean is_primary
); const gchar * gdata_gcontact_website_get_uri (GDataGContactWebsite *self
); void gdata_gcontact_website_set_uri (GDataGContactWebsite *self
,const gchar *uri
); const gchar * gdata_gcontact_website_get_relation_type (GDataGContactWebsite *self
); void gdata_gcontact_website_set_relation_type (GDataGContactWebsite *self
,const gchar *relation_type
); const gchar * gdata_gcontact_website_get_label (GDataGContactWebsite *self
); void gdata_gcontact_website_set_label (GDataGContactWebsite *self
,const gchar *label
); gboolean gdata_gcontact_website_is_primary (GDataGContactWebsite *self
); void gdata_gcontact_website_set_is_primary (GDataGContactWebsite *self
,gboolean is_primary
);
"is-primary" gboolean : Read / Write "label" gchar* : Read / Write "relation-type" gchar* : Read / Write "uri" gchar* : Read / Write
#define GDATA_GCONTACT_WEBSITE_HOME_PAGE "home-page"
The relation type URI for a contact's home page.
For more information, see the gContact specification.
Since 0.7.0
#define GDATA_GCONTACT_WEBSITE_BLOG "blog"
The relation type URI for a contact's blog.
For more information, see the gContact specification.
Since 0.7.0
#define GDATA_GCONTACT_WEBSITE_PROFILE "profile"
The relation type URI for a contact's online profile.
For more information, see the gContact specification.
Since 0.7.0
#define GDATA_GCONTACT_WEBSITE_HOME "home"
The relation type URI for a contact's home website.
For more information, see the gContact specification.
Since 0.7.0
#define GDATA_GCONTACT_WEBSITE_WORK "work"
The relation type URI for a contact's work website.
For more information, see the gContact specification.
Since 0.7.0
#define GDATA_GCONTACT_WEBSITE_OTHER "other"
The relation type URI for a miscellaneous website of the contact.
For more information, see the gContact specification.
Since 0.7.0
#define GDATA_GCONTACT_WEBSITE_FTP "ftp"
The relation type URI for a contact's FTP site.
For more information, see the gContact specification.
Since 0.7.0
typedef struct _GDataGContactWebsite GDataGContactWebsite;
All the fields in the GDataGContactWebsite structure are private and should never be accessed directly.
Since 0.7.0
typedef struct { } GDataGContactWebsiteClass;
All the fields in the GDataGContactWebsiteClass structure are private and should never be accessed directly.
Since 0.7.0
GDataGContactWebsite * gdata_gcontact_website_new (const gchar *uri
,const gchar *relation_type
,const gchar *label
,gboolean is_primary
);
Creates a new GDataGContactWebsite. More information is available in the gContact specification.
|
the website URI |
|
the relationship between the website and its owner |
|
a human-readable label for the website, or NULL . [allow-none]
|
|
TRUE if this website is its owner's primary website, FALSE otherwise |
Returns : |
a new GDataGContactWebsite; unref with g_object_unref()
|
Since 0.7.0
const gchar * gdata_gcontact_website_get_uri (GDataGContactWebsite *self
);
Gets the "uri" property.
|
a GDataGContactWebsite |
Returns : |
the URI of the website |
Since 0.7.0
void gdata_gcontact_website_set_uri (GDataGContactWebsite *self
,const gchar *uri
);
Sets the "uri" property to uri
.
|
a GDataGContactWebsite |
|
the new website URI |
Since 0.7.0
const gchar * gdata_gcontact_website_get_relation_type
(GDataGContactWebsite *self
);
Gets the "relation-type" property.
|
a GDataGContactWebsite |
Returns : |
the website's relation type |
Since 0.7.0
void gdata_gcontact_website_set_relation_type (GDataGContactWebsite *self
,const gchar *relation_type
);
Sets the "relation-type" property to relation_type
such as GDATA_GCONTACT_WEBSITE_HOME_PAGE
or GDATA_GCONTACT_WEBSITE_FTP
.
|
a GDataGContactWebsite |
|
the new relation type for the website |
Since 0.7.0
const gchar * gdata_gcontact_website_get_label (GDataGContactWebsite *self
);
Gets the "label" property.
|
a GDataGContactWebsite |
Returns : |
the website's label, or NULL
|
Since 0.7.0
void gdata_gcontact_website_set_label (GDataGContactWebsite *self
,const gchar *label
);
Sets the "label" property to label
.
Set label
to NULL
to unset the property in the website.
|
a GDataGContactWebsite |
|
the new label for the website, or NULL . [allow-none]
|
Since 0.7.0
gboolean gdata_gcontact_website_is_primary (GDataGContactWebsite *self
);
Gets the "is-primary" property.
|
a GDataGContactWebsite |
Returns : |
TRUE if this is the primary website, FALSE otherwise |
Since 0.7.0
void gdata_gcontact_website_set_is_primary (GDataGContactWebsite *self
,gboolean is_primary
);
Sets the "is-primary" property to is_primary
.
|
a GDataGContactWebsite |
|
TRUE if this is the primary website, FALSE otherwise |
Since 0.7.0
"is-primary"
property"is-primary" gboolean : Read / Write
Indicates which website out of a group is primary.
For more information, see the gContact specification.
Default value: FALSE
Since 0.7.0
"label"
property"label" gchar* : Read / Write
A simple string value used to name this website. It allows UIs to display a label such as "Work", "Travel blog", "Personal blog", etc.
For more information, see the gContact specification.
Default value: NULL
Since 0.7.0
"relation-type"
property"relation-type" gchar* : Read / Write
A programmatic value that identifies the type of website. Examples are GDATA_GCONTACT_WEBSITE_HOME_PAGE
or GDATA_GCONTACT_WEBSITE_FTP
.
For more information, see the gContact specification.
Default value: NULL
Since 0.7.0
"uri"
property"uri" gchar* : Read / Write
The URI of the website.
For more information, see the gContact specification.
Default value: NULL
Since 0.7.0