diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2012-08-07 23:11:50 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2012-08-08 10:04:19 +0200 |
commit | 1fa1894ec4ac7dd2ba314716d5565f3dac87592a (patch) | |
tree | 20fe35b50b444314897a7ddc93ed308419ecb5e1 /tubes/source/file-transfer-helper.c | |
parent | 35aa0360ed14ced09b803c2fc95ea095d4a6cb36 (diff) |
tubes: use file channel description for sending UUID
Change-Id: I44129798110491cd59e1eb39d2f4c2cf3eb3c81b
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 |