diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-11-26 00:58:19 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-11-26 00:58:19 +0100 |
commit | 696743557de6a6b82303618d8f60f08f8978e650 (patch) | |
tree | 98aeb14150260921e0130c0879d59a65f4a45741 /src/session/session.h | |
parent | Add Session Dialog (diff) | |
download | smolbote-696743557de6a6b82303618d8f60f08f8978e650.tar.xz |
Add Session::view and Session::restoreView
Diffstat (limited to 'src/session/session.h')
-rw-r--r-- | src/session/session.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/session/session.h b/src/session/session.h new file mode 100644 index 0000000..222c7ef --- /dev/null +++ b/src/session/session.h @@ -0,0 +1,26 @@ +/* + * This file is part of smolbote. It's copyrighted by the contributors recorded + * in the version control history of the file, available from its original + * location: https://neueland.iserlohn-fortress.net/gitea/aqua/smolbote + * + * SPDX-License-Identifier: GPL-3.0 + */ + +#ifndef SMOLBOTE_SESSION_H +#define SMOLBOTE_SESSION_H + +#include <QJsonDocument> + +class MainWindow; +class WebView; + +namespace Session { +QJsonObject session(QVector<MainWindow *> windows); +QJsonObject window(const MainWindow *window); +QJsonObject window(const QString &profile, const QStringList &urls); + +QJsonObject view(const WebView *view); +void restoreView(WebView *view, const QJsonObject &data); +} + +#endif // SMOLBOTE_SESSION_H |