1/* This file is part of the KDE project
2 Copyright (C) 2010 Sebastian Trueg <trueg@kde.org>
3 Based on konq_popupmenuplugin.h Copyright 2008 David Faure <faure@kde.org>
4
5 This library is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Library General Public License as published
7 by the Free Software Foundation; either version 2 of the License or
8 ( at your option ) version 3 or, at the discretion of KDE e.V.
9 ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
20*/
21
22#ifndef KFILEITEMACTION_PLUGIN_H
23#define KFILEITEMACTION_PLUGIN_H
24
25#include <kio/kio_export.h>
26#include <QtCore/QObject>
27
28class QAction;
29class QMenu;
30class QWidget;
31class KFileItemListProperties;
32
33/**
34 * @deprecated use KAbstractFileItemActionPlugin instead
35 * (introduced in kdelibs-4.6.1 in order to remove the erroneous
36 * "const" in the actions method)
37 */
38class KIO_EXPORT_DEPRECATED KFileItemActionPlugin : public QObject
39{
40 Q_OBJECT
41
42public:
43 KFileItemActionPlugin(QObject *parent);
44
45 virtual ~KFileItemActionPlugin();
46
47 virtual QList<QAction*> actions(const KFileItemListProperties &fileItemInfos,
48 QWidget *parentWidget) const = 0;
49};
50
51#endif
52