diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-09-28 17:28:43 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-09-28 17:28:43 +0200 |
commit | acb401d7b24bfc670b534d68edc15e0847e73313 (patch) | |
tree | 4cd0dc7c95523ebf90469eb12c8613a733523b95 /src/session.h | |
parent | breakpad: try to write session on crash (diff) | |
download | smolbote-acb401d7b24bfc670b534d68edc15e0847e73313.tar.xz |
Turn Session class into namespace
Diffstat (limited to 'src/session.h')
-rw-r--r-- | src/session.h | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/session.h b/src/session.h index c81b2bf..759687c 100644 --- a/src/session.h +++ b/src/session.h @@ -9,27 +9,13 @@ #ifndef SMOLBOTE_SESSION_H #define SMOLBOTE_SESSION_H -#include <QObject> #include <QJsonDocument> class MainWindow; - -namespace JsonSession { +namespace Session { QJsonObject session(QVector<MainWindow *> windows); +QJsonObject window(const MainWindow *window); +QJsonObject window(const QString &profile, const QStringList &urls); } -class Session : public QObject -{ - Q_OBJECT -public: - explicit Session(QObject *parent = nullptr); - - static QJsonObject toJsonObject(const MainWindow *window); - static QJsonObject toJsonObject(const QString &profile, const QStringList &urls); - -signals: - -public slots: -}; - #endif // SMOLBOTE_SESSION_H |