aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-ft-handler.c
Commit message (Collapse)AuthorAgeFilesLines
* Add use_hash params for incoming transfersCosimo Cecchi2009-06-011-4/+6
| | | | | 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.
* Add the USE_HASH property in class_initCosimo Cecchi2009-06-011-3/+8
|
* Make checksum optional when sendingCosimo Cecchi2009-06-011-5/+19
|
* First cleanup after rebaseCosimo Cecchi2009-06-011-41/+39
|
* Simplify the hashing codeCosimo Cecchi2009-06-011-70/+48
| | | | | 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.
* Ensure the callbacks are only run onceCosimo Cecchi2009-06-011-0/+3
| | | | | Also ensure that we get no progress callbacks after the transfer has been cancelled.
* Add back speed and remaining timeCosimo Cecchi2009-06-011-17/+49
|
* Properly ref/unref the request tableCosimo Cecchi2009-06-011-7/+14
| | | | | | 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.
* Properly emit the TRANSFER_STARTED signalCosimo Cecchi2009-06-011-8/+11
| | | | | Emit the TRANSFER_STARTED signal when actually starting the transfer (after the DBus invocation callback).
* First implementation of error handlingCosimo Cecchi2009-06-011-36/+25
| | | | | | 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-5/+4
|
* Rework the logic of cancelling transfersCosimo Cecchi2009-06-011-3/+16
| | | | | | 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.
* Use proper DEBUG() messagesCosimo Cecchi2009-06-011-8/+8
|
* Only close the FT operation after the state changeCosimo Cecchi2009-06-011-0/+2
| | | | | | | 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.
* Emit the TRANSFER_STARTED signalCosimo Cecchi2009-06-011-0/+3
| | | | Emit the TRANSFER_STARTED signal also when offering.
* Add is_completed and is_cancelled APICosimo Cecchi2009-06-011-12/+52
| | | | Add some API to get the state of the handler.
* Add empathy_ft_handler_get_total_bytes APICosimo Cecchi2009-06-011-4/+16
|
* Add empathy_ft_handler_get_transferred_bytes APICosimo Cecchi2009-06-011-0/+12
|
* Add some useful APIs to EmpathyFTHandlerCosimo Cecchi2009-06-011-2/+77
| | | | | Add some APIs to EmpathyFTHandler useful to get transfer properties. Also, implement an error signal.
* Rethink a bit the logic for an incoming transfer.Cosimo Cecchi2009-06-011-3/+23
| | | | | | | | | | | 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.
* Emit the transfer_started signal as soon as we start an incoming transfer.Cosimo Cecchi2009-06-011-0/+5
|
* Free memory in _finalize inside EmpathyFTHandler.Cosimo Cecchi2009-06-011-0/+20
|
* Make libempathy compile with the new changes.Cosimo Cecchi2009-06-011-2/+1
|
* Modify EmpathyFTHandler to adapt to the changes in EmpathyTpFile API.Cosimo Cecchi2009-06-011-7/+40
|
* Remove the RequestData struct.Cosimo Cecchi2009-06-011-147/+120
|
* W.I.P. for heavy lifting on EmpathyTpFile.Cosimo Cecchi2009-06-011-45/+149
|
* Don't schedule the next read two times when we're finished reading the stream.Cosimo Cecchi2009-06-011-1/+0
|
* Add debug spew.Cosimo Cecchi2009-06-011-0/+19
|
* Add some error handling and keep on adding progress signals.Cosimo Cecchi2009-06-011-13/+62
|
* Fix the build.Cosimo Cecchi2009-06-011-2/+6
|
* Start implementing signals inside EmpathyFTHandler.Cosimo Cecchi2009-06-011-7/+73
|
* Fix the build.Cosimo Cecchi2009-06-011-2/+3
|
* Set more meaningful names for EmpathyFTHandler public methods.Cosimo Cecchi2009-06-011-6/+9
|
* Call the dispatcher to create the Channel after we have built the request.Cosimo Cecchi2009-06-011-6/+73
|
* Implement hashing of the file. Make it compile.Cosimo Cecchi2009-06-011-12/+365
|
* Little cleanup.Cosimo Cecchi2009-06-011-3/+3
|
* Initial commit for EmpathyFTFactory and EmpathyFTHandler.Cosimo Cecchi2009-06-011-0/+216