diff options
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 |