diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-11-28 12:39:14 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-11-28 12:39:14 +0100 |
commit | 0b9cf8c968a89784b5c2b8afe1a819b33749165e (patch) | |
tree | 7153fc8fe5447ee710ce689352db6e0e3b8849cc /src/session/session.h | |
parent | Add Session::view and Session::restoreView (diff) | |
download | smolbote-0b9cf8c968a89784b5c2b8afe1a819b33749165e.tar.xz |
Rewrite Session saving and loading
Diffstat (limited to 'src/session/session.h')
-rw-r--r-- | src/session/session.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/session/session.h b/src/session/session.h index 222c7ef..720b711 100644 --- a/src/session/session.h +++ b/src/session/session.h @@ -12,6 +12,7 @@ #include <QJsonDocument> class MainWindow; +class SubWindow; class WebView; namespace Session { @@ -19,8 +20,17 @@ QJsonObject session(QVector<MainWindow *> windows); QJsonObject window(const MainWindow *window); QJsonObject window(const QString &profile, const QStringList &urls); +// TODO: +QJsonObject _session(const QVector<MainWindow *> windows); +QJsonObject _window(const MainWindow *window); +QJsonObject _subwindow(const SubWindow *subwindow); + + QJsonObject view(const WebView *view); void restoreView(WebView *view, const QJsonObject &data); -} + +void restoreSession(const QJsonObject &sessionData); + +} // namespace Session #endif // SMOLBOTE_SESSION_H |