Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0234.py @ 2145:33c8c4973743
core (plugins): added missing contants + use of new constants in PLUGIN_INFO
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 12 Feb 2017 18:59:10 +0100 |
parents | 1d3f73e065e1 |
children | 8b37a62336c3 |
comparison
equal
deleted
inserted
replaced
2144:1d3f73e065e1 | 2145:33c8c4973743 |
---|---|
36 | 36 |
37 | 37 |
38 NS_JINGLE_FT = 'urn:xmpp:jingle:apps:file-transfer:4' | 38 NS_JINGLE_FT = 'urn:xmpp:jingle:apps:file-transfer:4' |
39 | 39 |
40 PLUGIN_INFO = { | 40 PLUGIN_INFO = { |
41 "name": "Jingle File Transfer", | 41 C.PI_NAME: "Jingle File Transfer", |
42 "import_name": "XEP-0234", | 42 C.PI_IMPORT_NAME: "XEP-0234", |
43 "type": "XEP", | 43 C.PI_TYPE: "XEP", |
44 "protocols": ["XEP-0234"], | 44 C.PI_PROTOCOLS: ["XEP-0234"], |
45 "dependencies": ["XEP-0166", "XEP-0300", "FILE"], | 45 C.PI_DEPENDENCIES: ["XEP-0166", "XEP-0300", "FILE"], |
46 "main": "XEP_0234", | 46 C.PI_MAIN: "XEP_0234", |
47 "handler": "yes", | 47 C.PI_HANDLER: "yes", |
48 "description": _("""Implementation of Jingle File Transfer""") | 48 C.PI_DESCRIPTION: _("""Implementation of Jingle File Transfer""") |
49 } | 49 } |
50 | 50 |
51 | 51 |
52 class XEP_0234(object): | 52 class XEP_0234(object): |
53 # TODO: assure everything is closed when file is sent or session terminate is received | 53 # TODO: assure everything is closed when file is sent or session terminate is received |