diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-10-09 12:05:28 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-10-09 12:05:28 +0200 |
commit | 3639d5789259561c531a3481d7061a0cb492c644 (patch) | |
tree | c9c7ff04022b62cf5be4d4ea31bf28d966ccefda /include/browserinterface.h | |
parent | Create .profile file when adding a new profile (diff) | |
download | smolbote-3639d5789259561c531a3481d7061a0cb492c644.tar.xz |
Unlink plugins from lib/ libraries
Diffstat (limited to 'include/browserinterface.h')
-rw-r--r-- | include/browserinterface.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/browserinterface.h b/include/browserinterface.h new file mode 100644 index 0000000..25de65c --- /dev/null +++ b/include/browserinterface.h @@ -0,0 +1,24 @@ +/* + * 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: MIT + */ + +#pragma once + +class Profile; +class BrowserInterface +{ +public: + // configuration access + virtual const QStringList configurationOptions() const = 0; + virtual const QString configuration(const QString &key) const = 0; + virtual void setConfiguration(const QString &key, const QString &value) = 0; + + // profile access + virtual const QList<QPair<QString, Profile *>> profileList() const = 0; + virtual QPair<QString, Profile *> loadProfile(const QString &id, bool isOffTheRecord = true) = 0; + virtual void removeProfile(const QString &id) = 0; +}; |