aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-dispatcher.c
Commit message (Collapse)AuthorAgeFilesLines
* remove empathy-tube-handler.c and empathy-tube-dispatchGuillaume Desmottes2010-01-191-1/+0
|
* stop dispatching tube channels (#599159)Guillaume Desmottes2010-01-191-1/+0
| | | | Tube applications should use the ChannelDispatcher.
* listen for the "account-validity-changed" so new account are added to the ↵Guillaume Desmottes2010-01-121-0/+35
| | | | dispatcher (#605689)
* store status-changed sig handler in a hash tableGuillaume Desmottes2010-01-121-0/+24
|
* factor out connect_accountGuillaume Desmottes2010-01-121-7/+14
|
* empathy_dispatcher_join_muc: assert than connection_data is not NULLGuillaume Desmottes2010-01-121-0/+1
|
* Don't destroy the request properties, EmpathyDispatcher now owns themDanielle Madeley2009-12-211-0/+13
| | | | | This is not the same as tp-glib semantics (e.g. tp_..._call_create_channel). Add some docs to EmpathyDispatcher to explain this, for the next person.
* We should ensure, not create muc channelsSjoerd Simons2009-11-171-0/+1
|
* dispatcher_init_connection_if_needed: wait that the connection is ready ↵Guillaume Desmottes2009-11-091-11/+32
| | | | before using it (#600713)
* Merge branch 'accountz'Jonny Lamb2009-11-021-27/+53
|\
| * dispatcher: refer to EmpathyHandler bugJonny Lamb2009-10-301-1/+1
| | | | | | | | Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
| * all: log error messages if preparing the account manager failsJonny Lamb2009-10-301-2/+7
| | | | | | | | Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
| * contact-manager, dispatcher: renamed _new_connection_cb to _status_changed_cbJonny Lamb2009-10-251-3/+3
| | | | | | | | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=599169#c2 Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
| * dispatcher: port to new tp-glib account APIJonny Lamb2009-10-241-27/+48
| | | | | | | | Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
* | dispatcher_request_handles_cb: use request_data->dispatcher to get the self ↵Guillaume Desmottes2009-10-261-1/+1
|/ | | | | | | pointer We don't pass a weak pointer to tp_cli_connection_call_request_handles so we can't rely on it (#599612).
* empathy-dispatcher.c: fix shadow declarationsGuillaume Desmottes2009-10-221-123/+122
|
* Unset pending_call explicitly instead of implicitlySjoerd Simons2009-10-201-2/+11
|
* Move destruction of connections from finalize to dispose.Mike Ruprecht2009-10-151-8/+12
| | | | | | | Code can potentially be run between the dispose and finalize methods. This moves the destruction of connections and subsequently outstanding_requests into the dispose function so the request callback can't be fired between unreffing the EmpathyDispatcher and cancelling the pending request.
* Remove the weak_object parameter when requesting channels.Mike Ruprecht2009-10-151-8/+10
| | | | | | | | Use the EmpathyDispatcher pointed to in the DispatcherRequestData instead of the weak_object. Outstanding channel requests were being cancelled in the EmpathyDispatcher's finalize method. This had the potential to double-cancel the requests when the weak_object (EmpathyDispatcher) was unreffed, causing a segmentation fault.
* Cancel outstanding channel requests if connection to the CM is lost.Mike Ruprecht2009-10-141-4/+11
| | | | | | | | | | When the connection to a given channel manager was lost (such as it crashed), any outstanding channel requests were freed, but then the request callback fired with an invalid (already freed) DispatcherRequestData parameter. It subsequently used this invalid data and crashed. This patch cancels all outstanding channel requests when they are freed so the callback isn't called with invalid data. Fixes #598332
* Set the ice-udp capability directly as wellSjoerd Simons2009-09-201-1/+3
|
* Only handle manually text channels.Cosimo Cecchi2009-09-161-0/+6
|
* Dispatch existing channels once we initialize the connection.Cosimo Cecchi2009-09-161-0/+21
|
* Fix long lines.Cosimo Cecchi2009-09-151-6/+8
|
* Always call _ensure_channel for text chats.Cosimo Cecchi2009-09-151-10/+42
| | | | So we can catch opened channels as well, e.g. if we crashed.
* dispatcher_request_failed: check if conn_data is not NULLGuillaume Desmottes2009-09-101-2/+7
| | | | | | | | | | Trace attached on lp #392678 seems to indicate that the priv->connections hash table doesn't have a ConnectionData associated with the connection. A possible explanation could be that this connection has been invalidated before the RequestChannel call is terminated. Check if ConnectionData so Empathy won't crash in such case.
* Fix long lines.Cosimo Cecchi2009-09-011-2/+4
|
* Be sure that FindChannelRequest has a ref to the DispatcherCosimo Cecchi2009-09-011-1/+1
| | | | It has to own a reference, as it will unref when free-ing the struct.
* Don't set empty values for the default EmpathyHandlerCosimo Cecchi2009-09-011-0/+3
| | | | | | | | | This implies the following: - have an empty default handler when the Dispatcher is used directly with the singleton - autogenerate the name for the default handler - set priv->filters in the handler to an empty GPtrArray in this case, as that can't be NULL.
* Always try to use the Requests interface before calling RequestChannelSjoerd Simons2009-09-011-10/+43
|
* Add functions on the dispatcher to add/remove extra handlersSjoerd Simons2009-08-311-0/+70
|
* Add a simple abstraction for implementing handlersSjoerd Simons2009-08-311-120/+95
| | | | | Implement an EmpathyHandler object which can be used to easily add extra Client.Handler heads on D-Bus.
* Ensure that the connection data is setup when handle channelsSjoerd Simons2009-08-241-3/+16
|
* Add a new _ensure_account APISjoerd Simons2009-08-241-1/+1
| | | | | Have one call which only gets the account if it exists and a different one which creates the account on the given path when needed.
* Rename empathy_account_get_connection_for to ↵Sjoerd Simons2009-08-221-1/+2
| | | | empathy_account_get_connection_for_path
* Use new api to get connectionsSjoerd Simons2009-08-211-4/+8
|
* displatcher -> dispatcherDavyd Madeley2009-08-191-2/+2
|
* Fix some coding style issuesSjoerd Simons2009-07-311-1/+0
|
* Chang the API of AccountManager to have the get lookup the account by nameSjoerd Simons2009-07-301-3/+1
| | | | | | | | EmpathyAccountManager used to have a _lookup function that looked up accounts by name and a _get function that lookup up accounts by connection. This is confusing, as looking up an account for a connection is less common rename have the _get_account be the same _lookup (but without returning a ref) and add a _get_account_for_connection function lookup by account
* If the requested property is missing, assume we didn't request itSjoerd Simons2009-07-221-1/+1
| | | | | | MC5 tries to handle channels only signalled by the old NewChannel signal, but the Requested property isn't set in that case. Assume that we didn't request it in that case
* Remove last references to mission-control 4Sjoerd Simons2009-07-161-3/+1
|
* Implement HandledChannels D-Bus propertySjoerd Simons2009-07-161-0/+30
|
* Implement a first minimal version of a Client.HandlerSjoerd Simons2009-07-101-116/+174
|
* Remove useless mission-control includesSjoerd Simons2009-07-061-2/+0
|
* Remove outstanding operations before dispatching themWill Thompson2009-06-091-1/+1
| | | | Fixes #585231
* Document the purpose of outstanding_channelsWill Thompson2009-06-091-1/+10
|
* Coding style fixes.Jonny Lamb2009-06-041-1/+1
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* Update copyright headerCosimo Cecchi2009-06-011-1/+3
|
* Clarify the docsCosimo Cecchi2009-06-011-0/+6
| | | | Clarify the use of find_requestable_channel_classes in the docs.
* Hopefully proper version of _find_requestable_channel_classes ()Cosimo Cecchi2009-06-011-84/+92
|
* Free the list after calling the callbackCosimo Cecchi2009-06-011-0/+3
|
* Update the requestable channel classes APICosimo Cecchi2009-06-011-117/+187
| | | | Make it more complex, according to Sjoerd's comments.
* Fix trailing whitespacesCosimo Cecchi2009-06-011-2/+2
|
* Add find_requestable_channel_classesCosimo Cecchi2009-06-011-7/+142
| | | | And remove find_channel_class API.
* Remove the g_idle sources on destroyCosimo Cecchi2009-06-011-1/+32
| | | | | Remove the GSources added with g_idle_add when destroying the EmpathyDispatcher.
* Actually see if the connection is readyCosimo Cecchi2009-06-011-3/+12
| | | | | Before appending an outstanding request for channel classes, verify thigns aren't actually ready.
* Style fixes for *_free() functionsCosimo Cecchi2009-06-011-2/+1
|
* Fix coding styleCosimo Cecchi2009-06-011-2/+2
|
* Emit the callback always in an idleCosimo Cecchi2009-06-011-25/+36
| | | | Also, fix some leaks.
* Add empathy_dispatcher_find_channel_class_async()Cosimo Cecchi2009-06-011-0/+97
|
* First cleanup after rebaseCosimo Cecchi2009-06-011-1/+1
|
* Remove useless include of empathy-tp-file.hCosimo Cecchi2009-06-011-2/+1
|
* Remove dead code in EmpathyDispatcherCosimo Cecchi2009-06-011-131/+0
|
* W.I.P. for heavy lifting on EmpathyTpFile.Cosimo Cecchi2009-06-011-0/+54
|
* empathy-dispatcher: fix coding styleGuillaume Desmottes2009-05-181-9/+9
|
* Remove g_object_ref from empathy_dispatch_operation_get_tp_connection. Fixes ↵Jonny Lamb2009-04-221-2/+0
| | | | | | #579780 Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* Change EmpathyTpContactFactory API to look more like TpConnection. Add ↵Xavier Claessens2009-04-221-3/+13
| | | | | | function to get only one contact from id/handle.
* Remove dead codeXavier Claessens2009-04-221-3/+0
|
* Remove unused function empathy_dispatcher_call_with_contact().Xavier Claessens2009-04-221-27/+0
|
* EmpathyDispatcher: Use new EmpathyAccountManager API and rebase on ↵Xavier Claessens2009-04-221-196/+79
| | | | TpConnection instead of McAccount
* Free the capabilities array. Fixes bug #577826Xavier Claessens2009-04-031-1/+3
| | | | | | From: Xavier Claessens <xclaesse@gmail.com> svn path=/trunk/; revision=2758
* Handle re-dispatching channels in approving stateSjoerd Simons2009-02-211-3/+13
| | | | | | | | | | when a channel is in approving state and the user does a request which turns out to be satisfied by that channel it automagically gets approved. Correctly cope with this and don't try to start dispatching for it again. Fixes bug Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2524
* Use tp-glib generated code for file transfers rather than extensions.Jonny Lamb2009-02-211-7/+7
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2523
* empathy-dispatcher: deal properly with NULL channel_wrapperGuillaume Desmottes2009-02-171-2/+4
| | | | | | From: Guillaume Desmottes <gdesmott@gnome.org> svn path=/trunk/; revision=2487
* empathy-dispatcher.[ch]: Several misc. code style fixes.Jonny Lamb2009-02-171-5/+12
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2475
* empathy-dispatcher.c: Check arguments of non-static functions.Jonny Lamb2009-02-171-0/+18
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2474
* Fix type punned pointers warningsOlivier Crête2009-02-121-1/+1
| | | | | | | | | Remove senseless (void **) From: Olivier Crête <olivier.crete@collabora.co.uk> Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2440
* Add functionality to call CreateChannels and look up (simple) channel classesSjoerd Simons2009-02-031-11/+148
| | | | | | Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2386
* Use g_list_prepend instead of g_list_append.Jonny Lamb2009-01-311-2/+2
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2307
* Allow the dispatcher to be freed once a request is finished.Jonny Lamb2009-01-311-2/+35
| | | | | | | | | | | | | Previously, if there was no ref to the dispatcher, it would be freed before the request could be satisfied. By keeping a ref in the DispatcherRequestData, it is freed at the right time. This also disconnects the signal handler from all channels and connections when freeing the dispatcher as the "invalidated" signal callback can be called after the dispatcher has been freed. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2306
* EmpathyDispatcher: Handle File channels that we didn't request.Jonny Lamb2009-01-171-4/+5
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2237
* empathy_mission_control_new -> dup_singleton.Xavier Claessens2009-01-161-1/+1
| | | | svn path=/trunk/; revision=2233
* EmpathyDispatcher: make style somewhat more consistent.Jonny Lamb2009-01-161-119/+171
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2232
* When sending files, make sure the connection is ready before making sure the ↵Jonny Lamb2009-01-151-3/+21
| | | | | | | | contact is ready. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2231
* Remove useless include of empathy-tp-group.hXavier Claessens2009-01-131-1/+0
| | | | svn path=/trunk/; revision=2226
* mission_control_get_tpconnection returns a new ref, don't forget to unref ↵Xavier Claessens2009-01-101-0/+2
| | | | | | the connection. svn path=/trunk/; revision=2216
* Add a FIXME telling that there is a leak, not sure how to plug it, that code ↵Xavier Claessens2009-01-101-0/+1
| | | | | | will be removed soon anyway. svn path=/trunk/; revision=2215
* Use tp_channel_borrow_connection instead of g_object_get. This fix a leak.Xavier Claessens2009-01-101-1/+1
| | | | svn path=/trunk/; revision=2214
* Fix some errors made when rebasing on masterXavier Claessens2009-01-101-1/+1
| | | | svn path=/trunk/; revision=2211
* Remove dead codeXavier Claessens2009-01-101-9/+0
| | | | svn path=/trunk/; revision=2210
* Ignore requested channels we didn't request except for text channels, also ↵Sjoerd Simons2009-01-101-2/+31
| | | | | | | | ignore deprecated channels types and channels for which it doesn't make sense to handle them unless they were requested Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2203
* Port to the new empathy_call_when_ready apiSjoerd Simons2009-01-101-10/+29
| | | | | | Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2193
* Make the dispatch operation _get_ functions not return a refSjoerd Simons2009-01-101-2/+2
| | | | | | Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2188
* Initialise the chatroom manager from empathy itselfSjoerd Simons2009-01-101-7/+1
| | | | | | Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2186
* Convert EmpathyChatroomManager to the new singleton conventionSjoerd Simons2009-01-101-1/+1
| | | | | | Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2185
* Move the dispatcher to the new singleton policySjoerd Simons2009-01-101-14/+31
| | | | | | Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2181
* Don't initialise variables by calling functions when declaring themSjoerd Simons2009-01-101-11/+23
| | | | | | Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2173
* Remove dead codeSjoerd Simons2009-01-101-588/+0
| | | | | | Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2168
* Add code to request a streamed media channelSjoerd Simons2009-01-101-15/+30
| | | | | | Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2164
* Let a EmpathyChatroomManager observe the dispatcherSjoerd Simons2009-01-101-0/+2
| | | | | | Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2149
* Add request muc channels to the dispatcherSjoerd Simons2009-01-101-6/+71
| | | | | | Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2143
* Add support for dispatching file transfersSjoerd Simons2009-01-101-24/+138
| | | | | | Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2135
* Add an optional properties hash to the RequestData structSjoerd Simons2009-01-101-4/+9
| | | | | | Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2133
* Start reworking the dispatcherSjoerd Simons2009-01-101-339/+876
| | | | | | | | | | | Rework the channel dispatche so it's model is somewhat similar to the ChannelDispatcher in the telepathy-spec. Which allows for a much cleaner and extensible implementation containg no ugly hacks. Currently it's only able to do Text Channels and a lot of the other functionality is temporary disabled Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2130
* use tabs because everyone love tabsXavier Claessens2009-01-091-5/+5
| | | | svn path=/trunk/; revision=2125
* dispatcher_tubes_new_tube_cb: add some tube handling debug messagesXavier Claessens2009-01-091-0/+6
| | | | svn path=/trunk/; revision=2124
* Port EmpathyContactFactory to the new singleton policy.Xavier Claessens2009-01-091-4/+4
| | | | svn path=/trunk/; revision=2113
* Use new singleton policy for EmpathyAccountManager.Xavier Claessens2009-01-071-1/+1
| | | | svn path=/trunk/; revision=2074
* Port EmpathyDispatcher to the new API.Xavier Claessens2009-01-071-18/+21
| | | | svn path=/trunk/; revision=2040
* Use gi18n-lib.h instead of gi18n.h for libraries.Xavier Claessens2008-12-121-1/+1
| | | | svn path=/trunk/; revision=1967
* Use G_GINT_FORMAT for printinf a goffset. Fixes bug #562873.Xavier Claessens2008-12-031-1/+1
| | | | svn path=/trunk/; revision=1944
* Little fix for previous commit.Xavier Claessens2008-11-301-1/+1
| | | | svn path=/trunk/; revision=1927
* Fix a bug for the compilation of empathy-dispatcher.c. Fixes bug #562588 ↵Xavier Claessens2008-11-301-1/+1
| | | | | | (Stephane Wirtel). svn path=/trunk/; revision=1926
* dispatcher_connection_new_channel_cb: set the room of the newly created ↵Xavier Claessens2008-11-241-0/+1
| | | | | | chatroom. Fixes bug #560387 (Guillaume Desmottes). svn path=/trunk/; revision=1918
* Remove empathy_tp_file_keep_alive hack and connect to "notify::state" in ↵Xavier Claessens2008-11-221-2/+18
| | | | | | file_channel_create_cb() to unref the object when the FT is done. svn path=/trunk/; revision=1913
* Fix ref counting of tp_file, make it singleton per channel, and add a ↵Xavier Claessens2008-11-221-3/+2
| | | | | | _keep_alive method that adds a tmp ref until the transfer finishes. svn path=/trunk/; revision=1904
* Add a FIXME about the tp_file being leakedXavier Claessens2008-11-221-0/+3
| | | | svn path=/trunk/; revision=1900
* empathy_tp_file_accept/offer takes the GFile in param and return a GError if ↵Xavier Claessens2008-11-221-2/+1
| | | | | | the file can't be opened. svn path=/trunk/; revision=1881
* Cleanup the coding style. If we can't get info about the GFile we abord the FT.Xavier Claessens2008-11-221-80/+79
| | | | svn path=/trunk/; revision=1875
* Set the Date property when requesting a FT channelXavier Claessens2008-11-221-2/+10
| | | | svn path=/trunk/; revision=1845
* use Requestotron to request the FT channelXavier Claessens2008-11-221-46/+64
| | | | svn path=/trunk/; revision=1844
* fix FT client side code as the generated code changedXavier Claessens2008-11-221-5/+5
| | | | svn path=/trunk/; revision=1843
* Use _call_request_channel instead of _run_request_channel. (Jonny Lamb)Jonny Lamb2008-11-221-51/+71
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1839
* Don't expose streams in EmpathyTpFile, but use the GFile. (Jonny Lamb)Jonny Lamb2008-11-221-3/+1
| | | | | | 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-0/+99
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1835
* Removed file transfer handling code from empathy dispatcher. (Jonny Lamb)Jonny Lamb2008-11-221-11/+0
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1750
* Added start of handling new incoming file channels. (Jonny Lamb)Jonny Lamb2008-11-221-0/+11
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1742
* add the file path as arg to empathy_chatroom_manager_newXavier Claessens2008-10-131-1/+1
| | | | svn path=/trunk/; revision=1542
* dispatcher: store a ref on the ChatroomManagerXavier Claessens2008-10-131-21/+56
| | | | svn path=/trunk/; revision=1538
* rename chatroom_invalidated_cb to dispatcher_chatroom_invalidated_cbXavier Claessens2008-10-131-6/+6
| | | | svn path=/trunk/; revision=1537
* empathy-dispatcher: use new API of EmpathyChatRoomXavier Claessens2008-10-131-1/+2
| | | | svn path=/trunk/; revision=1536
* add joined room to EmpathyChatroomManager. Fixes bug #542176 (Guillaume ↵Xavier Claessens2008-10-131-0/+75
| | | | | | Desmottes). svn path=/trunk/; revision=1535
* Improve dispatcher. Fixes bug #465928.Xavier Claessens2008-05-181-47/+184
| | | | svn path=/trunk/; revision=1108
* Move non-gtk parts of EmpathyFilter to EmpathyDispatcher in libempathy, gtk ↵Xavier Claessens2008-05-091-0/+681
parts are now in EmpathyStatusIcon svn path=/trunk/; revision=1093