File indexing completed on 2024-04-28 05:34:16
0001 // SPDX-FileCopyrightText: 2021 Daniel Vrátil <dvratil@kde.org> 0002 // 0003 // SPDX-License-Identifier: LGPL-2.1-or-later 0004 0005 #ifndef OTPPROVIDER_H_ 0006 #define OTPPROVIDER_H_ 0007 0008 #include "providerbase.h" 0009 0010 namespace PlasmaPass 0011 { 0012 class PasswordsModel; 0013 0014 class OTPProvider : public ProviderBase 0015 { 0016 Q_OBJECT 0017 0018 friend class PasswordsModel; 0019 protected: 0020 explicit OTPProvider(const QString &path, QObject *parent = nullptr); 0021 0022 HandlingResult handleSecret(QStringView secret) override; 0023 0024 private: 0025 void handleTOTP(const QUrl &url); 0026 }; 0027 0028 } 0029 0030 #endif // OTPPROVIDER_H_