2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 BogDan Vatra <bog_dan_ro@yahoo.com>
|
|
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2013-09-17 18:24:57 +02:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2013-09-17 18:24:57 +02:00
|
|
|
|
|
|
|
|
#include <QAbstractListModel>
|
2013-09-27 09:35:49 +02:00
|
|
|
#include <QVector>
|
|
|
|
|
#include <QPair>
|
2013-09-17 18:24:57 +02:00
|
|
|
|
|
|
|
|
namespace Android {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
class CertificatesModel: public QAbstractListModel
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
CertificatesModel(const QString &rowCertificates, QObject *parent);
|
|
|
|
|
|
|
|
|
|
protected:
|
2018-07-25 12:19:15 +02:00
|
|
|
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
2013-09-17 18:24:57 +02:00
|
|
|
|
2018-07-25 12:19:15 +02:00
|
|
|
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
|
2013-09-17 18:24:57 +02:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
QVector<QPair<QString, QString> > m_certs;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|