aboutsummaryrefslogtreecommitdiff
path: root/include/browserinterface.h
blob: 25de65c40f8dc77edd1fb6262d3531a86abe9e7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
};