core (contants): added PROF_KEY_ALL en PLUG_TYPE_* constants

This commit is contained in:
Goffi 2015-09-25 19:19:12 +02:00
commit ea2a3e584d

View file

@ -76,11 +76,13 @@ class Const(object):
## Profile and entities ##
PROF_KEY_NONE = '@NONE@'
PROF_KEY_DEFAULT = '@DEFAULT@'
PROF_KEY_ALL = '@ALL@'
ENTITY_ALL = '@ALL@'
ENTITY_ALL_RESOURCES = '@ALL_RESOURCES@'
ENTITY_MAIN_RESOURCE = '@MAIN_RESOURCE@'
ENTITY_CAP_HASH = 'CAP_HASH'
## Roster jids selection ##
PUBLIC = 'PUBLIC'
ALL = 'ALL' # ALL means all known contacts, while PUBLIC means everybody, known or not
@ -96,6 +98,7 @@ class Const(object):
MESS_TYPE_HEADLINE = 'headline'
MESS_TYPE_NORMAL = 'normal'
## PRESENCE ##
PRESENCE_UNAVAILABLE = 'unavailable'
PRESENCE_SHOW_AWAY = 'away'
@ -127,6 +130,14 @@ class Const(object):
## Plugins ##
# Types
PLUG_TYPE_XEP = "XEP"
PLUG_TYPE_MISC = "MISC"
PLUG_TYPE_EXP = "EXP"
PLUG_TYPE_SEC = "SEC"
# names of widely used plugins
TEXT_CMDS = 'TEXT-COMMANDS'