Commit graph libervia-backend/frontends/src
Author SHA1 Message Date
Goffi
2602e4efbb quick frontends (contact list): cache is not cleared anymore on QuickContactList.fill, avoiding the accidental removal of cached values like avatars 2015-05-27 19:08:16 +02:00
Goffi
3c6a708966 quick_frontend (quick_app): properly fixed roster loss:
commit 6adf1b0be609 which was causing issues in Libervia or when a profile was already connected
2015-05-22 22:31:37 +02:00
souliane
f978524b22 display the resource in the chat dialog when printing a private MUC message 2015-04-24 16:10:46 +02:00
souliane
4c25ec71ba quick_frontend: ask for the roster in connectedHandler instead of in ProfileManager, because we need it also when reconnecting after a disconnection whithout restarting the frontend 2015-04-20 16:46:17 +02:00
souliane
41b549f7ae core, plugin XEP-0045, frontends: change frontend method "setStatusOnline" for "setPresenceStatus":
- remove parameter "online" (can be guess from "presence" value)
    - process "statuses" dict in quick_frontend, so this method can get a simple unicode "status"
    - add C.PRESENCE_STATUSES_DEFAULT to define the key to use for fallback status
2015-04-20 16:39:38 +02:00
Goffi
35108bc5ba core, bridge, jp: management of service discovery extensions (XEP-0128) 2015-04-17 22:59:35 +02:00
souliane
2203e6aa52 quick_frontend, primitivus: fixes a couple of issues:
- chat: notification was raising an error when you just entered the room and self.nick is None
    - quick_widget: deleting a widget was modifying a dict while looping on it + unselect widget when it's being deleted
2015-04-16 17:17:28 +02:00
souliane
67ff77e5de massive (preventive) addition of 'u' (unicode) before the strings passed to logging functions 2015-04-16 14:57:57 +02:00
souliane
cc829beac7 quick_frontend, primitivus: move code to remove a new message alert from primitivus to quick_frontend 2015-04-16 13:31:14 +02:00
souliane
bf04fcf780 plugin XEP-0045, quick_frontend, primitivus: replace C.DEFAULT_MUC by bridge method getDefaultMUC (value is defined in plugin XEP-0045 and can be overriden with the config file) 2015-04-09 11:27:13 +02:00
souliane
de9c656e3b primitivus: fixes :search command 2015-04-09 11:24:25 +02:00
Goffi
74334821fc quick_frontends(profile manager): typo 2015-04-06 18:13:32 +02:00
Goffi
0a8918bcef jp (profile): added "profile modify" command 2015-04-06 17:36:53 +02:00
Goffi
84e6b89f2f jp (profile): in "profile create", jid and password arguments are now optional + added a new --xmpp-password option to set XMPP password separately (default to the same password as for profile). 2015-04-06 17:36:21 +02:00
Goffi
1bbe4c6921 jp (profile): fixed "profile info" to use profile, and then manage connection. 2015-04-06 17:32:28 +02:00
Goffi
ffd6afcbb1 jp: fixed crash on commands using profile without "connect" option 2015-04-06 12:11:23 +02:00
souliane
761d3efc8c quick_frontend (constants): set a constant for default MUC service 2015-04-02 00:00:33 +02:00
souliane
9e81f3f8d6 quick_frontend: keep the contact list groups synchronised on contact deletion 2015-04-01 23:59:56 +02:00
souliane
c1b7c3c027 quick_frontend (contact_list): rename QuickContactList.remove to QuickContactList.removeContact + remove the contact from _roster attribute (and not only from _cache) 2015-04-01 22:07:28 +02:00
Goffi
fbec02d396 2015 copyright dates update 2015-03-30 10:26:26 +02:00
Goffi
e67b4bd9eb jp: fixed bad try/except hidding errors + fixed bad management of jids without node 2015-03-30 10:04:29 +02:00
souliane
caf847a1fd quick_frontend: fixes personalEventHandler signature 2015-03-25 16:10:17 +01:00
souliane
ff0166e95f quick_frontend, primitivus: various fixes (MUC and cached signals):
- actually call the cached signals, everything was there but the call was not done
    - display '[]' instead of '[None]' when group message coming from the room (no resource)
    - catch the exception when trying to delete an occupant who's not in the room
    - do not cache a "main resource" for MUC entities
2015-03-25 15:25:51 +01:00
souliane
9071298061 quick_frontend: better PEP-8 compliance 2015-03-25 15:21:17 +01:00
souliane
30f1169e22 primitivus (Chat): fixes updating the occupant list when someone leaves, changes his nick or is added in last position 2015-03-25 10:09:59 +01:00
souliane
e81c92c549 quick_frontend, primivitus: revert changes made in rev 1386 (1f3513cfb246) concerning ChatText.nick: was mixing MUC occupant nick and roster contact nick/node 2015-03-25 09:42:05 +01:00
souliane
78f14091b1 quick_frontend, primitivus: remove QuickChat.updateEntityState and QuickChat.setContactStates, use more general QuickChat.update (also called when joining the room to initialise the occupants list) 2015-03-24 17:31:08 +01:00
souliane
1a03845539 primitivus (contact_list): fixes hide/show disconnected contacts via keyboard shortcut 2015-03-24 10:46:42 +01:00
souliane
5c1fe63580 quick_frontend, primivitus: remove QuickChat.getUserNick + primivitus ChatText gets the user nick directly from parent Chat instance 2015-03-23 15:38:32 +01:00
souliane
294b42f15c primitivus: prefill "Join MUC" dialog with only the JID's node part when in debug version + display error directly from the DBus object 2015-03-24 07:38:40 +01:00
souliane
83af62d142 quick_frontend, primitivus (chat): merge setOccupantStates and setContactStates 2015-03-23 09:34:23 +01:00
souliane
6dc8b211bf quick_frontend, primitivus: better PEP-8 compliance + remove/rename some (Quick)Chat attributes:
- remove QuickChat.id, use QuickChat.target instead
    - rename Chat.present_panel to Chat.occupants_panel
    - rename Chat.present_wid to Chat.occupants_list
2015-03-22 14:20:19 +01:00
souliane
29ffc8a544 plugin XEP-0085, quick_frontend: fixes chat states 2015-03-20 17:47:48 +01:00
souliane
d24eb9976d quick_frontend: display MUC games symbols 2015-03-20 16:29:03 +01:00
souliane
14f4b4b8ec quick_frontends, primitivus: move the chat states logic to quick_frontend 2015-03-20 16:28:19 +01:00
souliane
c6419871ac quick_frontends, primitivus: know who are the MUC occupants from the presence informations:
- QuickChat.occupants is now a property using cached information
    - some MUC handlers are no more needed, the presence handler is enough
2015-03-20 16:25:38 +01:00
Goffi
76065758df renamed tools.misc to tools.trigger 2015-03-19 19:44:37 +01:00
Goffi
07a94da3de quick_frontends(menus): added MenuContainer.replace method + addMenuHook helper method in QuickMenusManager 2015-03-18 10:39:22 +01:00
Goffi
80e65d5b84 core, quick_frontends: added an "extra" item in getMenus + use of new quick_menus module in QuickApp 2015-03-17 19:33:05 +01:00
Goffi
565c0b2b71 quick_frontend (menus): added a quick_menus module to manage easily menus logic:
- there are 2 mains types of menu: MenuItem which can be launched, and MenuCategory which contains other menus
    - local menus (from frontend only) and distant menus (from backend and its plugins) are managed
    - there is a menu manager which, in a similar ways as for widgets, manages the menus logic and should be instantiated by host
    - when a context is necessary (this is the case for most of menus), a data collector is used: it collects data from the caller (the instance linked to the menu) and construct data which is then sent throught bridge
    - to have implementation specific to a frontend which override the backend one, there is a MenuHook class
    - it is possible to place an expected menu in the desired position with MenuPlaceHolder class
2015-03-17 19:33:05 +01:00
Goffi
991a2cbf33 quick_frontends: added "menu" listeners, which is called when a menu is added or removed. 2015-03-17 19:33:04 +01:00
Goffi
0a10ae37a6 frontends: added a host_listener module which manage a listener launched when host is ready, useful to instantiate things on host in optional modules (e.g. menus). 2015-03-17 19:30:43 +01:00
souliane
b76d829249 quick_frontend, primitivus (chat): pass a sorted list to Chat.setPresents 2015-03-11 20:06:13 +01:00
souliane
e597a804d9 frontends (quick_frontend, primitivus): fixes room games:
- add quick_frontend.quick_games for registering the signals and registering the UI classes
    - rename the signals handlers to fit the convention (e.g.: tarotGameScoreHandler)
    - rename card_game to game_tarot, quick_card_game to quick_game_tarot, CardGame to TarotGame
2015-03-11 12:43:48 +01:00
souliane
723cb3cce4 frontends (primitivus): fixes setting the presence and status (for now all the profiles share the same info) 2015-03-06 15:24:45 +01:00
souliane
5169c7f602 frontends (primitivus): assign the current profile to the parameters dialog 2015-03-06 14:46:03 +01:00
souliane
6336e629c0 quick_frontend: register the 'personalEvent' signal 2015-03-06 14:22:49 +01:00
souliane
728d264136 quick_frontend: replace last occurences of QuickApp.chat_wins with QuickApp.widgets 2015-03-05 13:48:49 +01:00
souliane
3a35a5590d frontends (primitivus): fixes MUC nicks completion 2015-03-04 14:04:03 +01:00
souliane
b160e3d92c quick_frontend: add a method getWidget to return a widget without creating it if it doesn't exist 2015-03-04 14:17:38 +01:00