File indexing completed on 2024-05-05 16:08:25
0001 /* This file is part of the KDE project 0002 Copyright (C) 2010 Sebastian Trueg <trueg@kde.org> 0003 Based on konq_popupmenuplugin.h Copyright 2008 David Faure <faure@kde.org> 0004 0005 This library is free software; you can redistribute it and/or modify 0006 it under the terms of the GNU Library General Public License as published 0007 by the Free Software Foundation; either version 2 of the License or 0008 ( at your option ) version 3 or, at the discretion of KDE e.V. 0009 ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. 0010 0011 This library is distributed in the hope that it will be useful, 0012 but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0014 Library General Public License for more details. 0015 0016 You should have received a copy of the GNU Library General Public License 0017 along with this library; see the file COPYING.LIB. If not, write to 0018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0019 Boston, MA 02110-1301, USA. 0020 */ 0021 0022 #ifndef KFILEITEMACTION_PLUGIN_H 0023 #define KFILEITEMACTION_PLUGIN_H 0024 0025 #include <kdelibs4support_export.h> 0026 #include <QObject> 0027 0028 class QAction; 0029 class QMenu; 0030 class QWidget; 0031 class KFileItemListProperties; 0032 0033 /** 0034 * @deprecated use KAbstractFileItemActionPlugin instead 0035 * (introduced in kdelibs-4.6.1 in order to remove the erroneous 0036 * "const" in the actions method) 0037 */ 0038 class KDELIBS4SUPPORT_DEPRECATED_EXPORT KFileItemActionPlugin : public QObject 0039 { 0040 Q_OBJECT 0041 0042 public: 0043 KFileItemActionPlugin(QObject *parent); 0044 0045 ~KFileItemActionPlugin() override; 0046 0047 virtual QList<QAction *> actions(const KFileItemListProperties &fileItemInfos, 0048 QWidget *parentWidget) const = 0; 0049 }; 0050 0051 #endif