Commit graph libervia-backend/frontends
Author SHA1 Message Date
Goffi
542e1d4753 quick frontends (contact list): added self.whoami 2015-02-24 18:20:34 +01:00
Goffi
8f5b116211 quick_frontends, primitivus (contact list): added nick observer + implemented onNickUpdate 2015-02-24 17:14:10 +01:00
Goffi
d1dad92f8c quick frontends, primitivus: fixed listener calls (kwargs where forgotten) + fixed presence listener + renamed updatePresence to onPresenceUpdate for consistency with oter listeners 2015-02-24 16:52:44 +01:00
Goffi
3d568ab9c8 quick frontends: fixed use of profile for listeners 2015-02-24 14:40:19 +01:00
Goffi
27c26487c3 merged souliane changes 2015-02-23 18:08:22 +01:00
Goffi
288aaca7e8 primitivus, quick_frontends: moved newMessage signal handler to quick_frontend 2015-02-23 18:04:25 +01:00
Goffi
4c3525a5f1 quick frontends(contact list): added a getFullJid method to add resource to a bare jid 2015-02-23 18:04:25 +01:00
Goffi
e541547e23 quick_frontends (contact list): use of intermediate method for showEmptyGroups and showOfflineMessages to convert bridge values to actual booleans 2015-02-23 18:04:16 +01:00
souliane
b836fef4dd quick_frontend, primitivus: use a listener to update the contact list when receiving a presence 2015-02-22 21:30:20 +01:00
souliane
8c46a23869 quick_frontend (quick_app): addListener takes a profiles_filter argument to check the profile before calling a listener (profile must be passed right after the event type in callListeners) 2015-02-22 20:39:33 +01:00
souliane
ed8821d54b quick_frontend: add a 'presence' listener for the 'presenceUpdate' signal 2015-02-22 15:11:29 +01:00
souliane
cf58422fcc quick_frontend (quick_contact_list): add property roster_entities_connected and method getSpecials 2015-02-21 12:39:04 +01:00
souliane
9461ac75ce frontends: merge sat_frontends.constants to sat_frontends.quick_frontend.constants 2015-02-22 14:13:42 +01:00
souliane
fa8f119a56 quick_frontend (quick_app): fixes the call to a bridge method that was done with a JID instead of unicode 2015-02-22 13:58:33 +01:00
souliane
b5d70cbe34 core, quick_frontends: fixes one typo and a variable naming issue 2015-02-21 17:22:39 +01:00
souliane
4c7e81ad6c quick_frontend, primitivus: fixes typo between method alert and class Alert 2015-02-21 12:34:48 +01:00
souliane
269e2a7c8b frontends (quick_frontend): fixes a typo (listerner --> listener) 2015-02-20 22:06:13 +01:00
Goffi
1b684d2dba quick frontends (quick widgets): doesn't force anymore "on_new_widget" to None for on_existing_widget=C.WIDGET_RECREATE: the original behaviour for on_new_widget need to be kept 2015-02-10 19:08:01 +01:00
souliane
61f1d1de6a quick_frontend (quick_widgets): revert commit 1319 2015-02-10 10:33:54 +01:00
Goffi
662a446bb3 merges souliane commits 2015-02-09 21:40:45 +01:00
Goffi
01364793ed quick frontends(quick app): add a listeners (observer/observable) mechanism to call a callback when a event happen. Implemented an "avatar" event. 2015-02-09 21:39:51 +01:00
Goffi
b705b5688f frontends (quick frontend): use of new getEntitiesData to get cached values for avatars on profile connection. 2015-02-09 21:39:51 +01:00
Goffi
ec25ba82e1 core: added getEntitiesData which get cache data for several entities at once 2015-02-09 21:39:51 +01:00
souliane
902616219a quick_frontend: getOrCreateWidget callbacks can return another widget 2015-02-09 09:19:30 +01:00
souliane
5b0a210fab frontends (tools): Pyjamas's JID implementation can be compared to an object of a different type:
- always return False if the other object is not a JID
    - to not fake list membership's test, hash(jid) now differs from hash(unicode(jid))
2015-02-07 14:47:23 +01:00
souliane
b1ab06ba6a quick_frontend: fixes hash setting for QuickWidget 2015-02-06 22:28:00 +01:00
Goffi
fcfe8c8517 quick frontend(quick widgets): fixed bad condition test in previous commit 2015-02-06 20:46:14 +01:00
Goffi
95faddd84c quick frontend(quick widgets): added the ability to use a callable with getOrCreateWidget's on_existing_widget 2015-02-06 20:43:28 +01:00
Goffi
ca2e0ccc66 quick_ frontend (quick widgets): added explanation in docstring for non special keywords in getOrCreateWidget 2015-02-06 20:09:01 +01:00
souliane
f0f097c106 quick_frontend: remove the contact from the groups it has been removed from 2015-02-06 19:31:13 +01:00
Goffi
437b2f0635 merged souliane commits 2015-02-06 19:29:37 +01:00
Goffi
679e5759bb quick frontend (quick widgets): class' __name__ method is used for classes_map hash because the use of class directly was causing bugs with pyjamas (difficult to find, several MicroblogPanel instances were added only once in Libervia's TabPanel, hash method seemed buggy) 2015-02-06 19:05:51 +01:00
Goffi
f9f86f67a1 quick frontend (quick_widgets): add deleteWidget method 2015-02-06 19:03:13 +01:00
Goffi
31c7776f03 quick frontends (QuickContactList): added isEntityInGroup method 2015-02-06 19:02:10 +01:00
Goffi
588d65132c Quick Frontend (quick_widgets): added on_existing_widget in getOrCreateWidget (see docstring for more infos) + use of constants 2015-02-06 19:01:06 +01:00
souliane
a006a7c953 quick_frontend: add some properties for QuickContactList 2015-02-05 12:10:42 +01:00
souliane
52a713cde9 quick_frontend: fix the history log message 2015-02-06 10:50:01 +01:00
souliane
3ee9f140df remove remaining references to Wix 2015-01-24 16:12:50 +01:00
Goffi
8ce5c1862b core, frontends: refactoring to base Libervia on QuickFrontend (big mixed commit):
/!\ not finished, everything is still instable !
    - bridge: DBus bridge has been modified to allow blocking call to be called in the same way as asynchronous calls
    - bridge: calls with a callback and no errback are now possible, default errback log the error
    - constants: removed hack to manage presence without OrderedDict, as an OrderedDict like class has been implemented in Libervia
    - core: getLastResource has been removed and replaced by getMainResource (there is a global better management of resources)
    - various style improvments: use of constants when possible, fixed variable overlaps, import of module instead of direct class import
    - frontends: printInfo and printMessage methods in (Quick)Chat are more generic (use of extra instead of timestamp)
    - frontends: bridge creation and option parsing (command line arguments) are now specified by the frontend in QuickApp __init__
    - frontends: ProfileManager manage a more complete plug sequence (some stuff formerly manage in contact_list have moved to ProfileManager)
    - quick_frontend (quick_widgets): QuickWidgetsManager is now iterable (all widgets are then returned), or can return an iterator on a specific class (return all widgets of this class) with getWidgets
    - frontends: tools.jid can now be used in Pyjamas, with some care
    - frontends (XMLUI): profile is now managed
    - core (memory): big improvment on entities cache management (and specially resource management)
    - core (params/exceptions): added PermissionError
    - various fixes and improvments, check diff for more details
2015-01-24 01:00:29 +01:00
Goffi
f45e55388f Wix removal: Wix is now officially abandonned (a futur desktop frontend will replace it) 2015-01-24 00:15:01 +01:00
Goffi
1b0d6ecc30 quick_frontend, primitivus: moved parts of primitivus's profileManager to quick_frontend 2015-01-24 00:14:58 +01:00
Goffi
e4708c9cbb quick_frontend, primitivus: multi-profiles refactoring part 1 (big commit, sorry :p):
This refactoring allow primitivus to manage correctly several profiles at once, with various other improvments:
    - profile_manager can now plug several profiles at once, requesting password when needed. No more profile plug specific method is used anymore in backend, instead a "validated" key is used in actions
    - Primitivus widget are now based on a common "PrimitivusWidget" classe which mainly manage the decoration so far
    - all widgets are treated in the same way (contactList, Chat, Progress, etc), no more chat_wins specific behaviour
    - widgets are created in a dedicated manager, with facilities to react on new widget creation or other events
    - quick_frontend introduce a new QuickWidget class, which aims to be as generic and flexible as possible. It can manage several targets (jids or something else), and several profiles
    - each widget class return a Hash according to its target. For example if given a target jid and a profile, a widget class return a hash like (target.bare, profile), the same widget will be used for all resources of the same jid
    - better management of CHAT_GROUP mode for Chat widgets
    - some code moved from Primitivus to QuickFrontend, the final goal is to have most non backend code in QuickFrontend, and just graphic code in subclasses
    - no more (un)escapePrivate/PRIVATE_PREFIX
    - contactList improved a lot: entities not in roster and special entities (private MUC conversations) are better managed
    - resources can be displayed in Primitivus, and their status messages
    - profiles are managed in QuickFrontend with dedicated managers


This is work in progress, other frontends are broken. Urwid SàText need to be updated. Most of features of Primitivus should work as before (or in a better way ;))
2014-12-10 19:00:09 +01:00
souliane
5781d78d2b frontends (quick_app): fixes wrong JID construction when processing getPresenceStatuses result 2014-10-18 13:02:41 +02:00
Goffi
4ba87c6050 bridge (frontends side): fixed call of async method in blocking context 2014-10-16 20:18:40 +02:00
souliane
cf106bde77 primitivus: fixes displaying online contacts when "Show offline contacts" is False 2014-10-07 11:45:34 +02:00
souliane
c850615a2d primitivus: implement parameter "Show empty groups" 2014-10-06 13:54:41 +02:00
souliane
e554934f31 primitivus: implement "Show offline contacts" parameter (sync with "DISCONNECTED_HIDE" action key) 2014-10-06 12:44:58 +02:00
souliane
e34a9a77e4 frontends (primitivus): new command :search <pattern> 2014-10-04 10:26:10 +02:00
souliane
767f3d50dc bridge, memory: add "search" attribute to getHistory (filter the results with a unix globbing pattern) 2014-10-04 10:25:32 +02:00
souliane
7a344fcf5d frontends: printInfo and printMessage timestamp attribute defaults to None instead of '' 2014-10-04 10:23:13 +02:00