Commit Graph

117 Commits

Author SHA1 Message Date
Emmanuel Gil Peyrot 289d82fae7 Remove unused imports. 2017-02-08 02:26:20 +00:00
Denis Fomin 4b33634a0b Copyright 2013>2014 2014-01-02 12:33:54 +04:00
Yann Leboulanger d1a6467d82 GObject -> GLib 2013-07-29 21:41:01 +02:00
Yann Leboulanger 7de87c19a0 move ConnectionPEP class to connection_handlers to prevent import loop 2013-04-06 10:14:28 +02:00
Yann Leboulanger 9c8c1de03f update my copyright 2013-04-05 21:35:39 +02:00
Denis Fomin 379fb0c515 Fix PEP 2013-01-06 15:41:26 +04:00
Yann Leboulanger 912f0e921d fix imports and many py3 changements 2013-01-02 13:54:02 +01:00
Yann Leboulanger 8f71d9f219 start porting Gajim to gobject introspection and GTK3 2012-12-23 16:23:43 +01:00
Yann Leboulanger 77775cf0af Gajim now uses python-nbxmpp library instead of embedding it. 2012-12-09 21:37:51 +01:00
Denis Fomin 2384e99900 Make Location information translatable 2012-11-15 14:44:48 +04:00
Denis Fomin f112615aae typo 2012-11-15 14:19:02 +04:00
Denis Fomin 6485517447 coding style. 2012-11-15 14:05:10 +04:00
Yann Leboulanger f832900d2b coding standards 2012-08-22 12:55:57 +02:00
Yann Leboulanger 3a3f99d618 upgrade copyright 2012-01-11 22:20:34 +01:00
Denis Fomin 11efeb8f3d Fix last commit 2010-11-24 19:04:03 +03:00
Yann Leboulanger 352bda2ef5 use NEC to handle PEP / ATOM messages 2010-11-24 11:41:20 +01:00
Yann Leboulanger 35039100ff fix changing account name. Fixes #5891 2010-09-08 22:26:04 +02:00
Yann Leboulanger f919c10742 check that pubsub messages have a Atom namespace before presenting them to the user. Fixes #5757 2010-05-25 09:33:59 +02:00
Yann Leboulanger 2be53c4aac update my copyright to 2010 2010-03-11 16:52:36 +01:00
Éric Araujo fedd7dc8e2 convert tabs to spaces in source code thanks to reindent.py
holy diff batman!
2010-02-08 15:08:40 +01:00
Yann Leboulanger 53a974114a fix some typo in comments 2010-01-25 18:29:57 +01:00
Yann Leboulanger db575a25f6 send pep info only once we are connected. Fixes #5567 2010-01-20 12:23:46 +01:00
Yann Leboulanger 7c2cb2dd93 fix typo in finction name and correctly retract location data 2009-12-07 23:50:29 +01:00
Yann Leboulanger 5e2f1cf770 fix typo in finction name and correctly retract location data 2009-12-07 23:45:37 +01:00
Yann Leboulanger 2a944e5404 ability to get address / location from geoclue and send it via PEP 2009-12-07 23:16:30 +01:00
Yann Leboulanger 7b58e145af fix variable name. Fixes #5492 2009-12-07 19:22:03 +01:00
Yann Leboulanger 07be0727de [Florob] show in roster and message window geolocalisation of a contact. Fixes #5485 2009-12-07 18:32:42 +01:00
Alexander Cherniuk 6bf2246de5 A big portion of doc-string refactoring 2009-11-26 13:58:12 +02:00
Yann Leboulanger 98e27253b6 prevent showing error message when we receive a PEP error message and really ignore it 2009-11-25 16:50:49 +01:00
Stephan Erb fb456b1ee4 Make dependencies of ConnectionPEP explicit.
This means ConnectionPEP now knows the objects on which it calls method. Before, it just assumed that: "it will be subclassed and that the subclass defines a few methods".

Big advantage is that false positives in the pylint report are gone
2009-11-22 22:57:52 +01:00
Stephan Erb 96b9326b0f Move function closer to where it is used.
This makes it easier to reason about its usage.
2009-11-22 22:14:05 +01:00
Stephan Erb 07c008cbaa Remove TODO which was more or less a "might be useful one day" 2009-11-22 22:10:55 +01:00
Stephan Erb a53e906a92 Ignore error <message /> stanzas with event tag.
This prevents dialogs poping up with showing "Service unavailable".
2009-11-22 22:07:48 +01:00
Stephan Erb d6e6a5d62d Do not try to send (and fail) sending PEP via Zeroconf. Fixes #5432. 2009-11-17 23:17:08 +01:00
Stephan Erb 10428555aa Various pep-related cleanups.
Most important change is that pep send/retract functions no reside on the ConnectionPEP object.
2009-11-16 19:31:17 +01:00
Stephan Erb a3ea00f4ea Remove different dicts for tune, activity and mood and from now on only use the common 'pep' dict.
The pep dict contacts the different UserPEP classes.
2009-11-15 23:52:43 +01:00
Stephan Erb aa53988fd1 Similar to update_pep, unify towards draw_pep of the RosterWindow. 2009-11-15 23:23:56 +01:00
Stephan Erb 28161dc33c Apply coding standards. 2009-11-15 22:59:43 +01:00
Stephan Erb 338cb11dcc Unify update_mood, update_tune, update_activity by using a single update_pep(pep_type) method. 2009-11-15 22:54:20 +01:00
Stephan Erb 30191888ba Create asPixbufIcon and asMarkupText functions on the UserActivity class. 2009-11-15 16:52:19 +01:00
Stephan Erb 6c0fb26e58 Use central event_handler in Interface() instead of updating the GUI directly from XMPP callbacks. 2009-11-15 11:11:51 +01:00
Stephan Erb 5f4db2eed9 Unify updating of accounts and contact pep information. Implement and use asMarkupText() for tunes. 2009-11-15 10:55:31 +01:00
Stephan Erb 234a6520dd Removed unused code. 2009-11-15 00:15:31 +01:00
Stephan Erb e41e484855 Proof of concept: Move markup / pixbuf determination logic from the UI to the different PEP classes.
Currently this is only done for UserMood. We can decide later on (if needed), to move the asPixbufIcon and asMarkupText methods to a more appropriate place.

Goal is to remove as much redundant code as possible.
2009-11-15 00:12:15 +01:00
Stephan Erb 088916f4e7 Strip PEP info at the network level.
(Currently it is done at the UI level in many, many different places)
2009-11-14 23:07:22 +01:00
Stephan Erb 3d5e8cc427 Move common pep constructor logic to base class. 2009-11-14 22:47:21 +01:00
Stephan Erb 99e718583a Initial simplification of PEP data extraction by moving the extraction methods to the newly created PEP classess.
If-else-retract complexity is substituted by dictionaries.
2009-11-14 22:31:27 +01:00
Stephan Erb 7c6dc424af Make user_tune a instance method, not a function. 2009-11-14 20:54:42 +01:00
Stephan Erb 85b7b89b49 Create a class for each PEP XEP that we support. Dispatch an event to the Interface() handlers when we have have received a PEP event. 2009-11-14 20:48:33 +01:00
Stephan Erb 30580702d5 Create a ConnectionPEP class and directly register its callback to handle pep events. 2009-11-14 19:56:15 +01:00