diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2019-11-03 00:18:10 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2019-11-03 00:20:41 +0200 |
commit | f3a4607d6a722a862af0eb9747a15dcdf624b6fb (patch) | |
tree | 9885709cdff55a865be6c03c591a9757680b0396 /lib/webprofile/webprofilemanager.h | |
parent | Change spdlog from makedepends to depends (diff) | |
download | smolbote-f3a4607d6a722a862af0eb9747a15dcdf624b6fb.tar.xz |
Drop boost dependency
- wrote not-invented-here config file parser and conf class
- spent obscene amount of time plugging in said conf class
Diffstat (limited to 'lib/webprofile/webprofilemanager.h')
-rw-r--r-- | lib/webprofile/webprofilemanager.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/webprofile/webprofilemanager.h b/lib/webprofile/webprofilemanager.h index f7bf52a..3d86def 100644 --- a/lib/webprofile/webprofilemanager.h +++ b/lib/webprofile/webprofilemanager.h @@ -18,11 +18,18 @@ #include <QSettings> #include <functional> +struct ProfileDefault_t +{ + QString search; + QString homepage; + QString newtab; +}; + class WebProfileManager : public QObject { Q_OBJECT public: - explicit WebProfileManager(const QHash<QString, QString> &profileSection, QObject *parent); + explicit WebProfileManager(const ProfileDefault_t &profileSection, QObject *parent); ~WebProfileManager(); /** Create a profile with specified id @@ -72,7 +79,7 @@ private: }; QMap<QString, Profile> profiles; - const QHash<QString, QString> defaults; + const ProfileDefault_t defaults; }; #endif // SMOLBOTE_PROFILEMANAGER_H |