GData.GContactLanguage

g GData.Comparable GData.Comparable GData.GContactLanguage GData.GContactLanguage GData.Comparable->GData.GContactLanguage GData.Parsable GData.Parsable GData.Parsable->GData.GContactLanguage GObject.GInterface GObject.GInterface GObject.GInterface->GData.Comparable GObject.Object GObject.Object GObject.Object->GData.Parsable

Subclasses:

None

Methods

Inherited:

GData.Parsable (5), GObject.Object (37), GData.Comparable (1)

Structs:

GObject.ObjectClass (5)

class

new (code, label)

get_code ()

get_label ()

set_code (code)

set_label (label)

Virtual Methods

Inherited:

GData.Parsable (9), GObject.Object (7), GData.Comparable (1)

Properties

Inherited:

GData.Parsable (1)

Name

Type

Flags

Short Description

code

str

r/w

A code identifying the language, conforming to the IETF BCP 47 specification.

label

str

r/w

A free-form string that identifies the language.

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GData.Parsable

r

Class Details

class GData.GContactLanguage(**kwargs)
Bases:

GData.Parsable, GData.Comparable

Abstract:

No

Structure:

GData.GContactLanguageClass

All the fields in the GData.GContactLanguage structure are private and should never be accessed directly.

New in version 0.7.0.

classmethod new(code, label)
Parameters:
  • code (str or None) – the language code, or None

  • label (str or None) – a free-form label for the language, or None

Returns:

a new GData.GContactLanguage; unref with GObject.Object.unref()

Return type:

GData.GContactLanguage

Creates a new GData.GContactLanguage. More information is available in the gContact specification.

Exactly one of code and label should be provided; the other must be None.

New in version 0.7.0.

get_code()
Returns:

the language’s code, or None

Return type:

str

Gets the GData.GContactLanguage :code property.

New in version 0.7.0.

get_label()
Returns:

a free-form label for the language, or None

Return type:

str

Gets the GData.GContactLanguage :label property.

New in version 0.7.0.

set_code(code)
Parameters:

code (str or None) – the new code for the language, or None

Sets the GData.GContactLanguage :code property to code.

If code is None, the code will be unset. When the GData.GContactLanguage is used in a query, however, exactly one of GData.GContactLanguage :code and GData.GContactLanguage :label must be None.

New in version 0.7.0.

set_label(label)
Parameters:

label (str or None) – the new free-form label for the language, or None

Sets the GData.GContactLanguage :label property to label.

If label is None, the label will be unset. When the GData.GContactLanguage is used in a query, however, exactly one of GData.GContactLanguage :code and GData.GContactLanguage :label must be None.

New in version 0.7.0.

Property Details

GData.GContactLanguage.props.code
Name:

code

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

A code identifying the language, conforming to the IETF BCP 47 specification. It is mutually exclusive with GData.GContactLanguage :label.

For more information, see the

gContact specification.

New in version 0.7.0.

GData.GContactLanguage.props.label
Name:

label

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

A free-form string that identifies the language. It is mutually exclusive with GData.GContactLanguage :code.

For more information, see the

gContact specification.

New in version 0.7.0.