KIO
kfileitemactionplugin.h
Go to the documentation of this file.
00001 /* This file is part of the KDE project 00002 Copyright (C) 2010 Sebastian Trueg <trueg@kde.org> 00003 Based on konq_popupmenuplugin.h Copyright 2008 David Faure <faure@kde.org> 00004 00005 This library is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU Library General Public License as published 00007 by the Free Software Foundation; either version 2 of the License or 00008 ( at your option ) version 3 or, at the discretion of KDE e.V. 00009 ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 Boston, MA 02110-1301, USA. 00020 */ 00021 00022 #ifndef KFILEITEMACTION_PLUGIN_H 00023 #define KFILEITEMACTION_PLUGIN_H 00024 00025 #include <kio/kio_export.h> 00026 #include <QtCore/QObject> 00027 00028 class QAction; 00029 class QMenu; 00030 class QWidget; 00031 class KFileItemListProperties; 00032 00038 class KIO_EXPORT_DEPRECATED KFileItemActionPlugin : public QObject 00039 { 00040 Q_OBJECT 00041 00042 public: 00043 KFileItemActionPlugin(QObject *parent); 00044 00045 virtual ~KFileItemActionPlugin(); 00046 00047 virtual QList<QAction*> actions(const KFileItemListProperties &fileItemInfos, 00048 QWidget *parentWidget) const = 0; 00049 }; 00050 00051 #endif
KDE 4.6 API Reference