]> git.0d.be Git - empathy.git/log
empathy.git
14 years agoUnref the EmpathyTpContactFactory
Cosimo Cecchi [Fri, 15 May 2009 16:37:58 +0000 (18:37 +0200)]
Unref the EmpathyTpContactFactory

14 years agoUse gchar* instead of char* for allocated retvals
Cosimo Cecchi [Fri, 15 May 2009 16:36:24 +0000 (18:36 +0200)]
Use gchar* instead of char* for allocated retvals

14 years agoUse != NULL for pointer checks.
Cosimo Cecchi [Fri, 15 May 2009 16:34:59 +0000 (18:34 +0200)]
Use != NULL for pointer checks.

14 years agoUse g_slice_* instead of g_malloc
Cosimo Cecchi [Fri, 15 May 2009 16:28:28 +0000 (18:28 +0200)]
Use g_slice_* instead of g_malloc

14 years agoUse tp_g_value_slice_new_* where possible
Cosimo Cecchi [Fri, 15 May 2009 16:21:37 +0000 (18:21 +0200)]
Use tp_g_value_slice_new_* where possible

14 years agoUnref the EmpathyTpContactFactory
Cosimo Cecchi [Fri, 15 May 2009 16:17:57 +0000 (18:17 +0200)]
Unref the EmpathyTpContactFactory

14 years agoAdapt the code to the tp style.
Cosimo Cecchi [Fri, 15 May 2009 16:15:36 +0000 (18:15 +0200)]
Adapt the code to the tp style.

14 years agoPlug a string leak
Cosimo Cecchi [Fri, 15 May 2009 14:26:33 +0000 (16:26 +0200)]
Plug a string leak

14 years agoDon't destroy an hashtable owned by DBus
Cosimo Cecchi [Fri, 15 May 2009 14:21:39 +0000 (16:21 +0200)]
Don't destroy an hashtable owned by DBus

14 years agoUpdate Python bindings
Cosimo Cecchi [Fri, 15 May 2009 13:38:45 +0000 (15:38 +0200)]
Update Python bindings

14 years agoWait for channel close before closing the socket
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.

14 years agoAdd schema for the new preference
Cosimo Cecchi [Fri, 15 May 2009 09:21:23 +0000 (11:21 +0200)]
Add schema for the new preference

14 years agoDon't leak GErrors.
Cosimo Cecchi [Fri, 15 May 2009 09:02:45 +0000 (11:02 +0200)]
Don't leak GErrors.

14 years agoHandle construction errors
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.

14 years agoSet the right initial value in the UI
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.

14 years agoAdd some debug messages
Cosimo Cecchi [Thu, 14 May 2009 17:57:17 +0000 (19:57 +0200)]
Add some debug messages

14 years agoProperly handle checksumming in the receiver UI
Cosimo Cecchi [Thu, 14 May 2009 17:44:59 +0000 (19:44 +0200)]
Properly handle checksumming in the receiver UI

14 years agoRemove the singleton logic from the manager
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.

14 years agoAdjust clear button sensitivity
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.

14 years agoAdapt the manager code
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.

14 years agoAdd empathy_ft_handler_get_use_hash
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.

14 years agoFix a stupid mistake
Cosimo Cecchi [Wed, 13 May 2009 15:34:42 +0000 (17:34 +0200)]
Fix a stupid mistake

14 years agoW.I.P. for hash on receiver side.
Cosimo Cecchi [Wed, 13 May 2009 14:31:43 +0000 (16:31 +0200)]
W.I.P. for hash on receiver side.

14 years agoAdd use_hash params for incoming transfers
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.

14 years agoClarify UI string
Cosimo Cecchi [Wed, 13 May 2009 12:46:43 +0000 (14:46 +0200)]
Clarify UI string

Checksum is not always possible.

14 years agoAdd a new preference in the UI
Cosimo Cecchi [Wed, 6 May 2009 13:04:12 +0000 (15:04 +0200)]
Add a new preference in the UI

14 years agoAdd the USE_HASH property in class_init
Cosimo Cecchi [Wed, 6 May 2009 13:03:46 +0000 (15:03 +0200)]
Add the USE_HASH property in class_init

14 years agoUpdate the EmpathyFTFactory API
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.

14 years agoMake checksum optional when sending
Cosimo Cecchi [Wed, 6 May 2009 12:51:13 +0000 (14:51 +0200)]
Make checksum optional when sending

14 years agoCleanup after rebase v2
Cosimo Cecchi [Tue, 5 May 2009 19:19:38 +0000 (21:19 +0200)]
Cleanup after rebase v2

14 years agoFirst cleanup after rebase
Cosimo Cecchi [Tue, 5 May 2009 18:10:23 +0000 (20:10 +0200)]
First cleanup after rebase

14 years agoSimplify the hashing code
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.

14 years agoEnsure the callbacks are only run once
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.

14 years agoAdd back speed and remaining time
Cosimo Cecchi [Tue, 5 May 2009 15:22:14 +0000 (17:22 +0200)]
Add back speed and remaining time

14 years agoClose the handler when rejecting a transfer
Cosimo Cecchi [Tue, 5 May 2009 13:56:38 +0000 (15:56 +0200)]
Close the handler when rejecting a transfer

14 years agoReact to Tp remote errors
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.

14 years agoRemove hashing progress debug message
Cosimo Cecchi [Tue, 5 May 2009 13:35:02 +0000 (15:35 +0200)]
Remove hashing progress debug message

14 years agoProperly ref/unref the request table
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.

14 years agoDon't set the status to cancelled when closing
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.

14 years agoHandle errors coming from the EmpathyFTFactory
Cosimo Cecchi [Mon, 4 May 2009 10:31:14 +0000 (12:31 +0200)]
Handle errors coming from the EmpathyFTFactory

14 years agoSet the overwrite confermation when receiving
Cosimo Cecchi [Mon, 4 May 2009 10:30:56 +0000 (12:30 +0200)]
Set the overwrite confermation when receiving

14 years agoUnref the EmpathyFTHandlers
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.

14 years agoProperly emit the TRANSFER_STARTED signal
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).

14 years agoDon't notify progress for zero bytes
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.

14 years agoFirst implementation of error handling
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.

14 years agoTotal FileTransfer draft spec exorcism
Cosimo Cecchi [Sun, 3 May 2009 23:50:03 +0000 (01:50 +0200)]
Total FileTransfer draft spec exorcism

14 years agoRework the logic of cancelling transfers
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.

14 years agoUse proper DEBUG() messages
Cosimo Cecchi [Sun, 3 May 2009 23:32:22 +0000 (01:32 +0200)]
Use proper DEBUG() messages

14 years agoUse values from TpFileTransferState
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.

14 years agoOnly close the FT operation after the state change
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.

14 years agoFormat messages for hashing
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.

14 years agoEmit the TRANSFER_STARTED signal
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.

14 years agoSet the "incoming" property at construct
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.

14 years agoSync with changes in master
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.

14 years agoAdd is_completed and is_cancelled API
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.

14 years agoUse the proper TP interface instead of emp_cli
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.

14 years agoMake the whole thing compile
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.

14 years agoRemove some of the EmpFileTransferState crack
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.

14 years agoAdd empathy_ft_handler_get_total_bytes API
Cosimo Cecchi [Thu, 30 Apr 2009 17:49:47 +0000 (19:49 +0200)]
Add empathy_ft_handler_get_total_bytes API

14 years agos/ft_manager/manager/ where appropriate
Cosimo Cecchi [Thu, 30 Apr 2009 15:57:19 +0000 (17:57 +0200)]
s/ft_manager/manager/ where appropriate

14 years agoW.I.P. code for EmpathyFTManager v2
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

14 years agoAdd empathy_ft_handler_get_transferred_bytes API
Cosimo Cecchi [Thu, 30 Apr 2009 15:38:11 +0000 (17:38 +0200)]
Add empathy_ft_handler_get_transferred_bytes API

14 years agoFirst batch of W.I.P. rework of EmpathyFTManager
Cosimo Cecchi [Wed, 29 Apr 2009 15:48:22 +0000 (17:48 +0200)]
First batch of W.I.P. rework of EmpathyFTManager

14 years agoAdd to the EmpathyFTManager the new handlers.
Cosimo Cecchi [Wed, 29 Apr 2009 15:47:51 +0000 (17:47 +0200)]
Add to the EmpathyFTManager the new handlers.

14 years agoAdd some useful APIs to EmpathyFTHandler
Cosimo Cecchi [Wed, 29 Apr 2009 15:46:31 +0000 (17:46 +0200)]
Add some useful APIs to EmpathyFTHandler

Add some APIs to EmpathyFTHandler useful to get transfer properties.
Also, implement an error signal.

14 years agoFix indentation of function prototype
Cosimo Cecchi [Wed, 29 Apr 2009 15:45:48 +0000 (17:45 +0200)]
Fix indentation of function prototype

14 years agoRemove useless include of empathy-tp-file.h
Cosimo Cecchi [Wed, 29 Apr 2009 15:45:11 +0000 (17:45 +0200)]
Remove useless include of empathy-tp-file.h

14 years agoRemove dead code in EmpathyDispatcher
Cosimo Cecchi [Wed, 18 Feb 2009 15:47:16 +0000 (16:47 +0100)]
Remove dead code in EmpathyDispatcher

14 years agoRethink a bit the logic for an incoming transfer.
Cosimo Cecchi [Wed, 18 Feb 2009 15:41:12 +0000 (16:41 +0100)]
Rethink a bit the logic for an incoming transfer.

Now, a client should have to do the following, in order to receive a file transfer:
- let the EmpathyFTFactory claim the EmpathyDispatchOperation
- the factory will emit "new-incoming-transfer" when the handler is filled with
  the relevant properties
- now you can choose a destination file, and then you should call _set_destination
  on EmpathyFTFactory passing the handler.
- the factory will emit "new-ft-handler" as you're now ready to start the actual
  transfer.

14 years agoUse the new API to send a file with the file chooser.
Cosimo Cecchi [Wed, 18 Feb 2009 11:16:11 +0000 (12:16 +0100)]
Use the new API to send a file with the file chooser.

14 years agoEmit the transfer_started signal as soon as we start an incoming transfer.
Cosimo Cecchi [Wed, 18 Feb 2009 10:49:02 +0000 (11:49 +0100)]
Emit the transfer_started signal as soon as we start an incoming transfer.

14 years agoFree memory in _finalize inside EmpathyFTHandler.
Cosimo Cecchi [Wed, 18 Feb 2009 10:45:38 +0000 (11:45 +0100)]
Free memory in _finalize inside EmpathyFTHandler.

14 years agoWe don't need dispose, finalize and private fields in EmpathyFTFactory (yet?).
Cosimo Cecchi [Wed, 18 Feb 2009 10:41:46 +0000 (11:41 +0100)]
We don't need dispose, finalize and private fields in EmpathyFTFactory (yet?).

14 years agoCleanup in EmpathyTpFile style.
Cosimo Cecchi [Wed, 18 Feb 2009 10:39:49 +0000 (11:39 +0100)]
Cleanup in EmpathyTpFile style.

14 years agoMake libempathy compile with the new changes.
Cosimo Cecchi [Tue, 17 Feb 2009 19:07:06 +0000 (20:07 +0100)]
Make libempathy compile with the new changes.

14 years agoModify EmpathyFTHandler to adapt to the changes in EmpathyTpFile API.
Cosimo Cecchi [Tue, 17 Feb 2009 18:48:01 +0000 (19:48 +0100)]
Modify EmpathyFTHandler to adapt to the changes in EmpathyTpFile API.

14 years agoRemove the RequestData struct.
Cosimo Cecchi [Tue, 17 Feb 2009 13:07:39 +0000 (14:07 +0100)]
Remove the RequestData struct.

14 years agoW.I.P. for heavy lifting on EmpathyTpFile.
Cosimo Cecchi [Tue, 17 Feb 2009 11:03:58 +0000 (12:03 +0100)]
W.I.P. for heavy lifting on EmpathyTpFile.

14 years agoDon't schedule the next read two times when we're finished reading the stream.
Cosimo Cecchi [Mon, 9 Feb 2009 17:04:50 +0000 (18:04 +0100)]
Don't schedule the next read two times when we're finished reading the stream.

14 years agoAdd debug spew.
Cosimo Cecchi [Mon, 9 Feb 2009 16:32:47 +0000 (17:32 +0100)]
Add debug spew.

14 years agoAdd some error handling and keep on adding progress signals.
Cosimo Cecchi [Mon, 9 Feb 2009 15:14:08 +0000 (16:14 +0100)]
Add some error handling and keep on adding progress signals.

14 years agoFix the build.
Cosimo Cecchi [Mon, 9 Feb 2009 14:22:08 +0000 (15:22 +0100)]
Fix the build.

14 years agoStart implementing signals inside EmpathyFTHandler.
Cosimo Cecchi [Mon, 9 Feb 2009 09:20:25 +0000 (10:20 +0100)]
Start implementing signals inside EmpathyFTHandler.

14 years agoImplement empathy_ft_factory_claim_channel and make naming uniform.
Cosimo Cecchi [Thu, 5 Feb 2009 14:26:08 +0000 (15:26 +0100)]
Implement empathy_ft_factory_claim_channel and make naming uniform.

14 years agoFix the build.
Cosimo Cecchi [Thu, 5 Feb 2009 14:19:00 +0000 (15:19 +0100)]
Fix the build.

14 years agoSet more meaningful names for EmpathyFTHandler public methods.
Cosimo Cecchi [Thu, 5 Feb 2009 14:16:41 +0000 (15:16 +0100)]
Set more meaningful names for EmpathyFTHandler public methods.

14 years agoCall the dispatcher to create the Channel after we have built the request.
Cosimo Cecchi [Thu, 5 Feb 2009 14:00:16 +0000 (15:00 +0100)]
Call the dispatcher to create the Channel after we have built the request.

14 years agoImplement hashing of the file. Make it compile.
Cosimo Cecchi [Thu, 5 Feb 2009 11:24:47 +0000 (12:24 +0100)]
Implement hashing of the file. Make it compile.

14 years agoLittle cleanup.
Cosimo Cecchi [Thu, 5 Feb 2009 00:25:48 +0000 (01:25 +0100)]
Little cleanup.

14 years agoInitial commit for EmpathyFTFactory and EmpathyFTHandler.
Cosimo Cecchi [Wed, 4 Feb 2009 19:06:30 +0000 (20:06 +0100)]
Initial commit for EmpathyFTFactory and EmpathyFTHandler.

14 years agoOnly remove the address fields and position fields instead of all
Pierre-Luc Beaudoin [Mon, 1 Jun 2009 15:10:23 +0000 (11:10 -0400)]
Only remove the address fields and position fields instead of all

14 years agoRemove unused var
Pierre-Luc Beaudoin [Mon, 1 Jun 2009 14:43:08 +0000 (10:43 -0400)]
Remove unused var

14 years agoGet rid of McAccount everywhere
Pierre-Luc Beaudoin [Mon, 1 Jun 2009 14:39:26 +0000 (10:39 -0400)]
Get rid of McAccount everywhere

Shouldn't have to care about accounts, just connections.

14 years agoGet rid of Mission Control as EmpathyAccountManager does all that too
Pierre-Luc Beaudoin [Sun, 31 May 2009 19:39:15 +0000 (15:39 -0400)]
Get rid of Mission Control as EmpathyAccountManager does all that too

14 years agoFix inconsistency in preferences and code
Pierre-Luc Beaudoin [Sun, 31 May 2009 16:21:22 +0000 (12:21 -0400)]
Fix inconsistency in preferences and code

14 years agoDon't set priv on a separate line
Pierre-Luc Beaudoin [Sun, 31 May 2009 16:12:34 +0000 (12:12 -0400)]
Don't set priv on a separate line

14 years agoUse tp_g_value_slice_new_double
Pierre-Luc Beaudoin [Sun, 31 May 2009 16:10:02 +0000 (12:10 -0400)]
Use tp_g_value_slice_new_double

tp_asv_* cannot be used as tp_asv does not copy the keys

14 years agoReorder functions to get rid of the function declarations
Pierre-Luc Beaudoin [Sun, 31 May 2009 16:03:36 +0000 (12:03 -0400)]
Reorder functions to get rid of the function declarations

14 years agoReimplement the singleton in the constructor
Pierre-Luc Beaudoin [Sun, 31 May 2009 15:53:18 +0000 (11:53 -0400)]
Reimplement the singleton in the constructor

14 years agoFix errors found by make check
Pierre-Luc Beaudoin [Fri, 29 May 2009 20:09:41 +0000 (16:09 -0400)]
Fix errors found by make check