libkonq
konq_popupmenuinformation.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_POPUPMENUINFORMATION_H 00022 #define KONQ_POPUPMENUINFORMATION_H 00023 00024 #include "konq_fileitemcapabilities.h" 00025 #include <kurl.h> 00026 00027 class KonqPopupMenuInformationPrivate; 00028 class KFileItemList; 00029 class QWidget; 00030 00039 class LIBKONQ_EXPORT KonqPopupMenuInformation 00040 { 00041 public: 00045 KonqPopupMenuInformation(); 00046 00050 KonqPopupMenuInformation(const KonqPopupMenuInformation&); 00051 00055 ~KonqPopupMenuInformation(); 00056 00057 KonqPopupMenuInformation & operator=(const KonqPopupMenuInformation& o); 00058 00062 void setItems(const KFileItemList& items); 00063 00067 KFileItemList items() const; 00068 00072 KUrl::List urlList() const; 00073 00078 KonqFileItemCapabilities capabilities() const; 00079 00083 bool isDirectory() const; 00084 00088 QString mimeType() const; 00089 00093 QString mimeGroup() const; 00094 00098 void setParentWidget(QWidget* parentWidget); 00099 00103 QWidget* parentWidget() const; 00104 00105 private: 00106 QSharedDataPointer<KonqPopupMenuInformationPrivate> d; 00107 }; 00108 00109 #endif /* KONQ_POPUPMENUINFORMATION_H */ 00110