KIO
kabstractfileitemactionplugin.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 KABSTRACTFILEITEMACTION_PLUGIN_H 00023 #define KABSTRACTFILEITEMACTION_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 00081 class KIO_EXPORT KAbstractFileItemActionPlugin : public QObject 00082 { 00083 Q_OBJECT 00084 00085 public: 00086 KAbstractFileItemActionPlugin(QObject *parent); 00087 00088 virtual ~KAbstractFileItemActionPlugin(); 00089 00100 virtual QList<QAction*> actions(const KFileItemListProperties &fileItemInfos, 00101 QWidget *parentWidget) = 0; 00102 }; 00103 00104 #endif
KDE 4.6 API Reference