## EmpathyTpContactFactory EmpathyTpContactFactory |

## Synopsis

                        EmpathyTpContactFactory;
    void                (*EmpathyTpContactFactoryContactsByIdCb)
                                                            (EmpathyTpContactFactory *factory,
                                                             guint n_contacts,
                                                             EmpathyContact * const *contacts,
                                                             const gchar * const *requested_ids,
                                                             GHashTable *failed_id_errors,
                                                             const GError *error,
                                                             gpointer user_data,
                                                             GObject *weak_object);
    void                (*EmpathyTpContactFactoryContactsByHandleCb)
                                                            (EmpathyTpContactFactory *factory,
                                                             guint n_contacts,
                                                             EmpathyContact * const *contacts,
                                                             guint n_failed,
                                                             const TpHandle *failed,
                                                             const GError *error,
                                                             gpointer user_data,
                                                             GObject *weak_object);
    void                (*EmpathyTpContactFactoryContactCb) (EmpathyTpContactFactory *factory,
                                                             EmpathyContact *contact,
                                                             const GError *error,
                                                             gpointer user_data,
                                                             GObject *weak_object);
    EmpathyTpContactFactory * empathy_tp_contact_factory_dup_singleton
                                                            (TpConnection *connection);
    void                empathy_tp_contact_factory_get_from_ids
                                                            (EmpathyTpContactFactory *tp_factory,
                                                             guint n_ids,
                                                             const gchar * const *ids,
                                                             EmpathyTpContactFactoryContactsByIdCb callback,
                                                             gpointer user_data,
                                                             GDestroyNotify destroy,
                                                             GObject *weak_object);
    void                empathy_tp_contact_factory_get_from_handles
                                                            (EmpathyTpContactFactory *tp_factory,
                                                             guint n_handles,
                                                             const TpHandle *handles,
                                                             EmpathyTpContactFactoryContactsByHandleCb callback,
                                                             gpointer user_data,
                                                             GDestroyNotify destroy,
                                                             GObject *weak_object);
    void                empathy_tp_contact_factory_get_from_id
                                                            (EmpathyTpContactFactory *tp_factory,
                                                             const gchar *id,
                                                             EmpathyTpContactFactoryContactCb callback,
                                                             gpointer user_data,
                                                             GDestroyNotify destroy,
                                                             GObject *weak_object);
    void                empathy_tp_contact_factory_get_from_handle
                                                            (EmpathyTpContactFactory *tp_factory,
                                                             TpHandle handle,
                                                             EmpathyTpContactFactoryContactCb callback,
                                                             gpointer user_data,
                                                             GDestroyNotify destroy,
                                                             GObject *weak_object);
    void                empathy_tp_contact_factory_set_alias
                                                            (EmpathyTpContactFactory *tp_factory,
                                                             EmpathyContact *contact,
                                                             const gchar *alias);
    void                empathy_tp_contact_factory_set_avatar
                                                            (EmpathyTpContactFactory *tp_factory,
                                                             const gchar *data,
                                                             gsize size,
                                                             const gchar *mime_type);
    void                empathy_tp_contact_factory_set_location
                                                            (EmpathyTpContactFactory *tp_factory,
                                                             GHashTable *location);

## Object Hierarchy

      GObject
       +----EmpathyTpContactFactory

## Properties

      "avatar-max-height"        guint                 : Read
      "avatar-max-size"          guint                 : Read
      "avatar-max-width"         guint                 : Read
      "avatar-mime-types"        GStrv*                : Read
      "avatar-min-height"        guint                 : Read
      "avatar-min-width"         guint                 : Read
      "connection"               TpConnection*         : Read / Write / Construct Only

## Description

## Details

### EmpathyTpContactFactory

    typedef struct _EmpathyTpContactFactory EmpathyTpContactFactory;

### EmpathyTpContactFactoryContactsByIdCb ()

    void                (*EmpathyTpContactFactoryContactsByIdCb)
                                                            (EmpathyTpContactFactory *factory,
                                                             guint n_contacts,
                                                             EmpathyContact * const *contacts,
                                                             const gchar * const *requested_ids,
                                                             GHashTable *failed_id_errors,
                                                             const GError *error,
                                                             gpointer user_data,
                                                             GObject *weak_object);

`factory` : |
`n_contacts` : |
`contacts` : |
`requested_ids` : |
`failed_id_errors` : |
`error` : |
`user_data` : |
`weak_object` : |

### EmpathyTpContactFactoryContactsByHandleCb ()

    void                (*EmpathyTpContactFactoryContactsByHandleCb)
                                                            (EmpathyTpContactFactory *factory,
                                                             guint n_contacts,
                                                             EmpathyContact * const *contacts,
                                                             guint n_failed,
                                                             const TpHandle *failed,
                                                             const GError *error,
                                                             gpointer user_data,
                                                             GObject *weak_object);

`factory` : |
`n_contacts` : |
`contacts` : |
`n_failed` : |
`failed` : |
`error` : |
`user_data` : |
`weak_object` : |

### EmpathyTpContactFactoryContactCb ()

    void                (*EmpathyTpContactFactoryContactCb) (EmpathyTpContactFactory *factory,
                                                             EmpathyContact *contact,
                                                             const GError *error,
                                                             gpointer user_data,
                                                             GObject *weak_object);

`factory` : |
`contact` : |
`error` : |
`user_data` : |
`weak_object` : |

### empathy_tp_contact_factory_dup_singleton ()

    EmpathyTpContactFactory * empathy_tp_contact_factory_dup_singleton
                                                            (TpConnection *connection);

`connection` : |
Returns : |

### empathy_tp_contact_factory_get_from_ids ()

    void                empathy_tp_contact_factory_get_from_ids
                                                            (EmpathyTpContactFactory *tp_factory,
                                                             guint n_ids,
                                                             const gchar * const *ids,
                                                             EmpathyTpContactFactoryContactsByIdCb callback,
                                                             gpointer user_data,
                                                             GDestroyNotify destroy,
                                                             GObject *weak_object);

`tp_factory` : |
`n_ids` : |
`ids` : |
`callback` : |
`user_data` : |
`destroy` : |
`weak_object` : |

### empathy_tp_contact_factory_get_from_handles ()

    void                empathy_tp_contact_factory_get_from_handles
                                                            (EmpathyTpContactFactory *tp_factory,
                                                             guint n_handles,
                                                             const TpHandle *handles,
                                                             EmpathyTpContactFactoryContactsByHandleCb callback,
                                                             gpointer user_data,
                                                             GDestroyNotify destroy,
                                                             GObject *weak_object);

`tp_factory` : |
`n_handles` : |
`handles` : |
`callback` : |
`user_data` : |
`destroy` : |
`weak_object` : |

### empathy_tp_contact_factory_get_from_id ()

    void                empathy_tp_contact_factory_get_from_id
                                                            (EmpathyTpContactFactory *tp_factory,
                                                             const gchar *id,
                                                             EmpathyTpContactFactoryContactCb callback,
                                                             gpointer user_data,
                                                             GDestroyNotify destroy,
                                                             GObject *weak_object);

`tp_factory` : |
`id` : |
`callback` : |
`user_data` : |
`destroy` : |
`weak_object` : |

### empathy_tp_contact_factory_get_from_handle ()

    void                empathy_tp_contact_factory_get_from_handle
                                                            (EmpathyTpContactFactory *tp_factory,
                                                             TpHandle handle,
                                                             EmpathyTpContactFactoryContactCb callback,
                                                             gpointer user_data,
                                                             GDestroyNotify destroy,
                                                             GObject *weak_object);

`tp_factory` : |
`handle` : |
`callback` : |
`user_data` : |
`destroy` : |
`weak_object` : |

### empathy_tp_contact_factory_set_alias ()

    void                empathy_tp_contact_factory_set_alias
                                                            (EmpathyTpContactFactory *tp_factory,
                                                             EmpathyContact *contact,
                                                             const gchar *alias);

`tp_factory` : |
`contact` : |
`alias` : |

### empathy_tp_contact_factory_set_avatar ()

    void                empathy_tp_contact_factory_set_avatar
                                                            (EmpathyTpContactFactory *tp_factory,
                                                             const gchar *data,
                                                             gsize size,
                                                             const gchar *mime_type);

`tp_factory` : |
`data` : |
`size` : |
`mime_type` : |

### empathy_tp_contact_factory_set_location ()

    void                empathy_tp_contact_factory_set_location
                                                            (EmpathyTpContactFactory *tp_factory,
                                                             GHashTable *location);

`tp_factory` : |
`location` : |

## Property Details

### The `"avatar-max-height"` property

      "avatar-max-height"        guint                 : Read

Maximum height of avatar that may be set or 0 if there is no maximum.

Default value: 0

### The `"avatar-max-size"` property

      "avatar-max-size"          guint                 : Read

Maximum file size of avatar that may be set or 0 if there is no maximum.

Default value: 0

### The `"avatar-max-width"` property

      "avatar-max-width"         guint                 : Read

Maximum width of avatar that may be set or 0 if there is no maximum.

Default value: 0

### The `"avatar-mime-types"` property

      "avatar-mime-types"        GStrv*                : Read

Types of images that may be set as avatars on this connection.

### The `"avatar-min-height"` property

      "avatar-min-height"        guint                 : Read

Minimum height of avatar that may be set.

Default value: 0

### The `"avatar-min-width"` property

      "avatar-min-width"         guint                 : Read

Minimum width of avatar that may be set.

Default value: 0

### The `"connection"` property

      "connection"               TpConnection*         : Read / Write / Construct Only

The connection associated with the factory.