/*
 * Copyright (C) 2024, KylinSoft Co., Ltd.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 *
 * Authors: iaom <zhangpengfei@kylinos.cn>
 *
 */

#ifndef UKUI_QUICK_WIDGETINTERFACE_H
#define UKUI_QUICK_WIDGETINTERFACE_H
#define WidgetInterface_iid "org.ukui.quick.widgetInterface"
#define WIDGET_INTERFACE_VERSION "1.0.0"
#include <QAction>
#include <QList>
namespace UkuiQuick
{
/*!
    \class UkuiQuick::WidgetInterface
    \inmodule UkuiQuickFramework
    \inheaderfile widget-interface.h
    \brief 插件接口.

    WidgetInterface 是一个插件接口定义,插件可以选择实现这个接口以实现某些特性功能,如增加自定义右键菜单项等.
    这是一个可选接口,但可以脱离qmlUI单独加载,即可以实现一个不包含UI的插件,仅包含一个动态库的插件.
*/
class WidgetInterface
{
public:
    WidgetInterface()= default;
    virtual QList<QAction *> actions()
    {
        return {};
    };

};
}
Q_DECLARE_INTERFACE(UkuiQuick::WidgetInterface, WidgetInterface_iid)
Q_DECLARE_METATYPE(UkuiQuick::WidgetInterface *);

#endif //UKUI_QUICK_WIDGETINTERFACE_H
