From 1d54f7b990ea7f676403681577fc4df984cab0be Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 12 Aug 2020 10:28:02 +0300 Subject: Save and load app state (tabs, history) --- src/ui/documentwidget.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/ui/documentwidget.h') diff --git a/src/ui/documentwidget.h b/src/ui/documentwidget.h index 1e63034b..810c1392 100644 --- a/src/ui/documentwidget.h +++ b/src/ui/documentwidget.h @@ -1,6 +1,7 @@ #pragma once #include "widget.h" +#include iDeclareType(GmDocument) iDeclareType(History) @@ -8,6 +9,9 @@ iDeclareType(History) iDeclareWidgetClass(DocumentWidget) iDeclareObjectConstruction(DocumentWidget) +void serializeState_DocumentWidget (const iDocumentWidget *, iStream *outs); +void deserializeState_DocumentWidget (iDocumentWidget *, iStream *ins); + iDocumentWidget * duplicate_DocumentWidget (const iDocumentWidget *); iHistory * history_DocumentWidget (iDocumentWidget *); @@ -16,5 +20,5 @@ iBool isRequestOngoing_DocumentWidget (const iDocumentWidget *); const iGmDocument * document_DocumentWidget (const iDocumentWidget *); void setUrl_DocumentWidget (iDocumentWidget *, const iString *url); -void setUrlFromCache_DocumentWidget (iDocumentWidget *d, const iString *url, iBool isFromCache); +void setUrlFromCache_DocumentWidget (iDocumentWidget *, const iString *url, iBool isFromCache); void setInitialScroll_DocumentWidget (iDocumentWidget *, int scrollY); /* set after content received */ -- cgit v1.2.3