aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-ft-handler.c
Commit message (Collapse)AuthorAgeFilesLines
* include telepathy-glib.hGuillaume Desmottes2012-09-171-4/+0
| | | | | tp-glib 1.0 will enforce to only include telepathy-glib.h so best doing it to reduce the delta with the future stable branch.
* libraries and plugins must be using gi18n-lib.hXavier Claessens2012-07-301-1/+1
|
* remove unused tp-contact-factory includesGuillaume Desmottes2012-05-151-1/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=675597
* ft-handler: create EmpathyContact from TpContactGuillaume Desmottes2012-05-081-32/+5
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=675597
* add missing config.h includesGuillaume Desmottes2012-03-071-0/+2
|
* Merge remote-tracking branch 'jonny/ft'Guillaume Desmottes2011-11-291-81/+163
|\ | | | | | | | | Conflicts: libempathy/empathy-tp-file.c
| * ft-handler: start using TpFTChannel instead of EmpathyTpFileJonny Lamb2011-11-091-81/+163
| | | | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* | Use _unref instead of _free _destroy when possible.unrefXavier Claessens2011-11-161-2/+2
|/ | | | | | | | | | | Replace g_(ptr_)array_free (foo, TRUE) and g_hash_table_destroy with respectively g_(ptr_)array_unref (foo) and g_hash_table_unref. I used this command to generate this patch: for f in `find -name "*.c"`; do sed -i $f -re 's/g_ptr_array_free \(([^ ,]+), TRUE\)/g_ptr_array_unref \(\1\)/'; done See Danielle's blog for explanation of possible bug _free can do: http://blogs.gnome.org/danni/2011/11/16/mistakes-with-g_value_set_boxed/
* Use g_cclosure_marshal_generic for all signalsXavier Claessens2011-09-281-8/+7
| | | | No more ugly marshallers \o/
* ft-handler: Use TpFileTransferChannel propertiesGuillaume Desmottes2011-09-271-15/+17
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=658245
* remove empathy_tp_file_is_incoming()Guillaume Desmottes2011-09-271-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=658245
* EmpathyTpFile: inherit from TpFileTransferChannelGuillaume Desmottes2011-09-271-10/+5
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=658245
* pass to proper user action time when requesting an outgoing FTGuillaume Desmottes2011-09-271-3/+23
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=658245
* ft-handler: rely on the factory to prepare TP_CONNECTION_FEATURE_CAPABILITIESGuillaume Desmottes2011-08-191-17/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=656831
* Port all timestamps from time_t to gint64 (#648188)Guillaume Desmottes2011-04-191-2/+2
|
* Revert "-Fix use of include <config.h> to make sure translations work"Guillaume Desmottes2011-04-041-4/+0
| | | | | | This reverts commit f0f99ffaa08240fbb72d7eed198368fd22fe4c47. Sorry, I didn't mean to push that...
* -Fix use of include <config.h> to make sure translations workKjartan Maraas2011-04-041-0/+4
|
* Fix warnings from GCC 4.6 about variables that are set but not used.Kjartan Maraas2011-03-171-3/+0
|
* ft-handler: stop instantiating a EmpathyDispatcherGuillaume Desmottes2011-02-241-10/+0
|
* set FileTransfer.URI on outgoing FTGuillaume Desmottes2011-02-071-0/+5
|
* improve hash mismatch error (#632926)Guillaume Desmottes2010-11-021-2/+1
|
* use tp_asv_* and TP_PROP_*Guillaume Desmottes2010-10-201-47/+23
|
* no more need to iterate twice over the channel classesGuillaume Desmottes2010-10-201-41/+33
|
* empathy-ft-handler: re-implement ↵Guillaume Desmottes2010-10-201-6/+50
| | | | empathy_dispatcher_find_requestable_channel_classes_async using TpCapabilities
* use TP_USER_ACTION_TIME_* (#627165)Guillaume Desmottes2010-08-181-1/+1
|
* stop using Empathy's internal dispatcher to request FT channelGuillaume Desmottes2010-08-111-21/+28
|
* Fix missing entries in switch statementsPhilip Withnall2010-08-051-0/+1
| | | | Added missing default cases and missing enum cases.
* Port to new EmpathyTpContactFactory APIXavier Claessens2010-05-261-7/+3
|
* add timestamp arg to empathy_dispatcher_create_channelSjoerd Simons2010-04-251-1/+2
|
* Add a debug message for when errors are signaledSjoerd Simons2010-02-251-0/+2
|
* hash_job_done: set hash_data->error to NULL when cleaning itGuillaume Desmottes2010-01-071-0/+1
| | | | This avoid to try to clean it at second time in hash_data_free (#606220).
* ft-handler: contact_factory_contact_cb: ref the contactGuillaume Desmottes2009-11-231-1/+1
| | | | | empathy_tp_contact_factory_get_from_handle is not supposed to give a reference to the callback.
* Remove last references to mission-control 4Sjoerd Simons2009-07-161-0/+1
|
* Refuse sending empty or special files (directories, char/block devices, etc.)Frédéric Péters2009-06-171-1/+18
| | | | (GNOME bug 563678)
* Free the cb_data after errors in constructionCosimo Cecchi2009-06-011-6/+10
|
* Use the new API.Cosimo Cecchi2009-06-011-39/+22
|
* Fix trailing whitespaceCosimo Cecchi2009-06-011-1/+1
|
* Use the new API in the handlerCosimo Cecchi2009-06-011-21/+65
|
* Fix trailing whitespacesCosimo Cecchi2009-06-011-3/+3
|
* Remove the use_hash arg and propertyCosimo Cecchi2009-06-011-44/+17
| | | | | | | Remove the use_hash construct arg and property from EmpathyFTHandler and make it clear in the docs how clients are supposed to know whether we are hashing or not. Also, port EmpathyFTFactory to the new API
* Actually check if FT+hash is supportedCosimo Cecchi2009-06-011-40/+74
| | | | | | | | Use the new API to find out if FT+hash is supported before setting the handler as ready. This gives the clients to use empathy_ft_handler_can_hash reliably before calling empahty_ft_handler_start_transfer to know to which signal they should connect.
* Add GObject propreties for EmpathyFTHandlerCosimo Cecchi2009-06-011-1/+109
|
* Remove useless memberCosimo Cecchi2009-06-011-1/+0
|
* Style fixes for *_free() functionsCosimo Cecchi2009-06-011-21/+6
|
* Don't use slices for 4096 chunksCosimo Cecchi2009-06-011-2/+2
|
* Properly free memoryCosimo Cecchi2009-06-011-2/+2
|
* Clarify a bit the docs about checksummingCosimo Cecchi2009-06-011-2/+6
|
* Report the right remaining time in the progress cbCosimo Cecchi2009-06-011-1/+1
|
* Add a comment to make the style checker happyCosimo Cecchi2009-06-011-1/+1
|
* Fix coding styleCosimo Cecchi2009-06-011-13/+13
|
* Use the new function in EmpathyFTHandlerCosimo Cecchi2009-06-011-35/+36
|
* Set use_hash according to what the CM returnsCosimo Cecchi2009-06-011-0/+11
| | | | | | 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".
* Use the right macros to pass a gboolean as user_dataCosimo Cecchi2009-06-011-0/+2
| | | | | Use GPOINTER_TO_INT and GINT_TO_POINTER instead of passing the address, as that doesn't work.
* Document EmpathyFTHandlerCosimo Cecchi2009-06-011-0/+251
|
* Use != NULL for pointer checks.Cosimo Cecchi2009-06-011-7/+7
|
* Use g_slice_* instead of g_mallocCosimo Cecchi2009-06-011-2/+2
|
* Use tp_g_value_slice_new_* where possibleCosimo Cecchi2009-06-011-18/+10
|
* Unref the EmpathyTpContactFactoryCosimo Cecchi2009-06-011-0/+2
|
* Adapt the code to the tp style.Cosimo Cecchi2009-06-011-39/+40
|
* Don't destroy an hashtable owned by DBusCosimo Cecchi2009-06-011-2/+0
|
* Don't leak GErrors.Cosimo Cecchi2009-06-011-1/+3
|
* Handle construction errorsCosimo Cecchi2009-06-011-0/+9
| | | | | Handle errors that may arise when constructing the handler from the factory.
* Add some debug messagesCosimo Cecchi2009-06-011-0/+12
|
* Add empathy_ft_handler_get_use_hashCosimo Cecchi2009-06-011-1/+19
| | | | This is needed, as the GConf property might change during the transfer.
* W.I.P. for hash on receiver side.Cosimo Cecchi2009-06-011-11/+102
|
* 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