aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-tp-file.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove last references to mission-control 4Sjoerd Simons2009-07-161-0/+1
|
* Merge branch 'ft_ipv4'Cosimo Cecchi2009-06-121-24/+162
|\
| * Drop PORT access control support for nowCosimo Cecchi2009-06-121-15/+7
| |
| * Fix make checkCosimo Cecchi2009-06-071-1/+1
| |
| * Emit an error for socket types we don't handleCosimo Cecchi2009-06-071-5/+26
| | | | | | | | Also, fix error handling when a socket fails on connect().
| * Use empathy_uint_compareCosimo Cecchi2009-06-071-13/+1
| |
| * Build fix after rebaseCosimo Cecchi2009-06-071-1/+1
| |
| * Initialize the address and port valuesCosimo Cecchi2009-06-071-12/+34
| | | | | | | | | | | | The address the CM returns if we're using IPV4 is of the type TP_STRUCT_TYPE_SOCKET_ADDRESS_IPV4; use those values to setup the IPV4 socket.
| * Add support for IPV4 socketsCosimo Cecchi2009-06-071-25/+68
| |
| * Look at the available socket typeCosimo Cecchi2009-06-071-0/+72
| | | | | | | | | | Look at the available socket types, and don't hardcode UNIX/LOCALHOST values.
* | Correctly propagate Provide/Accept errorsWill Thompson2009-06-101-2/+3
|/ | | | | | | | | Previously, if myerr was set as well as error, myerr was cleared, but not set to a copy of error. So then the function continued as normal, and crashed. Also, having checked if myerr is set, we should probably log the message from that, rather than from the (possibly NULL) error. :)
* Don't chain up to constructorCosimo Cecchi2009-06-011-2/+0
|
* Use _constructed instead of _constructorCosimo Cecchi2009-06-011-15/+8
|
* Fix coding styleCosimo Cecchi2009-06-011-5/+5
|
* Use the right macros to pass a gboolean as user_dataCosimo Cecchi2009-06-011-11/+12
| | | | | Use GPOINTER_TO_INT and GINT_TO_POINTER instead of passing the address, as that doesn't work.
* Document EmpathyTpFileCosimo Cecchi2009-06-011-17/+70
|
* Use != NULL for pointer checks.Cosimo Cecchi2009-06-011-16/+16
|
* Adapt the code to the tp style.Cosimo Cecchi2009-06-011-53/+55
|
* Wait for channel close before closing the socketCosimo Cecchi2009-06-011-14/+24
| | | | So that we can better handle cancellations of the transfer.
* Don't leak GErrors.Cosimo Cecchi2009-06-011-0/+1
|
* Cleanup after rebase v2Cosimo Cecchi2009-06-011-0/+10
|
* First cleanup after rebaseCosimo Cecchi2009-06-011-18/+0
|
* Ensure the callbacks are only run onceCosimo Cecchi2009-06-011-0/+12
| | | | | Also ensure that we get no progress callbacks after the transfer has been cancelled.
* React to Tp remote errorsCosimo Cecchi2009-06-011-3/+57
| | | | Push Tp state change errors to the handler/UI.
* Don't set the status to cancelled when closingCosimo Cecchi2009-06-011-16/+23
| | | | | If we are only closing a channel, don't set the EmpathyTpFile status to cancelled.
* Don't notify progress for zero bytesCosimo Cecchi2009-06-011-23/+8
| | | | Also, remove useless state property.
* First implementation of error handlingCosimo Cecchi2009-06-011-32/+2
| | | | | | Implement the callback in EmpathyFTManager. Erase a redundant is_cancelled property in EmpathyFTHandler and rely on the GCancellable, which is shared by EmpathyTpFile and EmpathyFTHandler.
* Total FileTransfer draft spec exorcismCosimo Cecchi2009-06-011-4/+2
|
* Use proper DEBUG() messagesCosimo Cecchi2009-06-011-1/+0
|
* Use values from TpFileTransferStateCosimo Cecchi2009-06-011-9/+9
| | | | | | Use values from the TpFileTransferState and TpFileTransferStateChangeReason enums instead of the Empathy draft interfaces.
* Only close the FT operation after the state changeCosimo Cecchi2009-06-011-4/+9
| | | | | | | Close the FT operation only after the "completed" state change has been emitted, so that we can guarantee there will be no other progress signals emitted after TRANSFER_DONE. Also, add some other debug calls.
* Set the "incoming" property at constructCosimo Cecchi2009-06-011-4/+21
| | | | | Set the "incoming" property of EmpathyTpFile when we construct it from EmpathyDispatchOperation.
* Sync with changes in masterCosimo Cecchi2009-06-011-17/+30
| | | | | Sync with the changes in master and port to the stable TP FileTransfer spec.
* Cleanup in EmpathyTpFile style.Cosimo Cecchi2009-06-011-194/+185
|
* Make libempathy compile with the new changes.Cosimo Cecchi2009-06-011-90/+79
|
* Modify EmpathyFTHandler to adapt to the changes in EmpathyTpFile API.Cosimo Cecchi2009-06-011-4/+2
|
* W.I.P. for heavy lifting on EmpathyTpFile.Cosimo Cecchi2009-06-011-972/+410
|
* Reference empathy_tp_file_is_ready in the "ready" property.Jonny Lamb2009-04-251-1/+2
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* Remove incorrect emacs modeline.Jonny Lamb2009-04-251-1/+0
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* Added more words to empathy_tp_file_is_ready.Jonny Lamb2009-04-251-0/+4
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* Removed empathy_tp_file_close as it was a duplicate of _cancel.Jonny Lamb2009-04-251-7/+1
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* Use a tp-glib constant rather than a magic number.Jonny Lamb2009-04-251-1/+1
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* Update EmpathyTpFile documentation.Jonny Lamb2009-04-251-16/+147
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* Add gtk-doc for new functionsXavier Claessens2009-04-251-0/+16
|
* Refresh each second instead of each 2 secondsXavier Claessens2009-04-251-1/+1
|
* Display the file transfer speed and calculate remaining time more dynamically.Xavier Claessens2009-04-251-13/+77
|
* tp-file: ready property has to be read onlyGuillaume Desmottes2009-04-241-5/+1
|
* tp-file: implement getter/setter for the ready propertyGuillaume Desmottes2009-04-241-0/+6
|
* Change EmpathyTpContactFactory API to look more like TpConnection. Add ↵Xavier Claessens2009-04-221-4/+12
| | | | | | function to get only one contact from id/handle.
* There is no "contact" property on EmpathyTpFileXavier Claessens2009-04-221-2/+0
|
* Port EmpathyTpFile to new API and add a ready propertyXavier Claessens2009-04-221-43/+129
|
* Fix memleak in empathy_tp_file_accept. Free content of priv->filename beforeLars-Peter Clausen2009-04-211-0/+1
| | | | overwriting it.
* Merge branch 'fix-ft' into to-mergeGuillaume Desmottes2009-03-181-8/+38
| | | | | | From: Guillaume Desmottes <gdesmott@gnome.org> svn path=/trunk/; revision=2713
* Use tp-glib generated code for file transfers rather than extensions.Jonny Lamb2009-02-211-29/+27
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2523
* Removed extensions.h inclusion in public API.Jonny Lamb2009-01-171-2/+4
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2236
* empathy_mission_control_new -> dup_singleton.Xavier Claessens2009-01-161-1/+1
| | | | svn path=/trunk/; revision=2233
* Don't close channels as a side-effect of disposing wrapper objectsSjoerd Simons2009-01-101-3/+2
| | | | | | Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2183
* Add a function to explicitly close File channelsSjoerd Simons2009-01-101-1/+8
| | | | | | Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2140
* Port EmpathyContactFactory to the new singleton policy.Xavier Claessens2009-01-091-1/+1
| | | | svn path=/trunk/; revision=2113
* Start file transfer if the state is already open when we get the unix socketSjoerd Simons2008-12-231-0/+3
| | | | | | Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2012
* Use gi18n-lib.h instead of gi18n.h for libraries.Xavier Claessens2008-12-121-1/+1
| | | | svn path=/trunk/; revision=1967
* Remove empathy_tp_file_keep_alive hack and connect to "notify::state" in ↵Xavier Claessens2008-11-221-37/+0
| | | | | | file_channel_create_cb() to unref the object when the FT is done. svn path=/trunk/; revision=1913
* Cleanup of ft_manager_add_tp_file_to_list.Xavier Claessens2008-11-221-0/+7
| | | | svn path=/trunk/; revision=1908
* Fix ref counting of tp_file, make it singleton per channel, and add a ↵Xavier Claessens2008-11-221-5/+68
| | | | | | _keep_alive method that adds a tmp ref until the transfer finishes. svn path=/trunk/; revision=1904
* Fix signature of signal cb, start the transfer only if we have the socket ↵Xavier Claessens2008-11-221-24/+28
| | | | | | path, and switch input/output streams in tp_file_start_transfer. svn path=/trunk/; revision=1901
* Change state when the channel is invalidated only if an error occured.Xavier Claessens2008-11-221-5/+11
| | | | svn path=/trunk/; revision=1891
* Simplify a little bit the code when abording a FTXavier Claessens2008-11-221-4/+5
| | | | svn path=/trunk/; revision=1889
* Cancel the FT if we can't get the transfer methodXavier Claessens2008-11-221-1/+2
| | | | svn path=/trunk/; revision=1888
* Remove unused empathy_tp_file_get_idXavier Claessens2008-11-221-18/+0
| | | | svn path=/trunk/; revision=1887
* Simplify the code to start a file transferXavier Claessens2008-11-221-72/+35
| | | | svn path=/trunk/; revision=1886
* When the channel is invalidated, change state to CANCELLED.Xavier Claessens2008-11-221-32/+18
| | | | svn path=/trunk/; revision=1885
* rename empathy_tp_file_get_incoming to empathy_tp_file_is_incomingXavier Claessens2008-11-221-1/+1
| | | | svn path=/trunk/; revision=1882
* empathy_tp_file_accept/offer takes the GFile in param and return a GError if ↵Xavier Claessens2008-11-221-86/+26
| | | | | | the file can't be opened. svn path=/trunk/; revision=1881
* empathy-tp-file.c: actually implement the getter of GObject propertiesXavier Claessens2008-11-221-0/+24
| | | | svn path=/trunk/; revision=1858
* empathy-tp-file: reorder FileTransfer D-Bus properties using the same order ↵Xavier Claessens2008-11-221-7/+10
| | | | | | as in the spec svn path=/trunk/; revision=1857
* tp_file_constructor: get the ContentHashType and ContentType values from the ↵Xavier Claessens2008-11-221-0/+6
| | | | | | properties hash table svn path=/trunk/; revision=1856
* Implement latest ft draftXavier Claessens2008-11-221-3/+7
| | | | svn path=/trunk/; revision=1849
* fix FT client side code as the generated code changedXavier Claessens2008-11-221-8/+9
| | | | svn path=/trunk/; revision=1843
* Renamed free_copy_data_if_closed to copy_data_unref and have a ref_count in ↵Jonny Lamb2008-11-221-17/+22
| | | | | | | | the CopyData struct. (Jonny Lamb) Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1840
* Don't expose streams in EmpathyTpFile, but use the GFile. (Jonny Lamb)Jonny Lamb2008-11-221-54/+39
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1837
* Moved empathy_send_file to EmpathyDispatcher and renamed it. (Jonny Lamb)Jonny Lamb2008-11-221-1/+1
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1835
* Removed useless libtelepathy headers. (Jonny Lamb)Jonny Lamb2008-11-221-4/+0
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1810
* Removed useless +0.5 in get_time_remaining. (Jonny Lamb)Jonny Lamb2008-11-221-1/+1
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1808
* Made state_change_reason None in the constructor instead of an invalid ↵Jonny Lamb2008-11-221-5/+2
| | | | | | | | value. (Jonny Lamb) Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1807
* Removed pointless test whether the tp_file is a GObject in the finalize ↵Jonny Lamb2008-11-221-2/+1
| | | | | | | | function. (Jonny Lamb) Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1806
* Use empathy_time_get_current_time instead of g_get_current_time. (Jonny Lamb)Jonny Lamb2008-11-221-15/+6
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1805
* Removed cached_empathy_file from EmpathyTpFilePriv. (Jonny Lamb)Jonny Lamb2008-11-221-1/+0
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1804
* Removed account property of EmpathyTpFile as it's only actually used once ↵Jonny Lamb2008-11-221-27/+6
| | | | | | | | and easy obtainable. (Jonny Lamb) Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1803
* Made property-getting synchronous again so there isn't a massive race ↵Jonny Lamb2008-11-221-45/+30
| | | | | | | | | | | condition (Jonny Lamb) This is more of a workaround than a fix and should be fixed fairly soonish. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1802
* Updated parameter checks to return appropriate values. (Jonny Lamb)Jonny Lamb2008-11-221-9/+12
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1799
* Add parameter checks to public functions. (Jonny Lamb)Jonny Lamb2008-11-221-1/+24
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1797
* Updated the way to access the EmpathyTpFilePriv instance within ↵Jonny Lamb2008-11-221-248/+157
| | | | | | | | empathy-tp-file. (Jonny Lamb) Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1796
* Re-ordered EmpathyTpFile so static functions need no declaration at the top ↵Jonny Lamb2008-11-221-493/+474
| | | | | | | | of the file. (Jonny Lamb) Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1794
* Changed _run_ method calls to _call_ calls. (Jonny Lamb)Jonny Lamb2008-11-221-80/+85
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1791
* Fixed copyright and author headers. (Jonny Lamb)Jonny Lamb2008-11-221-2/+4
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1790
* Various whitespace and comment fixes. (Jonny Lamb)Jonny Lamb2008-11-221-2/+1
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1789
* Added empathy_offer_file function and updated accept_file. (Jonny Lamb)Jonny Lamb2008-11-221-2/+38
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1788
* Removed SocketPath channel property. (Jonny Lamb)Jonny Lamb2008-11-221-19/+0
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1786
* Added ContentHashType channel property, and renamed ContentMD5 to ↵Jonny Lamb2008-11-221-13/+25
| | | | | | | | ContentHash. (Jonny Lamb) Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1785
* Updated yet more places to use s/direction/incoming/ (Jonny Lamb)Jonny Lamb2008-11-221-2/+2
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1784
* Replaced the Direction channel property a more-private GObject incoming ↵Jonny Lamb2008-11-221-22/+18
| | | | | | | | property. (Jonny Lamb) Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1783
* Renamed EmpathyFile to EmpathyTpFile. (Jonny Lamb)Jonny Lamb2008-11-221-0/+1178
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1776
* Removed EmpathyTpFile and put everything into EmpathyFile. (Jonny Lamb)Jonny Lamb2008-11-221-1040/+0
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1748
* Correctly set the EmpathyContact in an EmpathyTpFile. (Jonny Lamb)Jonny Lamb2008-11-221-0/+7
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1744
* Added a workaround to EmpathyTpFile's finalize function so it doesn't run ↵Jonny Lamb2008-11-221-1/+2
| | | | | | | | g_object_unref on non-GObjects. (Jonny Lamb) Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1739
* Added EmpathyFile and EmpathyTpFile objects. (Jonny Lamb)Jonny Lamb2008-11-221-0/+1032
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1736