Bug 18527 - Add org.freedesktop.Telepathy.Channel.Interface.LocalFile interface
Summary: Add org.freedesktop.Telepathy.Channel.Interface.LocalFile interface
Status: RESOLVED MOVED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-spec (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-14 02:37 UTC by Guillaume Desmottes
Modified: 2019-12-03 20:17 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Guillaume Desmottes 2008-11-14 02:37:07 UTC
We need a FileTransfer LocalFile interface for CM that can't implement the socket one because of the underlying IM library.

Such interface would depend on org.freedesktop.Telepathy.Channel.Type.FileTransfer.DRAFT and would have these 2 methods:
- ProvideLocalFile(v: path)
- AcceptLocalFile(v: path)

We should probably define a "LocalFilePath" new TP type as a variant which can be 's' if the path is in UTF-8 and 'ay' if it's not.

This interface would also have a "LocalFileOnly" boolean property set to TRUE.

Clients would be able to detect if a CM support this interface by looking at RequestableChannelClasses:
- if the CM implements just the 'normal' FT mode: {ChannelType: FileTransfer}
- if the CM doesn't support Socket FT: {ChannelType: FileTransfer, LocalFileOnly: True}
- if the CM implements both it announces the 2 channel classes above.
Comment 1 Olivier Crête 2008-11-14 02:52:56 UTC
This just seems wrong...

Either we have a single API (and the CM always writes locally (ie that sucks))... or if the CMs library is brain damaged, then the CM should write the file to a temp place.. then, when its over, read it and ship it over the socket... Or override (in LD_PRELOAD style) the read/write functions maybe
Comment 2 Guillaume Desmottes 2011-01-25 03:41:44 UTC
From bug #32434:
"""
Also, if a CM supported a hypothetical Address_Type_Local_File, the handler
could just pass that and the file path as the Access_Control_Param to
Accept/Provide… ;-)
"""
Comment 3 GitLab Migration User 2019-12-03 20:17:41 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-spec/issues/16.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.