GData.GContactWebsite¶
- Subclasses:
None
Methods¶
- Inherited:
GData.Parsable (5), GObject.Object (37), GData.Comparable (1)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
GData.Parsable (9), GObject.Object (7), GData.Comparable (1)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
Indicates which website out of a group is primary. |
||
r/w |
A simple string value used to name this website. |
||
r/w |
A programmatic value that identifies the type of website. |
||
r/w |
The URI of the website. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class GData.GContactWebsite(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.GContactWebsitestructure are private and should never be accessed directly.New in version 0.7.0.
- classmethod new(uri, relation_type, label, is_primary)¶
- Parameters:
- Returns:
a new
GData.GContactWebsite; unref withGObject.Object.unref()- Return type:
Creates a new
GData.GContactWebsite. More information is available in the gContact specification.Exactly one of relation_type and label should be provided; the other must be
None.New in version 0.7.0.
- get_label()¶
-
Gets the
GData.GContactWebsite:labelproperty.New in version 0.7.0.
- get_relation_type()¶
- Returns:
the website’s relation type
- Return type:
Gets the
GData.GContactWebsite:relation-typeproperty.New in version 0.7.0.
- get_uri()¶
- Returns:
the URI of the website
- Return type:
Gets the
GData.GContactWebsite:uriproperty.New in version 0.7.0.
- is_primary()¶
-
Gets the
GData.GContactWebsite:is-primaryproperty.New in version 0.7.0.
- set_is_primary(is_primary)¶
-
Sets the
GData.GContactWebsite:is-primaryproperty to is_primary.New in version 0.7.0.
- set_label(label)¶
-
Sets the
GData.GContactWebsite:labelproperty to label.If label is
None, the label will be unset. When theGData.GContactWebsiteis used in a query, however, exactly one ofGData.GContactWebsite:relation-typeandGData.GContactWebsite:labelmust beNone.New in version 0.7.0.
- set_relation_type(relation_type)¶
- Parameters:
relation_type (
str) – the new relation type for the website
Sets the
GData.GContactWebsite:relation-typeproperty to relation_type such asGData.GCONTACT_WEBSITE_HOME_PAGEorGData.GCONTACT_WEBSITE_FTP.If relation_type is
None, the relation type will be unset. When theGData.GContactWebsiteis used in a query, however, exactly one ofGData.GContactWebsite:relation-typeandGData.GContactWebsite:labelmust beNone.New in version 0.7.0.
- set_uri(uri)¶
- Parameters:
uri (
str) – the new website URI
Sets the
GData.GContactWebsite:uriproperty to uri.New in version 0.7.0.
Property Details¶
- GData.GContactWebsite.props.is_primary¶
-
Indicates which website out of a group is primary.
For more information, see the
New in version 0.7.0.
- GData.GContactWebsite.props.label¶
-
A simple string value used to name this website. It allows UIs to display a label such as “Work”, “Travel blog”, “Personal blog”, etc. It is mutually exclusive with
GData.GContactWebsite:relation-type.For more information, see the
New in version 0.7.0.
- GData.GContactWebsite.props.relation_type¶
-
A programmatic value that identifies the type of website. Examples are
GData.GCONTACT_WEBSITE_HOME_PAGEorGData.GCONTACT_WEBSITE_FTP. It is mutually exclusive withGData.GContactWebsite:label.For more information, see the
New in version 0.7.0.