/* * 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/smolbote.hg * * SPDX-License-Identifier: GPL-3.0 */ #ifndef SMOLBOTE_PROFILEMANAGER_H #define SMOLBOTE_PROFILEMANAGER_H #include #include #include typedef QMapIterator ProfileIterator; class WebProfile; class ProfileManager : public QObject { Q_OBJECT public: explicit ProfileManager(QObject *parent = nullptr); static WebProfile *loadProfile(const QString &path, const QHash &defaults); static const QString id(WebProfile *profile); static WebProfile *profile(const QString &id); static const QMap& profileList(); private: static QMap profiles; }; #endif // SMOLBOTE_PROFILEMANAGER_H