TelepathyGLib.Contact¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r  | 
The contact’s alias (display name)  | 
||
r  | 
File to the latest cached avatar image, or   | 
||
r  | 
MIME type of the latest cached avatar image, or   | 
||
r  | 
Opaque string representing the contact’s avatar, or “”, or   | 
||
r  | 
Capabilities of the contact, or   | 
||
[  | 
r  | 
Client types of the contact, or   | 
|
r  | 
Connection object that owns this channel  | 
||
[  | 
r  | 
Groups of the contact  | 
|
r  | 
Information of the contact, or   | 
||
r  | 
The   | 
||
r  | 
The contact’s identifier in the instant messaging protocol (e.g. XMPP JID, SIP URI, AOL screenname or IRC nick)  | 
||
r  | 
  | 
||
r  | 
User-defined location, or   | 
||
r  | 
User-defined status message, or an empty string  | 
||
r  | 
Possibly connection-manager-specific string representing the contact’s presence status  | 
||
r  | 
The   | 
||
r  | 
Publish request message of the contact  | 
||
r  | 
Publish state of the contact  | 
||
r  | 
Subscribe state of the contact  | 
Signals¶
- Inherited:
 
Name  | 
Short Description  | 
|---|---|
Emitted when this contact’s groups changes.  | 
|
Emitted when this contact’s presence changes.  | 
|
Emitted when this contact’s subscription states changes.  | 
Fields¶
- Inherited:
 
Class Details¶
- class TelepathyGLib.Contact(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
An object representing a contact on a
TelepathyGLib.Connection.Contact objects support tracking a number of attributes of contacts, as described by the
TelepathyGLib.ContactFeatureflags. Features can be specified when instantiating contact objects (withTelepathyGLib.Connection.get_contacts_by_id() orTelepathyGLib.Connection.get_contacts_by_handle()), or added to an existing contact object withTelepathyGLib.Connection.upgrade_contacts(). For example, a client wishing to keep track of a contact’s alias would setTelepathyGLib.ContactFeature.ALIAS, and then listen for the “notify::alias” signal, emitted whenever theTelepathyGLib.Contact:aliasproperty changes.Note that releasing a
TelepathyGLib.Contactobject might release handle references held by calling tp_cli_connection_call_request_handles(), tp_cli_connection_run_request_handles(), tp_cli_connection_call_hold_handles(), tp_cli_connection_run_hold_handles(), tp_cli_connection_interface_contacts_call_get_contact_attributes() or tp_cli_connection_interface_contacts_run_get_contact_attributes() directly. Those functions should be avoided in favour of usingTelepathyGLib.Contact,TelepathyGLib.Connection.hold_handles(),TelepathyGLib.Connection.request_handles() andTelepathyGLib.Connection.get_contact_attributes().New in version 0.7.18.
- add_to_group_async(group, callback, *user_data)¶
 - Parameters:
 group (
str) – the group to alter.callback (
Gio.AsyncReadyCallbackorNone) – a callback to call when the operation finishes
Convenience wrapper for
TelepathyGLib.Connection.add_to_group_async() on a single contact.New in version 0.15.5.
- add_to_group_finish(result)¶
 - Parameters:
 result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
 - Returns:
 - Return type:
 
Finishes
TelepathyGLib.Contact.add_to_group_async()New in version 0.15.5.
- authorize_publication_async(callback, *user_data)¶
 - Parameters:
 callback (
Gio.AsyncReadyCallbackorNone) – a callback to call when the operation finishes
Convenience wrapper for
TelepathyGLib.Connection.authorize_publication_async() on a single contact.New in version 0.15.5.
- authorize_publication_finish(result)¶
 - Parameters:
 result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
 - Returns:
 - Return type:
 
Finishes
TelepathyGLib.Contact.authorize_publication_async()New in version 0.15.5.
- block_async(report_abusive, callback, *user_data)¶
 - Parameters:
 report_abusive (
bool) – IfTrue, report this contact as abusive to the server administrators as well as blocking him. SeeTelepathyGLib.Connection:can-report-abusiveto discover whether reporting abuse is supported. IfTelepathyGLib.Connection:can-report-abusiveisFalse, this parameter will be ignored.callback (
Gio.AsyncReadyCallbackorNone) – a callback to call when the operation finishes
Block communications with a contact, optionally reporting the contact as abusive to the server administrators. To block more than one contact at once, see
TelepathyGLib.Connection.block_contacts_async().New in version 0.17.0.
- block_finish(result)¶
 - Parameters:
 result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
 - Returns:
 - Return type:
 
Finishes
TelepathyGLib.Contact.block_async()New in version 0.17.0.
- dup_contact_info()¶
 - Returns:
 a
GLib.ListofTelepathyGLib.ContactInfoField, orNoneif the feature is not yet prepared.- Return type:
 
Returns a newly allocated
GLib.Listof contact’s vCard fields. The list must be freed with tp_contact_info_list_free() after used.Same as the
TelepathyGLib.Contact:contact-infoproperty.New in version 0.19.9.
- dup_location()¶
 - Returns:
 a variant of type %G_VARIANT_TYPE_VARDICT, the same as the
TelepathyGLib.Contact:location-vardictproperty- Return type:
 
Return the contact’s user-defined location, or
Noneif the location is unspecified.This function returns the same information as
TelepathyGLib.Contact.get_location(), but in a different format.New in version 0.19.10.
- get_account()¶
 - Returns:
 a borrowed reference to self's account (it must be referenced with
GObject.Object.refif it must remain valid longer than the contact)- Return type:
 
Return the
TelepathyGLib.Accountof self'sTelepathyGLib.Contact:connection. SeeTelepathyGLib.Connection.get_account() for details.New in version 0.19.0.
- get_alias()¶
 - Returns:
 the same non-
Nonealias as theTelepathyGLib.Contact:alias- Return type:
 
Return the contact’s alias. This remains valid until the main loop is re-entered; if the caller requires a string that will persist for longer than that, it must be copied with
GLib.strdup().New in version 0.7.18.
- get_avatar_file()¶
 - Returns:
 the same
Gio.Fileas theTelepathyGLib.Contact:avatar-fileproperty (possiblyNone)- Return type:
 
Return the contact’s avatar file. This remains valid until the main loop is re-entered; if the caller requires a
Gio.Filethat will persist for longer than that, it must be reffed withGObject.Object.ref().New in version 0.11.6.
- get_avatar_mime_type()¶
 - Returns:
 the same MIME type as the
TelepathyGLib.Contact:avatar-mime-typeproperty (possiblyNone)- Return type:
 
Return the contact’s avatar MIME type. This remains valid until the main loop is re-entered; if the caller requires a string that will persist for longer than that, it must be copied with
GLib.strdup().New in version 0.11.6.
- get_avatar_token()¶
 - Returns:
 the same token as the
TelepathyGLib.Contact:avatar-tokenproperty (possiblyNone)- Return type:
 
Return the contact’s avatar token. This remains valid until the main loop is re-entered; if the caller requires a string that will persist for longer than that, it must be copied with
GLib.strdup().New in version 0.7.18.
- get_capabilities()¶
 - Returns:
 the same
TelepathyGLib.Capabilities(orNone) as theTelepathyGLib.Contact:capabilitiesproperty- Return type:
 
New in version 0.11.3.
- get_client_types()¶
 - Returns:
 the same #GStrv as the
TelepathyGLib.Contact:client-typesproperty- Return type:
 [
str]
Return the contact’s client types or
Noneif the client types are unspecified.New in version 0.13.1.
- get_connection()¶
 - Returns:
 a borrowed reference to the
TelepathyGLib.Contact:connection(it must be referenced withGObject.Object.refif it must remain valid longer than the contact)- Return type:
 
nothing more to say
New in version 0.7.18.
- get_contact_groups()¶
 - Returns:
 the same #GStrv as the
TelepathyGLib.Contact:contact-groupsproperty- Return type:
 [
str]
Return names of groups of which a contact is a member. It is incorrect to call this method before
TelepathyGLib.ContactFeature.CONTACT_GROUPShas been prepared. This remains valid until the main loop is re-entered; if the caller requires a #GStrv that will persist for longer than that, it must be copied withGLib.strdupv().New in version 0.13.14.
- get_contact_info()¶
 - Returns:
 a
GLib.ListofTelepathyGLib.ContactInfoField, orNoneif the feature is not yet prepared.- Return type:
 
Returns a newly allocated
GLib.Listof contact’s vCard fields. The list must be freed with g_list_free() after used.Note that the
TelepathyGLib.ContactInfoFields in the returnedGLib.Listare not dupped before returning from this function. One could copy every item in the list using tp_contact_info_field_copy().Same as the
TelepathyGLib.Contact:contact-infoproperty.New in version 0.11.7.
Deprecated since version 0.19.9: New code should use
TelepathyGLib.Contact.dup_contact_info() instead.
- get_handle()¶
 - Returns:
 the same handle as the
TelepathyGLib.Contact:handleproperty- Return type:
 
Return the contact’s handle, which is of type
TelepathyGLib.HandleType.CONTACT, or 0 if theTelepathyGLib.Contact:connectionhas become invalid.This handle is referenced using the Telepathy D-Bus API and remains referenced for as long as self exists and the
TelepathyGLib.Contact:connectionremains valid.However, the caller of this function does not gain an additional reference to the handle.
New in version 0.7.18.
- get_identifier()¶
 - Returns:
 the same non-
Noneidentifier as theTelepathyGLib.Contact:identifierproperty- Return type:
 
Return the contact’s identifier. This remains valid for as long as self exists; if the caller requires a string that will persist for longer than that, it must be copied with
GLib.strdup().New in version 0.7.18.
- get_location()¶
 - Returns:
 the same
GLib.HashTable(orNone) as theTelepathyGLib.Contact:locationproperty- Return type:
 {
str:GObject.Value}
Return the contact’s user-defined location or
Noneif the location is unspecified. This remains valid until the main loop is re-entered; if the caller requires a hash table that will persist for longer than that, it must be reffed withGLib.HashTable.ref().New in version 0.11.1.
- get_presence_message()¶
 - Returns:
 the same non-
Nonemessage as theTelepathyGLib.Contact:presence-messageproperty- Return type:
 
Return the contact’s user-defined status message, or an empty string. This remains valid until the main loop is re-entered; if the caller requires a string that will persist for longer than that, it must be copied with
GLib.strdup().New in version 0.7.18.
- get_presence_status()¶
 - Returns:
 the same non-
Nonestatus name as theTelepathyGLib.Contact:presence-statusproperty- Return type:
 
Return the name of the contact’s presence status, or an empty string. This remains valid until the main loop is re-entered; if the caller requires a string that will persist for longer than that, it must be copied with
GLib.strdup().New in version 0.7.18.
- get_presence_type()¶
 - Returns:
 the same presence type as the
TelepathyGLib.Contact:presence-typeproperty- Return type:
 
If this object has been set up to track
TelepathyGLib.ContactFeature.PRESENCEand the underlying connection supports either the Presence or SimplePresence interfaces, return the type of the contact’s presence.Otherwise, return
TelepathyGLib.ConnectionPresenceType.UNSET.New in version 0.7.18.
- get_publish_request()¶
 - Returns:
 the value of
TelepathyGLib.Contact:publish-request.- Return type:
 
If
TelepathyGLib.Contact:publish-stateis set toTelepathyGLib.SubscriptionState.ASK, return the message that this remote contact sent when they requested permission to see the local user’s presence, an empty string (“”) otherwise. This remains valid until the main loop is re-entered; if the caller requires a string that will persist for longer than that, it must be copied withGLib.strdup().This is set to
NoneuntilTelepathyGLib.ContactFeature.SUBSCRIPTION_STATEShas been prepared, and it is guaranteed to be non-Noneafterward.New in version 0.13.12.
- get_publish_state()¶
 - Returns:
 the value of
TelepathyGLib.Contact:publish-state.- Return type:
 
Return the state of this remote contact’s subscription to the local user’s presence.
This is set to
TelepathyGLib.SubscriptionState.UNKNOWNuntilTelepathyGLib.ContactFeature.SUBSCRIPTION_STATEShas been preparedNew in version 0.13.12.
- get_subscribe_state()¶
 - Returns:
 the value of
TelepathyGLib.Contact:subscribe-state.- Return type:
 
Return the state of the local user’s subscription to this remote contact’s presence.
This is set to
TelepathyGLib.SubscriptionState.UNKNOWNuntilTelepathyGLib.ContactFeature.SUBSCRIPTION_STATEShas been preparedNew in version 0.13.12.
- has_feature(feature)¶
 - Parameters:
 feature (
TelepathyGLib.ContactFeature) – a desired feature- Returns:
 Trueif self has been set up to track the feature feature- Return type:
 
New in version 0.7.18.
- is_blocked()¶
 - Returns:
 the value of
TelepathyGLib.Contact:is-blocked.- Return type:
 
New in version 0.17.0.
- remove_async(callback, *user_data)¶
 - Parameters:
 callback (
Gio.AsyncReadyCallbackorNone) – a callback to call when the operation finishes
Convenience wrapper for
TelepathyGLib.Connection.remove_contacts_async() on a single contact.New in version 0.15.5.
- remove_finish(result)¶
 - Parameters:
 result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
 - Returns:
 - Return type:
 
Finishes
TelepathyGLib.Contact.remove_async()New in version 0.15.5.
- remove_from_group_async(group, callback, *user_data)¶
 - Parameters:
 group (
str) – the group to alter.callback (
Gio.AsyncReadyCallbackorNone) – a callback to call when the operation finishes
Convenience wrapper for
TelepathyGLib.Connection.remove_from_group_async() on a single contact.New in version 0.15.5.
- remove_from_group_finish(result)¶
 - Parameters:
 result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
 - Returns:
 - Return type:
 
Finishes
TelepathyGLib.Contact.remove_from_group_async()New in version 0.15.5.
- request_contact_info_async(cancellable, callback, *user_data)¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject,Noneto ignore.callback (
Gio.AsyncReadyCallbackorNone) – a callback to call when the request is satisfied
Requests an asynchronous request of the contact info of self. When the operation is finished, callback will be called. You can then call
TelepathyGLib.Contact.request_contact_info_finish() to get the result of the operation.If the operation is successful, the
TelepathyGLib.Contact:contact-infoproperty will be updated (emitting “notify::contact-info” signal) before callback is called. That means you can callTelepathyGLib.Contact.get_contact_info() to get the new vCard inside callback.Note that requesting the vCard from the network can take significant time, so a bigger timeout is set on the underlying D-Bus call. cancellable can be cancelled to free resources used in the D-Bus call if the caller is no longer interested in the vCard.
If
TelepathyGLib.ContactFeature.CONTACT_INFOis not yet set on self, it will be set before its property gets updated and callback is called.New in version 0.11.7.
- request_contact_info_finish(result)¶
 - Parameters:
 result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
 - Returns:
 - Return type:
 
Finishes an async request of self info. If the operation was successful, the contact’s vCard can be accessed using
TelepathyGLib.Contact.get_contact_info().New in version 0.11.7.
- request_subscription_async(message, callback, *user_data)¶
 - Parameters:
 message (
str) – an optional messagecallback (
Gio.AsyncReadyCallbackorNone) – a callback to call when the operation finishes
Convenience wrapper for
TelepathyGLib.Connection.request_subscription_async() on a single contact.New in version 0.15.5.
- request_subscription_finish(result)¶
 - Parameters:
 result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
 - Returns:
 - Return type:
 
Finishes
TelepathyGLib.Contact.request_subscription_async()New in version 0.15.5.
- set_contact_groups_async(groups, callback, *user_data)¶
 - Parameters:
 
Add self to the given groups (creating new groups if necessary), and remove it from all other groups. If the user is removed from a group of which they were the only member, the group MAY be removed automatically. You can then call
TelepathyGLib.Contact.set_contact_groups_finish() to get the result of the operation.If the operation is successful and
TelepathyGLib.ContactFeature.CONTACT_GROUPSis prepared, theTelepathyGLib.Contact:contact-groupsproperty will be updated (emitting “notify::contact-groups” signal) andTelepathyGLib.Contact::contact-groups-changedsignal will be emitted before callback is called. That means you can callTelepathyGLib.Contact.get_contact_groups() to get the new contact groups inside callback.New in version 0.13.14.
- set_contact_groups_finish(result)¶
 - Parameters:
 result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
 - Returns:
 - Return type:
 
Finishes an async set of self contact groups.
New in version 0.13.14.
- unblock_async(callback, *user_data)¶
 - Parameters:
 callback (
Gio.AsyncReadyCallbackorNone) – a callback to call when the operation finishes
Unblock communications with a contact. To unblock more than one contact at once, see
TelepathyGLib.Connection.unblock_contacts_async().New in version 0.17.0.
- unblock_finish(result)¶
 - Parameters:
 result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
 - Returns:
 - Return type:
 
Finishes
TelepathyGLib.Contact.unblock_async()New in version 0.17.0.
- unpublish_async(callback, *user_data)¶
 - Parameters:
 callback (
Gio.AsyncReadyCallbackorNone) – a callback to call when the operation finishes
Convenience wrapper for
TelepathyGLib.Connection.unpublish_async() on a single contact.New in version 0.15.5.
- unpublish_finish(result)¶
 - Parameters:
 result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
 - Returns:
 - Return type:
 
Finishes
TelepathyGLib.Contact.unpublish_async()New in version 0.15.5.
- unsubscribe_async(callback, *user_data)¶
 - Parameters:
 callback (
Gio.AsyncReadyCallbackorNone) – a callback to call when the operation finishes
Convenience wrapper for
TelepathyGLib.Connection.unsubscribe_async() on a single contact.New in version 0.15.5.
- unsubscribe_finish(result)¶
 - Parameters:
 result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
 - Returns:
 - Return type:
 
Finishes
TelepathyGLib.Contact.unsubscribe_async()New in version 0.15.5.
Signal Details¶
- TelepathyGLib.Contact.signals.contact_groups_changed(contact, added, removed)¶
 - Signal Name:
 contact-groups-changed- Flags:
 - Parameters:
 contact (
TelepathyGLib.Contact) – The object which received the signaladded ([
str]) – A #GStrv with added contact groupsremoved ([
str]) – A #GStrv with removed contact groups
Emitted when this contact’s groups changes. When this signal is emitted,
TelepathyGLib.Contact:contact-groupsproperty is already updated.New in version 0.13.14.
- TelepathyGLib.Contact.signals.presence_changed(contact, type, status, message)¶
 - Signal Name:
 presence-changed- Flags:
 - Parameters:
 contact (
TelepathyGLib.Contact) – The object which received the signaltype (
int) – The new value ofTelepathyGLib.Contact:presence-typestatus (
str) – The new value ofTelepathyGLib.Contact:presence-statusmessage (
str) – The new value ofTelepathyGLib.Contact:presence-message
Emitted when this contact’s presence changes.
New in version 0.11.7.
- TelepathyGLib.Contact.signals.subscription_states_changed(contact, subscribe, publish, publish_request)¶
 - Signal Name:
 subscription-states-changed- Flags:
 - Parameters:
 contact (
TelepathyGLib.Contact) – The object which received the signalsubscribe (
int) – the new value ofTelepathyGLib.Contact:subscribe-statepublish (
int) – the new value ofTelepathyGLib.Contact:publish-statepublish_request (
str) – the new value ofTelepathyGLib.Contact:publish-request
Emitted when this contact’s subscription states changes.
New in version 0.13.12.
Property Details¶
- TelepathyGLib.Contact.props.alias¶
 - 
The contact’s alias if available, falling back to their
TelepathyGLib.Contact:identifierif no alias is available or if theTelepathyGLib.Contacthas not been set up to trackTelepathyGLib.ContactFeature.ALIAS.This alias may have been supplied by the contact themselves, or by the local user, so it does not necessarily unambiguously identify the contact. However, it is suitable for use as a main “display name” for the contact.
This is never
Nonefor contact objects that are visible to library-user code. 
- TelepathyGLib.Contact.props.avatar_file¶
 - 
Gio.Fileto the latest cached avatar image, orNoneif this contact has no avatar, or if the avatar data is not yet retrieved.When
TelepathyGLib.Contact:avatar-tokenchanges, this property is not updated immediately, but will be updated when the new avatar data is retrieved and stored in cache. Until then, the file will keep its old value of the latest cached avatar image.This is set to
NoneifTelepathyGLib.ContactFeature.AVATAR_DATAis not set on this contact. Note that settingTelepathyGLib.ContactFeature.AVATAR_DATAwill also implicitly setTelepathyGLib.ContactFeature.AVATAR_TOKEN.New in version 0.11.6.
 
- TelepathyGLib.Contact.props.avatar_mime_type¶
 - 
MIME type of the latest cached avatar image, or
Noneif this contact has no avatar, or if the avatar data is not yet retrieved.This is always the MIME type of the image given by
TelepathyGLib.Contact:avatar-file.New in version 0.11.6.
 
- TelepathyGLib.Contact.props.avatar_token¶
 - 
An opaque string representing state of the contact’s avatar (depending on the protocol, this might be a hash, a timestamp or something else), or an empty string if there is no avatar.
This may be
Noneif it is not known whether this contact has an avatar or not (either for network protocol reasons, or because thisTelepathyGLib.Contacthas not been set up to trackTelepathyGLib.ContactFeature.AVATAR_TOKEN). 
- TelepathyGLib.Contact.props.capabilities¶
 - Name:
 capabilities- Type:
 - Default Value:
 - Flags:
 
The capabilities supported by this contact. If the underlying Connection doesn’t support the ContactCapabilities interface, this property will contain the capabilities supported by the connection. Use
TelepathyGLib.Capabilities.is_specific_to_contact() to check if the capabilities are specific to thisTelepathyGLib.Contactor not.This may be
Noneif thisTelepathyGLib.Contactobject has not been set up to trackTelepathyGLib.ContactFeature.CAPABILITIES.New in version 0.11.3.
- TelepathyGLib.Contact.props.client_types¶
 - 
A #GStrv containing the client types of this contact.
This is set to
NoneifTelepathyGLib.ContactFeature.CLIENT_TYPESis not set on this contact; it may also beNoneif that feature is prepared, but the contact’s client types are unknown.New in version 0.13.1.
 
- TelepathyGLib.Contact.props.connection¶
 - Name:
 connection- Type:
 - Default Value:
 - Flags:
 
The
TelepathyGLib.Connectionto which this contact belongs.
- TelepathyGLib.Contact.props.contact_groups¶
 - 
a #GStrv with names of groups of which a contact is a member.
This is set to
NoneifTelepathyGLib.ContactFeature.CONTACT_GROUPSis not prepared on this contact, or if the connection does not implement ContactGroups interface.New in version 0.13.14.
 
- TelepathyGLib.Contact.props.contact_info¶
 - 
A
GLib.ListofTelepathyGLib.ContactInfoFieldrepresenting the vCard of this contact.This is set to
NoneifTelepathyGLib.ContactFeature.CONTACT_INFOis not set on this contact.New in version 0.11.7.
 
- TelepathyGLib.Contact.props.handle¶
 - 
The contact’s handle in the Telepathy D-Bus API, a handle of type
TelepathyGLib.HandleType.CONTACTrepresenting the string given byTelepathyGLib.Contact:identifier.This handle is referenced using the Telepathy D-Bus API and remains referenced for as long as the
TelepathyGLib.Contactexists and theTelepathyGLib.Contact:connectionremains valid.However, getting this property does not cause an additional reference to the handle to be held.
If the
TelepathyGLib.Contact:connectionbecomes invalid, this property is no longer meaningful and will be set to 0. 
- TelepathyGLib.Contact.props.identifier¶
 - 
The contact’s identifier in the instant messaging protocol (e.g. XMPP JID, SIP URI, AOL screenname or IRC nick - whatever the underlying protocol uses to identify a user).
This is never
Nonefor contact objects that are visible to library-user code. 
- TelepathyGLib.Contact.props.is_blocked¶
 - 
Trueif the contact has been blocked.This is set to
FalseifTelepathyGLib.ContactFeature.CONTACT_BLOCKINGis not prepared on this contact, or if the connection does not implement ContactBlocking interface.New in version 0.17.0.
 
- TelepathyGLib.Contact.props.location_vardict¶
 - Name:
 location-vardict- Type:
 - Default Value:
 - Flags:
 
If this contact has set a user-defined location, a string to variant map containing his location. If not,
None. tp_vardict_get_string() and similar functions can be used to access the contents.This may be
Noneeven if the contact has set a location, if thisTelepathyGLib.Contactobject has not been set up to trackTelepathyGLib.ContactFeature.LOCATION.This property contains the same information as
TelepathyGLib.Contact:location, in a different format.New in version 0.19.10.
- TelepathyGLib.Contact.props.presence_message¶
 - 
If this contact has set a user-defined status message, that message; if not, an empty string (which user interfaces may replace with a localized form of the
TelepathyGLib.Contact:presence-statusorTelepathyGLib.Contact:presence-type).This may be an empty string even if the contact has set a message, if this
TelepathyGLib.Contactobject has not been set up to trackTelepathyGLib.ContactFeature.PRESENCE. It is neverNone. 
- TelepathyGLib.Contact.props.presence_status¶
 - 
A string representing the presence status of this contact. This may be a well-known string from the Telepathy specification, like “available”, or a connection-manager-specific string, like “out-to-lunch”.
This may be an empty string if this
TelepathyGLib.Contactobject has not been set up to trackTelepathyGLib.ContactFeature.PRESENCE. It is neverNone. 
- TelepathyGLib.Contact.props.presence_type¶
 - 
The
TelepathyGLib.ConnectionPresenceTyperepresenting the type of presence status for this contact.This is provided so even unknown values for
TelepathyGLib.Contact:presence-statuscan be classified into their fundamental types.This may be
TelepathyGLib.ConnectionPresenceType.UNSETif thisTelepathyGLib.Contacthas not been set up to trackTelepathyGLib.ContactFeature.PRESENCE. 
- TelepathyGLib.Contact.props.publish_request¶
 - 
The message that contact sent when they requested permission to see the local user’s presence, if
TelepathyGLib.Contact:publish-stateisTelepathyGLib.SubscriptionState.ASK, an empty string (“”) otherwise.This is set to
NoneuntilTelepathyGLib.ContactFeature.SUBSCRIPTION_STATEShas been prepared, and it is guaranteed to be non-Noneafterward.New in version 0.13.12.
 
- TelepathyGLib.Contact.props.publish_state¶
 - 
A
TelepathyGLib.SubscriptionStateindicating the state of this contact’s subscription to the local user’s presence.This is set to
TelepathyGLib.SubscriptionState.UNKNOWNuntilTelepathyGLib.ContactFeature.SUBSCRIPTION_STATEShas been preparedNew in version 0.13.12.
 
- TelepathyGLib.Contact.props.subscribe_state¶
 - 
A
TelepathyGLib.SubscriptionStateindicating the state of the local user’s subscription to this contact’s presence.This is set to
TelepathyGLib.SubscriptionState.UNKNOWNuntilTelepathyGLib.ContactFeature.SUBSCRIPTION_STATEShas been preparedNew in version 0.13.12.