comparison src/plugins/plugin_adhoc_dbus.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 2daf7b4c6756
children 8b37a62336c3
comparison
equal deleted inserted replaced
2144:1d3f73e065e1 2145:33c8c4973743
41 INTROSPECT_METHOD = "Introspect" 41 INTROSPECT_METHOD = "Introspect"
42 IGNORED_IFACES_START = ('org.freedesktop', 'org.qtproject', 'org.kde.KMainWindow') # commands in interface starting with these values will be ignored 42 IGNORED_IFACES_START = ('org.freedesktop', 'org.qtproject', 'org.kde.KMainWindow') # commands in interface starting with these values will be ignored
43 FLAG_LOOP = 'LOOP' 43 FLAG_LOOP = 'LOOP'
44 44
45 PLUGIN_INFO = { 45 PLUGIN_INFO = {
46 "name": "Ad-Hoc Commands - D-Bus", 46 C.PI_NAME: "Ad-Hoc Commands - D-Bus",
47 "import_name": "AD_HOC_DBUS", 47 C.PI_IMPORT_NAME: "AD_HOC_DBUS",
48 "type": "Misc", 48 C.PI_TYPE: "Misc",
49 "protocols": [], 49 C.PI_PROTOCOLS: [],
50 "dependencies": ["XEP-0050"], 50 C.PI_DEPENDENCIES: ["XEP-0050"],
51 "main": "AdHocDBus", 51 C.PI_MAIN: "AdHocDBus",
52 "handler": "no", 52 C.PI_HANDLER: "no",
53 "description": _("""Add D-Bus management to Ad-Hoc commands""") 53 C.PI_DESCRIPTION: _("""Add D-Bus management to Ad-Hoc commands""")
54 } 54 }
55 55
56 56
57 class AdHocDBus(object): 57 class AdHocDBus(object):
58 58