diff options
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; +}; |