1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
// SPDX-FileCopyrightText: 2021 Daniel Vrátil <dvratil@kde.org>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef OTPPROVIDER_H_
#define OTPPROVIDER_H_
#include "providerbase.h"
namespace PlasmaPass
{
class PasswordsModel;
class OTPProvider : public ProviderBase
{
Q_OBJECT
friend class PasswordsModel;
protected:
explicit OTPProvider(const QString &path, QObject *parent = nullptr);
HandlingResult handleSecret(QStringView secret) override;
private:
void handleTOTP(const QUrl &url);
};
}
#endif // OTPPROVIDER_H_
|