From 0b9cf8c968a89784b5c2b8afe1a819b33749165e Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Wed, 28 Nov 2018 12:39:14 +0100 Subject: Rewrite Session saving and loading --- doc/Development/Session.asciidoc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 doc/Development/Session.asciidoc (limited to 'doc/Development/Session.asciidoc') diff --git a/doc/Development/Session.asciidoc b/doc/Development/Session.asciidoc new file mode 100644 index 0000000..846d6a3 --- /dev/null +++ b/doc/Development/Session.asciidoc @@ -0,0 +1,19 @@ +== Session + +== Session JSON structure +- windows: list of windows + +=== Window +- subwindows: list of subwindows + +=== Subwindow +- profile: profile ID +- tabs: list of views +- current: current tab index + +=== View +- profile: profile ID +- history: view history + +Storing history: compress, toBase64 (to make printable), toQString (to store in json) +Restoring history: toLatin1 (turn into bytearray), fromBase64, uncompress -- cgit v1.2.1