diff options
Diffstat (limited to 'tubes/source/file-transfer-helper.c')
-rw-r--r-- | tubes/source/file-transfer-helper.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tubes/source/file-transfer-helper.c b/tubes/source/file-transfer-helper.c index c5049f8dcfb4..6450343bbb09 100644 --- a/tubes/source/file-transfer-helper.c +++ b/tubes/source/file-transfer-helper.c @@ -923,6 +923,9 @@ ft_handler_populate_outgoing_request (EmpathyFTHandler *handler) if (priv->service_name != NULL) tp_asv_set_string (priv->request, TP_PROP_CHANNEL_INTERFACE_FILE_TRANSFER_METADATA_SERVICE_NAME, priv->service_name); + if (priv->description != NULL) + tp_asv_set_string (priv->request, TP_PROP_CHANNEL_TYPE_FILE_TRANSFER_DESCRIPTION, priv->description); + g_free (uri); } @@ -1455,6 +1458,15 @@ empathy_ft_handler_set_service_name ( self->priv->service_name = g_strdup (service_name); } +void +empathy_ft_handler_set_description ( + EmpathyFTHandler *self, + const gchar *description) +{ + g_free (self->priv->description); + self->priv->description = g_strdup (description); +} + /** * empathy_ft_handler_new_incoming: * @channel: the #TpFileTransferChannel proxy to the incoming channel @@ -1616,6 +1628,18 @@ empathy_ft_handler_get_filename (EmpathyFTHandler *handler) return priv->filename; } +const char * +empathy_ft_handler_get_description (EmpathyFTHandler *handler) +{ + EmpathyFTHandlerPriv *priv; + + g_return_val_if_fail (EMPATHY_IS_FT_HANDLER (handler), NULL); + + priv = handler->priv; + + return priv->description; +} + /** * empathy_ft_handler_get_content_type: * @handler: an #EmpathyFTHandler |