diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-09-28 16:15:01 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-09-28 16:15:01 +0200 |
commit | e3c605a796b6f09c6b38a206fd110992ff5d1e4c (patch) | |
tree | 5de62ffd772d0010944d19c67c8e92d1d98a59fb /src/session.h | |
parent | breakpad: Use system breakpad by default (diff) | |
download | smolbote-e3c605a796b6f09c6b38a206fd110992ff5d1e4c.tar.xz |
breakpad: try to write session on crash
Diffstat (limited to 'src/session.h')
-rw-r--r-- | src/session.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/session.h b/src/session.h index 4d5d59b..c81b2bf 100644 --- a/src/session.h +++ b/src/session.h @@ -13,13 +13,18 @@ #include <QJsonDocument> class MainWindow; + +namespace JsonSession { +QJsonObject session(QVector<MainWindow *> windows); +} + class Session : public QObject { Q_OBJECT public: explicit Session(QObject *parent = nullptr); - static QJsonObject toJsonObject(MainWindow *window); + static QJsonObject toJsonObject(const MainWindow *window); static QJsonObject toJsonObject(const QString &profile, const QStringList &urls); signals: |