aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/quarg/quassel/types.py
diff options
context:
space:
mode:
Diffstat (limited to 'quarg/quassel/types.py')
-rw-r--r--quarg/quassel/types.py51
1 files changed, 51 insertions, 0 deletions
diff --git a/quarg/quassel/types.py b/quarg/quassel/types.py
new file mode 100644
index 0000000..36f385a
--- /dev/null
+++ b/quarg/quassel/types.py
@@ -0,0 +1,51 @@
+from enum import Enum
+
+class BufferType(Enum):
+ INVALID = 0x0
+ STATUS = 0x1
+ CHANNEL = 0x2
+ QUERY = 0x4
+ GROUP = 0x8
+
+ @classmethod
+ def describe(cls):
+ return 'buffer type'
+
+class MessageFlag(Enum):
+ NONE = 0x0
+ SELF = 0x1
+ HIGHLIGHT = 0x2
+ REDIRECTED = 0x4
+ SERVERMSG = 0x8
+ STATUSMSG = 0x10
+ IGNORED = 0x20
+ BACKLOG = 0x80
+
+ @classmethod
+ def describe(cls):
+ return 'message flag'
+
+class MessageType(Enum):
+ PRIVMSG = 0x1
+ NOTICE = 0x2
+ ACTION = 0x4
+ NICK = 0x8
+ MODE = 0x10
+ JOIN = 0x20
+ PART = 0x40
+ QUIT = 0x80
+ KICK = 0x100
+ KILL = 0x200
+ SERVER = 0x400
+ INFO = 0x800
+ ERROR = 0x1000
+ # as far as I can see DAYCHANGE does not show up in the database
+ DAYCHANGE = 0x2000
+ TOPIC = 0x4000
+ NETSPLIT_JOIN = 0x8000
+ NETSPLIT_QUIT = 0x10000
+ INVITE = 0x20000
+
+ @classmethod
+ def describe(cls):
+ return 'message type'