summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-01-18 02:49:33 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-01-18 02:49:33 +0000
commit6a2917fca8d2c15ac63967a033f001b021623510 (patch)
tree8739192ef6e342c209d8d9cef239ef61cda53c4f
parent44abb9b6bb8fb5763e739d200c6dbea1c08cb1c0 (diff)
downloadpoezio-6a2917fca8d2c15ac63967a033f001b021623510.tar.gz
poezio-6a2917fca8d2c15ac63967a033f001b021623510.tar.bz2
poezio-6a2917fca8d2c15ac63967a033f001b021623510.tar.xz
poezio-6a2917fca8d2c15ac63967a033f001b021623510.zip
ASCII ART \o7
-rw-r--r--README58
1 files changed, 58 insertions, 0 deletions
diff --git a/README b/README
index 2a003202..514de108 100644
--- a/README
+++ b/README
@@ -35,3 +35,61 @@ Please read the COPYING file for details
= People =
xbright (Handler and MultiUserChat classes)
chickenzilla (Config class)
+
+======================
+ The code
+======================
+
+Classes:
+ - Connection *receives* messages from the Jabber network
+ - MultiUserChat *sends* messages to the Jabber network
+ - Gui displays everything on the screen and gets the user inputs
+ - Handler is the "link" between all these classes :
+a class emits a signal and the others classes listen to this signal
+and do what they have to do whenever this signal is emitted by any class
+
+Q: Why not use Connection to receive AND send the messages to Jabber network?
+A: I like it this way.
+
+Q: Could you please make a nice ASCII art, so I could understand all
+ the beauty and the complexity of this awesome software ?
+A: Of course, here it is:
+
+ ___________________________
+ / \
+ | |
+ | Jabber Network |
+ | (roomchats and people |
+ | in them) |
+ | |
+ \__________________________/
+ | ^
+ | receive send | ____ Poezio ____
+ v |
+ /----------------\ /-----------------\
+ | | | |
+ | Connection | | MultiUserChat |
+ | | | |
+ \----------------/ \-----------------/
+ ^ |emit emit | ^
+ | | /---------\ | |
+ connect \ \----> | |<----/ / connect
+ \______ | Handler |______/
+ | |
+ \---------/
+ | ^
+ connect | | emit
+ v |
+ /---------\
+ | |
+ | Gui |
+ | |
+ \---------/
+ | ^
+ Screen | | Keyboard
+ v |
+ /---------\
+ | |
+ | YOU |
+ | |
+ \---------/