File indexing completed on 2024-05-12 16:25:41

0001 /*
0002    SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "libruqolacore_export.h"
0008 #include "localdatabasebase.h"
0009 #pragma once
0010 
0011 class LIBRUQOLACORE_EXPORT LocalAccountDatabase : public LocalDatabaseBase
0012 {
0013 public:
0014     LocalAccountDatabase();
0015     ~LocalAccountDatabase() override;
0016 
0017     void deleteAccount(const QString &accountName);
0018     void updateAccount(const QString &accountName, const QByteArray &ba);
0019 
0020     [[nodiscard]] QByteArray jsonAccount(const QString &accountName);
0021 
0022 protected:
0023     [[nodiscard]] QString schemaDataBase() const override;
0024 };