2016-01-15 14:57:40 +01:00
|
|
|
/****************************************************************************
|
2013-09-30 15:32:06 +02:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 BogDan Vatra <bog_dan_ro@yahoo.com>
|
|
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2013-09-30 15:32:06 +02:00
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator.
|
|
|
|
|
**
|
|
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
2016-01-15 14:57:40 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2013-09-30 15:32:06 +02:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
2013-09-30 15:32:06 +02:00
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2013-09-30 15:32:06 +02:00
|
|
|
|
2018-06-13 17:27:40 +02:00
|
|
|
#include "android_global.h"
|
|
|
|
|
|
2013-09-30 15:32:06 +02:00
|
|
|
#include <QAbstractItemModel>
|
2013-10-01 17:06:58 +02:00
|
|
|
#include <QStringList>
|
2013-09-30 15:32:06 +02:00
|
|
|
|
2020-04-01 08:31:00 +02:00
|
|
|
namespace ProjectExplorer { class BuildSystem; }
|
2014-07-23 12:47:51 +02:00
|
|
|
|
2018-06-13 17:27:40 +02:00
|
|
|
namespace Android {
|
2013-09-30 15:32:06 +02:00
|
|
|
|
2018-06-13 17:27:40 +02:00
|
|
|
class ANDROID_EXPORT AndroidExtraLibraryListModel : public QAbstractItemModel
|
2013-09-30 15:32:06 +02:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2020-04-01 08:31:00 +02:00
|
|
|
|
2013-09-30 15:32:06 +02:00
|
|
|
public:
|
2020-04-01 08:31:00 +02:00
|
|
|
AndroidExtraLibraryListModel(ProjectExplorer::BuildSystem *buildSystem, QObject *parent);
|
2013-09-30 15:32:06 +02:00
|
|
|
|
2018-07-25 12:19:15 +02:00
|
|
|
QModelIndex index(int row, int column, const QModelIndex &parent) const override;
|
|
|
|
|
QModelIndex parent(const QModelIndex &child) const override;
|
|
|
|
|
int rowCount(const QModelIndex &parent) const override;
|
|
|
|
|
int columnCount(const QModelIndex &parent) const override;
|
|
|
|
|
QVariant data(const QModelIndex &index, int role) const override;
|
2013-09-30 15:32:06 +02:00
|
|
|
|
2013-10-02 16:17:25 +02:00
|
|
|
void removeEntries(QModelIndexList list);
|
2013-09-30 15:32:06 +02:00
|
|
|
void addEntries(const QStringList &list);
|
|
|
|
|
|
2014-03-11 18:05:17 +01:00
|
|
|
signals:
|
|
|
|
|
void enabledChanged(bool);
|
|
|
|
|
|
2013-09-30 15:32:06 +02:00
|
|
|
private:
|
2018-06-01 13:48:40 +02:00
|
|
|
void updateModel();
|
2015-02-18 16:01:58 +01:00
|
|
|
|
2020-04-01 08:31:00 +02:00
|
|
|
ProjectExplorer::BuildSystem *m_buildSystem;
|
2013-09-30 15:32:06 +02:00
|
|
|
QStringList m_entries;
|
|
|
|
|
};
|
|
|
|
|
|
2018-06-13 17:27:40 +02:00
|
|
|
} // namespace Android
|