]>
git.0d.be Git - empathy.git/log
Cosimo Cecchi [Sun, 24 May 2009 10:55:08 +0000 (12:55 +0200)]
Use the new API in the call handler
Cosimo Cecchi [Sun, 24 May 2009 10:54:30 +0000 (12:54 +0200)]
Add find_requestable_channel_classes
And remove find_channel_class API.
Cosimo Cecchi [Sat, 23 May 2009 14:39:18 +0000 (16:39 +0200)]
Don't chain up to constructor
Cosimo Cecchi [Sat, 23 May 2009 14:32:42 +0000 (16:32 +0200)]
Add GObject propreties for EmpathyFTHandler
Cosimo Cecchi [Sat, 23 May 2009 14:16:38 +0000 (16:16 +0200)]
Use _constructed instead of _constructor
Cosimo Cecchi [Sat, 23 May 2009 14:09:37 +0000 (16:09 +0200)]
Remove useless member
Cosimo Cecchi [Sat, 23 May 2009 14:08:05 +0000 (16:08 +0200)]
Remove the g_idle sources on destroy
Remove the GSources added with g_idle_add when destroying the
EmpathyDispatcher.
Cosimo Cecchi [Sat, 23 May 2009 13:42:02 +0000 (15:42 +0200)]
Actually see if the connection is ready
Before appending an outstanding request for channel classes, verify
thigns aren't actually ready.
Cosimo Cecchi [Sat, 23 May 2009 13:34:28 +0000 (15:34 +0200)]
Style fixes for *_free() functions
Cosimo Cecchi [Sat, 23 May 2009 13:28:37 +0000 (15:28 +0200)]
Don't use slices for 4096 chunks
Cosimo Cecchi [Wed, 20 May 2009 18:02:03 +0000 (20:02 +0200)]
Properly free memory
Cosimo Cecchi [Wed, 20 May 2009 10:34:23 +0000 (12:34 +0200)]
Clarify a bit the docs about checksumming
Cosimo Cecchi [Tue, 19 May 2009 10:16:39 +0000 (12:16 +0200)]
Clear the remaining time when transfer ends
Also, use empathy_builder_unref_and_keep_widget() on the
EmpathyFTManager toplevel.
Cosimo Cecchi [Mon, 18 May 2009 17:25:41 +0000 (19:25 +0200)]
Add the received files to GtkRecentManager
Cosimo Cecchi [Mon, 18 May 2009 17:21:49 +0000 (19:21 +0200)]
Report the right remaining time in the progress cb
Cosimo Cecchi [Mon, 18 May 2009 16:35:30 +0000 (18:35 +0200)]
Plug a leak
Cosimo Cecchi [Mon, 18 May 2009 15:59:51 +0000 (17:59 +0200)]
Add a comment to make the style checker happy
Cosimo Cecchi [Mon, 18 May 2009 15:53:55 +0000 (17:53 +0200)]
Fix coding style
Cosimo Cecchi [Mon, 18 May 2009 15:44:21 +0000 (17:44 +0200)]
Add some files to POTFILES.in
Cosimo Cecchi [Mon, 18 May 2009 15:31:54 +0000 (17:31 +0200)]
Emit the callback always in an idle
Also, fix some leaks.
Cosimo Cecchi [Mon, 18 May 2009 14:59:19 +0000 (16:59 +0200)]
Use the new function in EmpathyFTHandler
Cosimo Cecchi [Mon, 18 May 2009 14:59:00 +0000 (16:59 +0200)]
Add empathy_dispatcher_find_channel_class_async()
Cosimo Cecchi [Mon, 18 May 2009 12:55:01 +0000 (14:55 +0200)]
Set use_hash according to what the CM returns
Set use_hash according to what the CM returns and not what the user
would like it to be, so that clients won't be confused about whether
they should connect to "hashing-started" after "transfer-done".
Cosimo Cecchi [Mon, 18 May 2009 12:30:08 +0000 (14:30 +0200)]
Use the right macros to pass a gboolean as user_data
Use GPOINTER_TO_INT and GINT_TO_POINTER instead of passing the address,
as that doesn't work.
Cosimo Cecchi [Mon, 18 May 2009 12:17:28 +0000 (14:17 +0200)]
Set the completed message anyway
Set the completed message anyway in the UI, as it's not guaranteed that
the hashing will take place even if use_hash is TRUE
Cosimo Cecchi [Sat, 16 May 2009 15:08:21 +0000 (17:08 +0200)]
Update doc templates
Cosimo Cecchi [Sat, 16 May 2009 15:00:47 +0000 (17:00 +0200)]
Document EmpathyFTHandler
Cosimo Cecchi [Sat, 16 May 2009 14:04:11 +0000 (16:04 +0200)]
Document EmpathyTpFile
Cosimo Cecchi [Sat, 16 May 2009 13:44:12 +0000 (15:44 +0200)]
Remove useless GET_PRIV
Cosimo Cecchi [Sat, 16 May 2009 13:41:20 +0000 (15:41 +0200)]
Remove useless define
Cosimo Cecchi [Sat, 16 May 2009 13:38:45 +0000 (15:38 +0200)]
Use NULL instead of FALSE
Cosimo Cecchi [Sat, 16 May 2009 13:38:26 +0000 (15:38 +0200)]
Document EmpathyFTFactory
Cosimo Cecchi [Sat, 16 May 2009 11:17:16 +0000 (13:17 +0200)]
Remove useless gtk-doc annotations
gtk-doc annotations are useless for files outside of libempathy*
Cosimo Cecchi [Fri, 15 May 2009 18:19:19 +0000 (20:19 +0200)]
Don't claim outgoing channels
Cosimo Cecchi [Fri, 15 May 2009 16:43:15 +0000 (18:43 +0200)]
Add a comment.
Cosimo Cecchi [Fri, 15 May 2009 16:39:38 +0000 (18:39 +0200)]
Move the error declaration in empathy-tp-file.h
Cosimo Cecchi [Fri, 15 May 2009 16:37:58 +0000 (18:37 +0200)]
Unref the EmpathyTpContactFactory
Cosimo Cecchi [Fri, 15 May 2009 16:36:24 +0000 (18:36 +0200)]
Use gchar* instead of char* for allocated retvals
Cosimo Cecchi [Fri, 15 May 2009 16:34:59 +0000 (18:34 +0200)]
Use != NULL for pointer checks.
Cosimo Cecchi [Fri, 15 May 2009 16:28:28 +0000 (18:28 +0200)]
Use g_slice_* instead of g_malloc
Cosimo Cecchi [Fri, 15 May 2009 16:21:37 +0000 (18:21 +0200)]
Use tp_g_value_slice_new_* where possible
Cosimo Cecchi [Fri, 15 May 2009 16:17:57 +0000 (18:17 +0200)]
Unref the EmpathyTpContactFactory
Cosimo Cecchi [Fri, 15 May 2009 16:15:36 +0000 (18:15 +0200)]
Adapt the code to the tp style.
Cosimo Cecchi [Fri, 15 May 2009 14:26:33 +0000 (16:26 +0200)]
Plug a string leak
Cosimo Cecchi [Fri, 15 May 2009 14:21:39 +0000 (16:21 +0200)]
Don't destroy an hashtable owned by DBus
Cosimo Cecchi [Fri, 15 May 2009 13:38:45 +0000 (15:38 +0200)]
Update Python bindings
Cosimo Cecchi [Fri, 15 May 2009 12:50:17 +0000 (14:50 +0200)]
Wait for channel close before closing the socket
So that we can better handle cancellations of the transfer.
Cosimo Cecchi [Fri, 15 May 2009 09:21:23 +0000 (11:21 +0200)]
Add schema for the new preference
Cosimo Cecchi [Fri, 15 May 2009 09:02:45 +0000 (11:02 +0200)]
Don't leak GErrors.
Cosimo Cecchi [Thu, 14 May 2009 22:46:26 +0000 (00:46 +0200)]
Handle construction errors
Handle errors that may arise when constructing the handler from the
factory.
Cosimo Cecchi [Thu, 14 May 2009 17:57:25 +0000 (19:57 +0200)]
Set the right initial value in the UI
Set an initial value for the UI string in case we're not using hash.
Cosimo Cecchi [Thu, 14 May 2009 17:57:17 +0000 (19:57 +0200)]
Add some debug messages
Cosimo Cecchi [Thu, 14 May 2009 17:44:59 +0000 (19:44 +0200)]
Properly handle checksumming in the receiver UI
Cosimo Cecchi [Thu, 14 May 2009 11:04:37 +0000 (13:04 +0200)]
Remove the singleton logic from the manager
Don't use a singleton logic for the FT Manager, but let the manager
itself hold the references according to the state of the toplevel
window.
Cosimo Cecchi [Wed, 13 May 2009 18:25:55 +0000 (20:25 +0200)]
Adjust clear button sensitivity
Set the clear button sensitivity according to the number of
completed/cancelled handlers in the manager.
Cosimo Cecchi [Wed, 13 May 2009 15:35:49 +0000 (17:35 +0200)]
Adapt the manager code
Adapt the manager code to react to the new possible hashing.
Cosimo Cecchi [Wed, 13 May 2009 15:35:25 +0000 (17:35 +0200)]
Add empathy_ft_handler_get_use_hash
This is needed, as the GConf property might change during the transfer.
Cosimo Cecchi [Wed, 13 May 2009 15:34:42 +0000 (17:34 +0200)]
Fix a stupid mistake
Cosimo Cecchi [Wed, 13 May 2009 14:31:43 +0000 (16:31 +0200)]
W.I.P. for hash on receiver side.
Cosimo Cecchi [Wed, 13 May 2009 13:02:16 +0000 (15:02 +0200)]
Add use_hash params for incoming transfers
Add use_hash params for incoming transfers to the FT Factory and
Handler, so that we will use them to check hash for received files.
Cosimo Cecchi [Wed, 13 May 2009 12:46:43 +0000 (14:46 +0200)]
Clarify UI string
Checksum is not always possible.
Cosimo Cecchi [Wed, 6 May 2009 13:04:12 +0000 (15:04 +0200)]
Add a new preference in the UI
Cosimo Cecchi [Wed, 6 May 2009 13:03:46 +0000 (15:03 +0200)]
Add the USE_HASH property in class_init
Cosimo Cecchi [Wed, 6 May 2009 12:59:17 +0000 (14:59 +0200)]
Update the EmpathyFTFactory API
Update the factory API to make hashing request optional.
Cosimo Cecchi [Wed, 6 May 2009 12:51:13 +0000 (14:51 +0200)]
Make checksum optional when sending
Cosimo Cecchi [Tue, 5 May 2009 19:19:38 +0000 (21:19 +0200)]
Cleanup after rebase v2
Cosimo Cecchi [Tue, 5 May 2009 18:10:23 +0000 (20:10 +0200)]
First cleanup after rebase
Cosimo Cecchi [Tue, 5 May 2009 16:28:50 +0000 (18:28 +0200)]
Simplify the hashing code
Simplify the hashing code with the aid of GIOScheduler. This has the
nice side effect that checksum updating is now done in the I/O thread.
Cosimo Cecchi [Tue, 5 May 2009 15:42:23 +0000 (17:42 +0200)]
Ensure the callbacks are only run once
Also ensure that we get no progress callbacks after the transfer has
been cancelled.
Cosimo Cecchi [Tue, 5 May 2009 15:22:14 +0000 (17:22 +0200)]
Add back speed and remaining time
Cosimo Cecchi [Tue, 5 May 2009 13:56:38 +0000 (15:56 +0200)]
Close the handler when rejecting a transfer
Cosimo Cecchi [Tue, 5 May 2009 13:56:08 +0000 (15:56 +0200)]
React to Tp remote errors
Push Tp state change errors to the handler/UI.
Cosimo Cecchi [Tue, 5 May 2009 13:35:02 +0000 (15:35 +0200)]
Remove hashing progress debug message
Cosimo Cecchi [Tue, 5 May 2009 13:02:23 +0000 (15:02 +0200)]
Properly ref/unref the request table
Destroy the request table early, and keep a reference when passing it to
the dispatcher.
Also, don't cancel the nonexistant EmpathyTpFile when stopping hashing.
Cosimo Cecchi [Tue, 5 May 2009 13:01:34 +0000 (15:01 +0200)]
Don't set the status to cancelled when closing
If we are only closing a channel, don't set the EmpathyTpFile status to
cancelled.
Cosimo Cecchi [Mon, 4 May 2009 10:31:14 +0000 (12:31 +0200)]
Handle errors coming from the EmpathyFTFactory
Cosimo Cecchi [Mon, 4 May 2009 10:30:56 +0000 (12:30 +0200)]
Set the overwrite confermation when receiving
Cosimo Cecchi [Mon, 4 May 2009 01:06:28 +0000 (03:06 +0200)]
Unref the EmpathyFTHandlers
Unref EmpathyFTHandler objects after adding them to the manager.
Cosimo Cecchi [Mon, 4 May 2009 01:05:24 +0000 (03:05 +0200)]
Properly emit the TRANSFER_STARTED signal
Emit the TRANSFER_STARTED signal when actually starting the transfer
(after the DBus invocation callback).
Cosimo Cecchi [Mon, 4 May 2009 01:04:42 +0000 (03:04 +0200)]
Don't notify progress for zero bytes
Also, remove useless state property.
Cosimo Cecchi [Mon, 4 May 2009 00:14:43 +0000 (02:14 +0200)]
First implementation of error handling
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.
Cosimo Cecchi [Sun, 3 May 2009 23:50:03 +0000 (01:50 +0200)]
Total FileTransfer draft spec exorcism
Cosimo Cecchi [Sun, 3 May 2009 23:44:24 +0000 (01:44 +0200)]
Rework the logic of cancelling transfers
Rework the logic of cancelling transfers so that the GCancellable object
is not used from an UI frontend, as that would require to duplicate
storage for each EmpathyFTHandler in the manager.
Cosimo Cecchi [Sun, 3 May 2009 23:32:22 +0000 (01:32 +0200)]
Use proper DEBUG() messages
Cosimo Cecchi [Sun, 3 May 2009 23:29:08 +0000 (01:29 +0200)]
Use values from TpFileTransferState
Use values from the TpFileTransferState and
TpFileTransferStateChangeReason enums instead of the Empathy draft
interfaces.
Cosimo Cecchi [Sun, 3 May 2009 23:26:15 +0000 (01:26 +0200)]
Only close the FT operation after the state change
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.
Cosimo Cecchi [Sun, 3 May 2009 17:21:15 +0000 (19:21 +0200)]
Format messages for hashing
Format messages when hashing.
Also, add some debug spew to see when the callbacks are called.
Cosimo Cecchi [Sun, 3 May 2009 17:19:54 +0000 (19:19 +0200)]
Emit the TRANSFER_STARTED signal
Emit the TRANSFER_STARTED signal also when offering.
Cosimo Cecchi [Sun, 3 May 2009 17:18:26 +0000 (19:18 +0200)]
Set the "incoming" property at construct
Set the "incoming" property of EmpathyTpFile when we construct it from
EmpathyDispatchOperation.
Cosimo Cecchi [Sat, 2 May 2009 19:11:20 +0000 (21:11 +0200)]
Sync with changes in master
Sync with the changes in master and port to the stable TP FileTransfer
spec.
Cosimo Cecchi [Sat, 2 May 2009 19:10:38 +0000 (21:10 +0200)]
Add is_completed and is_cancelled API
Add some API to get the state of the handler.
Cosimo Cecchi [Sat, 2 May 2009 19:09:43 +0000 (21:09 +0200)]
Use the proper TP interface instead of emp_cli
Update to use the stable TP interface for FT.
Cosimo Cecchi [Sat, 2 May 2009 13:23:13 +0000 (15:23 +0200)]
Make the whole thing compile
The branch now compiles. Still have to debug and implement error
handling.
Cosimo Cecchi [Thu, 30 Apr 2009 17:50:06 +0000 (19:50 +0200)]
Remove some of the EmpFileTransferState crack
The basic idea is to completely hide the state in EmpathyFTHandler, and
let the clients interact with the signal interface instead of switching
cases for the state.
Cosimo Cecchi [Thu, 30 Apr 2009 17:49:47 +0000 (19:49 +0200)]
Add empathy_ft_handler_get_total_bytes API
Cosimo Cecchi [Thu, 30 Apr 2009 15:57:19 +0000 (17:57 +0200)]
s/ft_manager/manager/ where appropriate
Cosimo Cecchi [Thu, 30 Apr 2009 15:38:27 +0000 (17:38 +0200)]
W.I.P. code for EmpathyFTManager v2
Use GET_PRIV everywhere
Stubs of implementations of the transfer state machine
Cosimo Cecchi [Thu, 30 Apr 2009 15:38:11 +0000 (17:38 +0200)]
Add empathy_ft_handler_get_transferred_bytes API
Cosimo Cecchi [Wed, 29 Apr 2009 15:48:22 +0000 (17:48 +0200)]
First batch of W.I.P. rework of EmpathyFTManager
Cosimo Cecchi [Wed, 29 Apr 2009 15:47:51 +0000 (17:47 +0200)]
Add to the EmpathyFTManager the new handlers.