/* This file is part of lomiri-action-api
* Copyright 2013 Canonical Ltd.
*
* lomiri-action-api is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License version 3,
* as published by the Free Software Foundation.
*
* lomiri-action-api is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranties of
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see .
*/
#ifndef LOMIRI_ACTION_QML_PREVIEW_ACTION
#define LOMIRI_ACTION_QML_PREVIEW_ACTION
namespace lomiri {
namespace action {
namespace qml {
class PreviewAction;
}
}
}
#include
#include
# if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#define QQMLISTPROPERTY_INT qsizetype
# else
#define QQMLISTPROPERTY_INT int
# endif
class Q_DECL_EXPORT lomiri::action::qml::PreviewAction : public lomiri::action::PreviewAction
{
Q_OBJECT
Q_DISABLE_COPY(PreviewAction)
Q_PROPERTY(QQmlListProperty parameters
READ parameters_list)
Q_CLASSINFO("DefaultProperty", "parameters")
public:
explicit PreviewAction(QObject *parent = 0);
virtual ~PreviewAction();
QQmlListProperty parameters_list();
private:
static void append(QQmlListProperty *list, lomiri::action::PreviewParameter *parameter);
static lomiri::action::PreviewParameter *at(QQmlListProperty *list, QQMLISTPROPERTY_INT index);
static void clear(QQmlListProperty *list);
static QQMLISTPROPERTY_INT count(QQmlListProperty *list);
signals:
};
#endif