File: otpprovider.h

package info (click to toggle)
plasma-pass 1.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 516 kB
  • sloc: cpp: 1,316; xml: 28; makefile: 2; sh: 1
file content (30 lines) | stat: -rw-r--r-- 552 bytes parent folder | download | duplicates (2)
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_