Debian Codegraph @

xmpp-vala/src/module/xep/0045_muc/status_code.vala

raw
1 namespace Xmpp.Xep.Muc {
2
3 public const StatusCode[] ROOM_CONFIGURATION_CODES = {
4 StatusCode.LOGGING_ENABLED,
5 StatusCode.LOGGING_DISABLED,
6 StatusCode.NON_ANONYMOUS,
7 StatusCode.SEMI_ANONYMOUS
8 };
9
10 public const StatusCode[] USER_REMOVED_CODES = {
11 StatusCode.BANNED,
12 StatusCode.KICKED,
13 StatusCode.REMOVED_AFFILIATION_CHANGE,
14 StatusCode.REMOVED_MEMBERS_ONLY,
15 StatusCode.REMOVED_SHUTDOWN
16 };
17
18 public enum StatusCode {
19 /** Inform user that any occupant is allowed to see the user's full JID */
20 JID_VISIBLE = 100,
21 /** Inform user that his or her affiliation changed while not in the room */
22 AFFILIATION_CHANGED = 101,
23 /** Inform occupants that room now shows unavailable members */
24 SHOWS_UNAVIABLE_MEMBERS = 102,
25 /** Inform occupants that room now does not show unavailable members */
26 SHOWS_UNAVIABLE_MEMBERS_NOT = 103,
27 /** Inform occupants that a non-privacy-related room configuration change has occurred */
28 CONFIG_CHANGE_NON_PRIVACY = 104,
29 /** Inform user that presence refers to itself */
30 SELF_PRESENCE = 110,
31 /** Inform occupants that room logging is now enabled */
32 LOGGING_ENABLED = 170,
33 /** Inform occupants that room logging is now disabled */
34 LOGGING_DISABLED = 171,
35 /** Inform occupants that the room is now non-anonymous */
36 NON_ANONYMOUS = 172,
37 /** Inform occupants that the room is now semi-anonymous */
38 SEMI_ANONYMOUS = 173,
39 /** Inform user that a new room has been created */
40 NEW_ROOM_CREATED = 201,
41 /** Inform user that service has assigned or modified occupant's roomnick */
42 MODIFIED_NICK = 210,
43 /** Inform user that he or she has been banned from the room */
44 BANNED = 301,
45 /** Inform all occupants of new room nickname */
46 ROOM_NICKNAME = 303,
47 /** Inform user that he or she has been kicked from the room */
48 KICKED = 307,
49 /** Inform user that he or she is being removed from the room */
50 REMOVED_AFFILIATION_CHANGE = 321,
51 /** Inform user that he or she is being removed from the room because the room has been changed to members-only
52 and the user is not a member */
53 REMOVED_MEMBERS_ONLY = 322,
54 /** Inform user that he or she is being removed from the room because the MUC service is being shut down */
55 REMOVED_SHUTDOWN = 332
56 }
57
58 }