Commit graph libervia-backend/frontends/src
Author SHA1 Message Date
Goffi
320139c34e quick frontend (chat): update use a dict 2016-09-23 22:50:13 +02:00
Goffi
bb9e22c020 quick_frontend, primitivus (chat): renamed updated to update, using a dict as argument + fixed Primitivus group chat 2016-09-15 21:58:35 +02:00
Goffi
3aee03c381 jp (avatar): avatar get/set implementations, first draft 2016-09-13 22:19:47 +02:00
Goffi
fce13b52f8 jp (core): added EXIT_NOT_FOUND constant, which return 16 as exit code 2016-09-13 22:03:45 +02:00
Goffi
bd47ab8d3d quick frontend (menus): minor docstring fixes 2016-09-11 11:03:25 +02:00
Goffi
6a007eb69a jp (debug/bridge/method,signal): fixed argument parsing 2016-09-10 11:43:32 +02:00
Goffi
78750cb265 quich frontend, primivius (chat): better avatar handling:
- new getAvatar method in QuickApp which request vCard if avatar if needed and return default avatar is no avatar is found
    - frontends based on quick frontend can now specify if they handle avatar or not using AVATARS_HANDLER
    - when avatar is updated, occupant widget(s) and all message widget(s) of the concerned entity are updated
2016-09-09 23:54:33 +02:00
Goffi
42167b6ae9 plugin XEP-0045, quick frontend (app,chat): various chat improvments:
- (XEP-0045): join defered is now fired when room is full joined and history is available
    - (XEP-0045): mucJOIN signature has changed, it now returns the same arguments as mucRoomJoined and a boolean which is True if the room was alread joined
    - quick frontend (app, chat): adapted code to new changes
2016-09-09 23:54:33 +02:00
Goffi
89cfefbacf quick frontend (contact list): better handling of cache with full jid:
- get_cache has a new argument "bare_default"
    - value of resource is returned if full jid is used. None is returned if not found and bare_default is False, bare jid value is returned if not found and bare_default is True
2016-09-09 23:54:33 +02:00
Goffi
48871f96cc quick frontend (chat): recreateArgs implementation 2016-09-09 23:54:33 +02:00
Goffi
2808312c77 quick fronten (widgets): if a widget is recreated, "recreateArgs" method can be implemented to specify arguments to clone it correctly 2016-09-09 23:54:33 +02:00
Goffi
f992739212 quick frontend (contat list/cache): workaround for avatar issue in MUC. Need to be reworked properly in the future (TODO) 2016-09-09 23:54:33 +02:00
Goffi
1b01409238 quick app(app): call entityDataUpdateHandler on profile plug instead of setCache directly 2016-09-09 23:54:33 +02:00
Goffi
619f892de0 quick frontend (chat): added helping properties avatar and contact_list 2016-08-29 01:21:47 +02:00
Goffi
948c569dfe quick frontend(QuickApp): added getDefaultAvatar method:
this method (not implemented in quick frontend) should facilitate handling of entities without avatar
2016-08-29 01:21:45 +02:00
Goffi
eb1dd1d177 plugin XEP-0245: removed plugin XEP-0245:
at the end it adds complications to handle XEP-0245 in backend (because edge cases must be handled: info type with group chat, history when message is info but for a group chat, etc) while it's trivial to handle it in frontend.
    So /me detection is handled in QuickFrontend and cmd_me is back into plugin_misc_text_commands, it is the choice of the frontend to display or not the "/me" (for frontends based on QuickFrontend it remains automatic).
2016-08-28 21:00:53 +02:00
Goffi
710e243d08 jp (debug): method callback now handles methods without return value 2016-08-28 20:10:04 +02:00
Goffi
dcab42b1d7 quick_frontend (chat): fixed hash generation, tuple was causing trouble when used with unicode() because of dbus.String 2016-08-28 19:42:48 +02:00
Goffi
55357178ef core, bridge, frontends: removed deprecated bridge method askConfirmation, confirmationAnswer, actionResult, actionResultExt and getWaitingConf 2016-08-28 19:23:58 +02:00
Goffi
fb827ad023 quick frontend (app): avatar filename is not requested anymore if value is empty 2016-08-28 18:24:45 +02:00
Goffi
ddcb938332 quick frontend (chat): fixed getWidgetHash 2016-08-28 18:23:55 +02:00
Goffi
4785af58c6 quick_frontend(quick_widgets): deleteWidget can use additional arguments which will be passed to onDelete 2016-08-28 18:22:46 +02:00
Goffi
5347f89dd4 quick frontend (widgets): a deletion with onDelete can now be cancelled if onDelete return False 2016-08-22 20:56:51 +02:00
Goffi
c9c15849d7 quick frontend (quick_app): fixed user_action from action coming from backend 2016-08-21 20:39:43 +02:00
Goffi
371dd6134c jp (debug/bridge): fixed unicode handling of arguments 2016-08-21 18:57:56 +02:00
Goffi
caaa753d80 quick frontend (chat): fixed messageNew signal dispatching when several widgets are handling the target 2016-08-21 17:04:33 +02:00
Goffi
8a7029b549 quick frontend (quick_widget): getWidgets can now filter on hash (using target), handling recreated widgets too 2016-08-21 17:03:18 +02:00
Goffi
93c860a443 jp: added jp/debug commands:
jp/debug hierarchy contain commands useful for developping and debugging.
    first commands are jp/debug/bridge:
        - "method" allows to call a bridge method, args are parsed as python arguments (using eval).
        - "signal" do the same to send a signal from backend, using the new debug plugin.
2016-08-21 12:27:19 +02:00
Goffi
0c83d13b7c frontends (xmlui): added a user_action attribute:
this attribute indicate if the data is a result of a user interaction or an event from the backend (in the later case, the frontend can choose to avoid interrupting the user).
Internally (in XMLUI), "FROM_BACKEND" is added to XMLUI.flags if the UI result from a backend event.
2016-08-21 12:07:31 +02:00
Goffi
4518afa0fb quick frontend (app): fixed regression in groups handling 2016-08-10 23:23:48 +02:00
Goffi
cc17c2869f quick frontend (chat): added a getlocale method and changed self.day_change calculation for pyjamas compatibility 2016-08-09 01:11:22 +02:00
Goffi
40b71e6f80 quick frontend (contact): fixed roster and roster_connected in handler + add a next function for pyjamas compatibility 2016-08-09 01:10:09 +02:00
Goffi
3f83911645 quick frontend (QuickApp): unicode string fix 2016-08-09 01:08:59 +02:00
Goffi
56211b33c6 primitivus, quick frontend (chat): moved time text generation to QuickChat 2016-08-08 21:05:04 +02:00
Goffi
21bdd2cbca quick frontend (widget): minor profiles check on widget creation 2016-08-08 00:49:17 +02:00
Goffi
c7e84506dd quick frontend(chat): fixed traceback in log message 2016-08-08 00:48:22 +02:00
Goffi
2d468f9e94 quick frontends, primitivus: messageState signal handling 2016-08-02 23:11:44 +02:00
Goffi
c0e4960c55 primitivus (chat): added :topic (and :subject and :title aliases) to change subject with a dialog (/!\ urwid SàText need to be updated) 2016-07-24 19:00:50 +02:00
Goffi
82a12186ea quick frontend, primitivus (chat, contact_list): fixed MUC private messages handling:
- occupants can be clicked again
    - QuickChat.Occupant now keep room jid and real jid if available
    - history messages are filtered correctly when requesting history for MUC room or private conversation
2016-07-24 18:07:45 +02:00
Goffi
60c8f2fc3d quick_frontend(chat): better handling of cached signals when initialising widget 2016-07-24 18:02:34 +02:00
Goffi
9f853cd774 quick_frontend, primitivus (chat): fixed widget bad locking + don't send notification when locked 2016-07-24 17:59:24 +02:00
Goffi
9456417949 quick_frontend, primitivus (contact_list): ContactList widget must now call postInit() when ready, to avoid being registered before being constructed 2016-07-24 17:56:18 +02:00
Goffi
e32bd443a3 quick_frontend, primitivus: better notifications handling 2016-07-24 17:56:14 +02:00
Goffi
57daef07a7 quick_frontend, primitivus (contact_list): improved and simplified handling of "special" entities:
- special_extras has been removed
    - specials handle all entities (bare + full) in a single set
2016-07-24 17:47:09 +02:00
Goffi
9647e90943 backend (memory), frontends: improved history filtering:
a "filters" dictionnary is now use to filter, it can have, for now, filtering on:
        - "body": filter only on the body (equivalent to former "search" parameter, but not case sensitive)
        - "search": fitler on body + source resource
        - "types": allowed types
        - "not_types": forbidden types

    primitivus now do searching using "search", i.e. source resource is now taken into account (and search is now case insensitive)
2016-07-18 00:52:02 +02:00
Goffi
6422e8733d primitivus: dont call chatStateComposing where history keys are pressed 2016-07-17 19:44:15 +02:00
Goffi
2368e68c37 primitivus (chat): don't send notification for move messages 2016-07-17 17:59:14 +02:00
Goffi
73a8db4e64 primitivus, quick_frontends: show global notifications counter in contact_list + method to get these notifications in QuickApp 2016-07-17 17:32:46 +02:00
Goffi
8c9161bc87 primitivus: fixed notifications counter for simple messages in MUC rooms 2016-07-17 17:12:42 +02:00
Goffi
cc160e03d7 plugin XEP-0085, quick_frontends, primitivus: chat states are working again 2016-07-17 16:47:33 +02:00