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.GContactWebsite
structure 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
:label
property.New in version 0.7.0.
- get_relation_type()¶
- Returns:
the website’s relation type
- Return type:
Gets the
GData.GContactWebsite
:relation-type
property.New in version 0.7.0.
- get_uri()¶
- Returns:
the URI of the website
- Return type:
Gets the
GData.GContactWebsite
:uri
property.New in version 0.7.0.
- is_primary()¶
-
Gets the
GData.GContactWebsite
:is-primary
property.New in version 0.7.0.
- set_is_primary(is_primary)¶
-
Sets the
GData.GContactWebsite
:is-primary
property to is_primary.New in version 0.7.0.
- set_label(label)¶
-
Sets the
GData.GContactWebsite
:label
property to label.If label is
None
, the label will be unset. When theGData.GContactWebsite
is used in a query, however, exactly one ofGData.GContactWebsite
:relation-type
andGData.GContactWebsite
:label
must 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-type
property to relation_type such asGData.GCONTACT_WEBSITE_HOME_PAGE
orGData.GCONTACT_WEBSITE_FTP
.If relation_type is
None
, the relation type will be unset. When theGData.GContactWebsite
is used in a query, however, exactly one ofGData.GContactWebsite
:relation-type
andGData.GContactWebsite
:label
must beNone
.New in version 0.7.0.
- set_uri(uri)¶
- Parameters:
uri (
str
) – the new website URI
Sets the
GData.GContactWebsite
:uri
property 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_PAGE
orGData.GCONTACT_WEBSITE_FTP
. It is mutually exclusive withGData.GContactWebsite
:label
.For more information, see the
New in version 0.7.0.