KIO
kfilemetadataconfigurationwidget.h
Go to the documentation of this file.
00001 /***************************************************************************** 00002 * Copyright (C) 2009 by Peter Penz <peter.penz@gmx.at> * 00003 * * 00004 * This library is free software; you can redistribute it and/or * 00005 * modify it under the terms of the GNU Library General Public * 00006 * License as published by the Free Software Foundation; either * 00007 * version 2 of the License, or (at your option) any later version. * 00008 * * 00009 * This library is distributed in the hope that it will be useful, * 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00012 * Library General Public License for more details. * 00013 * * 00014 * You should have received a copy of the GNU Library General Public License * 00015 * along with this library; see the file COPYING.LIB. If not, write to * 00016 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * 00017 * Boston, MA 02110-1301, USA. * 00018 *****************************************************************************/ 00019 00020 #ifndef KFILEMETADATACONFIGURATIONWIDGET_H 00021 #define KFILEMETADATACONFIGURATIONWIDGET_H 00022 00023 #include <kio/kio_export.h> 00024 #include <kfileitem.h> 00025 00026 #include <QWidget> 00027 00028 00041 // TODO: A signal is required which indicates configuration changes. Otherwise 00042 // it would not be possible for an application developer to enable/disable an 00043 // "Apply" button of a dialog. 00044 class KIO_EXPORT KFileMetaDataConfigurationWidget : public QWidget 00045 { 00046 Q_OBJECT 00047 00048 public: 00049 explicit KFileMetaDataConfigurationWidget(QWidget* parent = 0); 00050 virtual ~KFileMetaDataConfigurationWidget(); 00051 00061 void setItems(const KFileItemList& items); 00062 KFileItemList items() const; 00063 00067 void save(); 00068 00070 virtual QSize sizeHint() const; 00071 00072 protected: 00073 virtual bool event(QEvent* event); 00074 00075 private: 00076 class Private; 00077 Private* const d; 00078 00079 Q_PRIVATE_SLOT(d, void loadMetaData()) 00080 Q_PRIVATE_SLOT(d, void slotLoadingFinished()) 00081 }; 00082 00083 #endif
KDE 4.6 API Reference