libkonq
konq_copytomenu.h
Go to the documentation of this file.00001 /* This file is part of the KDE project 00002 Copyright 2008 David Faure <faure@kde.org> 00003 00004 This library is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU Library General Public License as published 00006 by the Free Software Foundation; either version 2 of the License or 00007 ( at your option ) version 3 or, at the discretion of KDE e.V. 00008 ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public License 00016 along with this library; see the file COPYING.LIB. If not, write to 00017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 Boston, MA 02110-1301, USA. 00019 */ 00020 00021 #ifndef KONQ_COPYTOMENU_H 00022 #define KONQ_COPYTOMENU_H 00023 00024 #include <kurl.h> 00025 #include <kfileitem.h> 00026 #include <libkonq_export.h> 00027 00028 class QMenu; 00029 class KonqCopyToMenuPrivate; 00030 00034 class LIBKONQ_EXPORT KonqCopyToMenu 00035 { 00036 public: 00042 KonqCopyToMenu(); 00043 00047 ~KonqCopyToMenu(); 00048 00053 void setItems(const KFileItemList& items); 00054 00059 void setUrls(const KUrl::List& urls); 00060 00064 void setReadOnly(bool ro); 00065 00070 void addActionsTo(QMenu* menu); 00071 00072 private: 00073 KonqCopyToMenuPrivate* const d; 00074 }; 00075 00076 #endif /* KONQ_COPYTOMENU_H */