summaryrefslogtreecommitdiffstats
path: root/tdehtml/java/KJAS_GRAMMAR.txt
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2013-03-02 15:57:34 -0600
committerDarrell Anderson <humanreadable@yahoo.com>2013-03-02 15:57:34 -0600
commit7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f (patch)
treec76702a7f6310fbe9d437e347535422e836e94e9 /tdehtml/java/KJAS_GRAMMAR.txt
parenta2a38be7600e2a2c2b49c66902d912ca036a2c0f (diff)
parent27bbee9a5f9dcda53d8eb23863ee670ad1360e41 (diff)
downloadtdelibs-7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f.tar.gz
tdelibs-7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdelibs
Diffstat (limited to 'tdehtml/java/KJAS_GRAMMAR.txt')
-rw-r--r--tdehtml/java/KJAS_GRAMMAR.txt82
1 files changed, 82 insertions, 0 deletions
diff --git a/tdehtml/java/KJAS_GRAMMAR.txt b/tdehtml/java/KJAS_GRAMMAR.txt
new file mode 100644
index 000000000..5632f8de8
--- /dev/null
+++ b/tdehtml/java/KJAS_GRAMMAR.txt
@@ -0,0 +1,82 @@
+This is documentation for the updated KJAS protocol.
+
+KJAS Grammar
+===============================================================================
+
+## Commands From KAppletWidget(C++) to KJAS(Java Process)
+<KJAS Command> -> <CMD Length><CMD>
+<CMD Length> -> <StringNum>
+<CMD> -> <createContext> |
+ <destroyContext> |
+ <createApplet> |
+ <destroyApplet> |
+ <startApplet> |
+ <stopApplet> |
+ <initApplet> |
+ <showURLInFrame> |
+ <showDocument> |
+ <showStatus> |
+ <resizeApplet> |
+ <getURLData> |
+ <URLData> |
+ <shutDownServer>
+
+<createContext> -> <1 byte equal to 1 when cast as int><SEP><ContextID><END>
+<destroyContext> -> <1 byte equal to 2 when cast as int><SEP><ContextID><END>
+
+<createApplet> -> <1 byte equal to 3 when cast as int><SEP><ContextID>
+ <SEP><AppletID><SEP><AppletName><SEP><ClassName><SEP>
+ <BaseURL><SEP><CodeBase><SEP><Archives>
+ <SEP><Width><SEP><Height><SEP><WindowTitle><SEP><ParamList>
+<destroyApplet> -> <1 byte equal to 4 when cast as int><SEP><ContextID>
+ <SEP><AppletID><END>
+<startApplet> -> <1 byte equal to 5 when cast as int><SEP><ContextID>
+ <SEP><AppletID><END>
+<stopApplet> -> <1 byte equal to 6 when cast as int><SEP><ContextID>
+ <SEP><AppletID><END>
+<initApplet> -> <1 byte equal to 7 when cast as int><SEP><ContextID>
+ <SEP><AppletID><END>
+
+
+## Commands from KJAS(Java Process) to KAppletWidget(C++)
+<showDocument> -> <1 byte equal to 8 when cast as int><SEP><ContextID>
+ <SEP><URL><END>
+<showURLInFrame> -> <1 byte equal to 9 when cast as int><SEP><ContextID>
+ <SEP><URL><SEP><targetFrame><END>
+<showStatus> -> <1 byte equal to 10 when cast as int><SEP><ContextID>
+ <SEP><string><END>
+<resizeApplet> -> <1 byte equal to 11 when cast as int><SEP><ContextID>
+ <SEP><AppletID><SEP><Width><SEP><Height><END>
+<getURLData> -> <1 byte equal to 12 when cast as int><SEP><ClassLoaderID>
+ <SEP><URL><END>
+<URLData> -> <1 byte equal to 13 when cast as int><SEP><ClassLoaderID>
+ <SEP><URL><SEP><DATA><END>
+
+<shutDownServer> -> <1 byte equal to 14 when cast as int><END>
+
+## basic data types
+<CMD Length> -> <StringNum>
+<ContextID> -> string
+<AppletID> -> string
+<AppletName> -> string
+<ParamList> -> <StringNum><SEP><ParamPairList>
+<ParamPairList> -> StringNum of ParamPair
+<ParamPair> -> <ParamName><SEP><ParamValue><SEP>
+<ClassName> -> string
+<BaseURL> -> <URL>
+<CodeBase> -> <URL>
+<Archives> -> string (list of jarfile names)
+<Width> -> string representation of integer
+<Height> -> string representation of integer
+<Title> -> string
+<ParamName> -> string
+<ParamValue> -> string
+<Host> -> string (must be a valid URL)
+<URL> -> string (must be a valid URL)
+<targetFrame> -> string
+<WindowTitle> -> string
+<END> -> <SEP>
+<SEP> -> Null character- 1 byte = 0
+<StringNum> -> padded string representation of integer, 8 characters long
+<ClassLoaderID> -> string
+<DATA> -> byte array