Advertisement
Guest User

Untitled

a guest
May 19th, 2017
529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * TpConnectionContactsByIdCb:
  3.  * @connection: The connection
  4.  * @n_contacts: The number of TpContact objects successfully created
  5.  *  (one per valid ID), or 0 on unrecoverable errors
  6.  * @contacts: (array length=n_contacts): An array of @n_contacts TpContact
  7.  *  objects (this callback is
  8.  *  not given a reference to any of these objects, and must call
  9.  *  g_object_ref() on any that it will keep), or %NULL on unrecoverable errors
  10.  * @requested_ids: (array length=n_contacts): An array of @n_contacts valid IDs
  11.  *  (JIDs, SIP URIs etc.)
  12.  *  that were passed to tp_connection_get_contacts_by_id(), in an order
  13.  *  corresponding to @contacts, or %NULL on unrecoverable errors
  14.  * @failed_id_errors: (element-type utf8 GLib.Error): A hash table in which
  15.  *  the keys are IDs and the values are errors (#GError)
  16.  * @error: %NULL on success, or an unrecoverable error that caused everything
  17.  *  to fail
  18.  * @user_data: the @user_data that was passed to
  19.  *  tp_connection_get_contacts_by_id()
  20.  * @weak_object: the @weak_object that was passed to
  21.  *  tp_connection_get_contacts_by_id()
  22.  */
  23.  
  24. /**
  25.  * tp_connection_get_contacts_by_id:
  26.  * @self: A connection, which must be ready (#TpConnection:connection-ready
  27.  *  must be %TRUE)
  28.  * @n_ids: The number of IDs in @ids (must be at least 1)
  29.  * @ids: (array length=n_ids) (transfer none): An array of strings representing
  30.  *  the desired contacts by their
  31.  *  identifiers in the IM protocol (XMPP JIDs, SIP URIs, MSN Passports,
  32.  *  AOL screen-names etc.)
  33.  * @n_features: The number of features in @features (may be 0)
  34.  * @features: (array length=n_features): An array of features that must be
  35.  *  ready for use (if supported)
  36.  *  before the callback is called (may be %NULL if @n_features is 0)
  37.  * @callback: A user callback to call when the contacts are ready
  38.  * @user_data: Data to pass to the callback
  39.  * @destroy: Called to destroy @user_data either after @callback has been
  40.  *  called, or if the operation is cancelled
  41.  * @weak_object: (allow-none) (transfer none): An object to pass to the
  42.  *  callback, which will be weakly
  43.  *  referenced; if this object is destroyed, the operation will be cancelled
  44.  */
  45.  
  46.                         conn.get_contacts_by_id(
  47.                           [ "dannielle.meyer@gmail.com" ],
  48.                           [],
  49.                           function(conn, contacts, requested, failed, error,
  50.                                    user_data, weak_obj)
  51.                             {
  52.                               print("Callback");
  53.                             },
  54.                           null, null, null);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement