48 lines
1.1 KiB
C++
Executable File
48 lines
1.1 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* PresentationManangement - Script Overview Dialog Model
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*
|
|
* Created by Mike Wille, SLSE, 2017-03-15
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <Services/PresentationManagement/logger.h>
|
|
#include <Plugins/PresentationManagement/Gui/Common/preguicommon_export.h>
|
|
|
|
#include <Plugins/PresentationManagement/Gui/Common/pre_model.h>
|
|
|
|
namespace PresentationManagement
|
|
{
|
|
|
|
class PREGUICOMMON_EXPORT PreMobileDialogModel : public PresentationManagementDialogModel
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit PreMobileDialogModel(QObject *parent = nullptr);
|
|
~PreMobileDialogModel();
|
|
|
|
QVariant data(const QModelIndex &, int) const override final;
|
|
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
|
bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override;
|
|
|
|
QVector<int> getDownloadedScriptIds() const;
|
|
|
|
Q_SIGNALS:
|
|
void checkboxClicked();
|
|
protected:
|
|
void switchCheckbox(const QModelIndex &index);
|
|
private:
|
|
friend class PreMobileDialogProxyModel;
|
|
|
|
QVector<bool> m_vecDownload;
|
|
|
|
int m_checkboxColumn;
|
|
LOGGER_T m_logger;
|
|
};
|
|
}
|