Yann Leboulanger
4671f62d2f
fix ConnectionZeroconf initialization
2009-11-18 11:16:15 +01:00
Yann Leboulanger
86b39a72c6
fix http message parsing, it may contain \n\n!
2009-11-18 11:12:06 +01:00
Yann Leboulanger
88f3104c4e
refactor normal and zeroconf Connection objects with a CommonConnection class
2009-11-18 11:06:09 +01:00
Yann Leboulanger
960e402cf0
typo in a comment
2009-11-18 11:04:05 +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
Yann Leboulanger
ff551cd75d
make some strings translatable in RIE dialog
2009-11-16 20:56:51 +01:00
Stephan Erb
5c32304740
Merge PEP refactorings back to the default branch.
2009-11-16 20:05:09 +01:00
Stephan Erb
8b3a82ff12
Merge changes from default branch into refactoring branch
2009-11-16 19:53:43 +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
Yann Leboulanger
1c28dbfae9
properly decode string in history manager. Fixes #5430
2009-11-16 16:42:40 +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
4c03c1ab85
Remove duplicated Icon determination logic used when drawing accounts.
2009-11-15 22:41:17 +01:00
Thibaut GIRKA
b1173a2e87
Fix a regression introduced by my last patch
2009-11-15 21:21:10 +01:00
Thibaut GIRKA
b2c5810869
Refactorize a bit jingle.py and split it into different files.
...
There is still room for improvement, but it should be better.
2009-11-15 20:47:06 +01:00
Stephan Erb
3b15d70782
Unify PEP cell_data_functions.
2009-11-15 17:11:06 +01:00
Stephan Erb
b7c7beafd9
Unify the PEP drawing methods in the RosterWindow.
2009-11-15 17:00:39 +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
Stephan Erb
ac5d0f24da
Fix error in the documentation of our xmpp dispatcher fork.
...
Raise NodeProcessed if the stanza should NOT be handled by other user handlers.
2009-11-14 19:54:33 +01:00
Thibaut GIRKA
e5062f77ea
[Jingle] User can send DTMF tones using the /dtmf command
2009-11-13 22:58:02 +01:00
Yann Leboulanger
44ab50d080
blacklist jingle in caps. TYhis mean that if clientr don't support caps, we assume it doesn't support jingle
2009-11-13 20:01:44 +01:00
Yann Leboulanger
1ee2e72a02
fix renaming an account
2009-11-13 19:22:36 +01:00
Yann Leboulanger
c7964238d4
update correctly version value. Fixes #5424 , #5425
2009-11-13 19:08:56 +01:00
Stephan Erb
01553e53c2
Merge changes from default branch into refactoring branch
2009-11-13 11:55:48 +01:00
Stephan Erb
3696e5296d
Merge local changes.
2009-11-13 08:58:00 +01:00
Stephan Erb
36fb5def4b
Shrink public interface of the MetacontactManager.
2009-11-12 22:58:45 +01:00
Yann Leboulanger
45533ae134
Test body received in several part
2009-11-12 22:25:00 +01:00
Stephan Erb
ee5eb8b546
Try to handle incomplete HTTP. See #5401 . Please test.
...
Approach: Keep filling the receive buffer until we have found enough data to extract the first HTTP header and body
2009-11-12 21:23:10 +01:00
Stephan Erb
641947719f
Merge changes from refactoring branch back to default
2009-11-11 23:38:17 +01:00
Stephan Erb
022003239d
Merge changes from default branch into refactoring branch
...
Hg: changed data/pixmaps/mic_active.png
2009-11-11 23:37:46 +01:00
Stephan Erb
af3af5bec8
Remove caps which have not been seen for three months from the db.
...
Thanks Asterix for the initial version of this patch!
2009-11-11 23:14:51 +01:00
Stephan Erb
8203211e74
Inject account object instead of account string into contact instances.
...
Each contact has now access to the account object instead of the account string.
2009-11-11 21:38:39 +01:00
Stephan Erb
ae9376ff63
Split the 'account sensitive' parts of the Contacts class and move them to an intermediate Contacts_New class.
...
The Contact class remains the public interface for contact handling. This is only a single step of a longer refactoring to empower the Account class.
2009-11-10 22:56:10 +01:00
red-agent
f457497bd1
Fixed the /audio and /video commands
2009-11-10 23:33:39 +02:00
red-agent
8a464786f4
Added /audio /video commands
2009-11-10 23:06:59 +02:00
Yann Leboulanger
e617b134b2
Alt-a -> Alt-d to open advanced action menu in (group)chat control. Fixes #5387
2009-11-10 21:50:11 +01:00
Stephan Erb
b4285302db
Make the GC_Contacts class 'account insensitive'. Instead, create an Account class which holds a GC_Contacts object.
...
The API has been preserved. For now the old Contacts() API has not been changed.
2009-11-10 21:08:25 +01:00
Stephan Erb
3ddc5ce78e
Use implicit delegation with __getattr__ instead of explicit delegation via method calls
2009-11-10 19:26:17 +01:00