Changes between Version 5 and Version 6 of SystemDevelopmentEN


Ignore:
Timestamp:
Jul 27, 2012, 3:56:36 PM (12 years ago)
Author:
Martin Kolman
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SystemDevelopmentEN

    v5 v6  
    2424Handles messaging between modules.
    2525
     26===== Sending a message =====
     27All modules inherit the sendMessage(message) method from the base class.
     28
     29===== Handling a message =====
     30If a module receives a message, its handleMessage(message, type, args) method is called
     31
     32===== Message syntax =====
     33[prefix:]module_name:message[:optional_payload]
     34====== Plain messages ======
     35No prefix.
     36
     37''Example:''
     38
     39{{{
     40menu:reload
     41}}}
     42Is handled by the "menu" module (mod_menu.py).
     43message = "reload"[[br]]
     44type = None[[br]]
     45args = None
     46
     47====== Message string ======
     48Has the '''ms''' prefix.
     49
     50''Example:''
     51
     52{{{
     53ms:route:reroute:fromStart
     54}}}
     55Is handled the "reoute" module (mod_menu.py).
     56message = "reroute"[[br]]
     57type = "ms"[[br]]
     58args = "fromStart"
     59
     60====== Message list ======
     61Has the '''ml''' prefix.
     62====== Message dict ======
     63Has the '''md''' prefix.
     64
    2665==== mod_menu ====
    27 Menu structure representation and drawing. Currently mostyl used by the GTK GUI.
     66Menu structure representation and drawing. Currently mostly used by the GTK GUI.
    2867
    2968==== mod_options ====
     
    3675Debug logging. Currently mostly concerned with redirecting stdout to a file, so that seldom ocuring errors can be easily loged.
    3776
    38 ==== mod_ ====
     77==== mod_cron ====
     78Handles timers in a a graphics toolkit independent way. It currently supports GTK and Qt.
     79
     80===== Adding a timer ====
     81
     82
    3983==== mod_ ====
    4084==== mod_ ====