KIO
kpreviewwidgetbase.h
Go to the documentation of this file.
00001 /* This file is part of the KDE libraries 00002 * Copyright (C) 2001 Frerich Raabe <raabe@kde.org> 00003 * 2003 Carsten Pfeiffer <pfeiffer@kde.org> 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Library General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2 of the License, or (at your option) 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 __KPREVIEWWIDGETBASE_H__ 00022 #define __KPREVIEWWIDGETBASE_H__ 00023 00024 #include <QtGui/QWidget> 00025 00026 #include <kio/kio_export.h> 00027 00028 class KUrl; 00029 00043 class KIO_EXPORT KPreviewWidgetBase : public QWidget 00044 { 00045 Q_OBJECT 00046 00047 public: 00055 KPreviewWidgetBase(QWidget *parent); 00056 ~KPreviewWidgetBase(); 00057 00058 public Q_SLOTS: 00065 virtual void showPreview(const KUrl &url) = 0; 00066 00072 virtual void clearPreview() = 0; 00073 00074 QStringList supportedMimeTypes() const; 00075 00076 protected: 00077 void setSupportedMimeTypes( const QStringList& mimeTypes ); 00078 00079 private: 00080 class KPreviewWidgetBasePrivate; 00081 KPreviewWidgetBasePrivate *const d; 00082 00083 Q_DISABLE_COPY(KPreviewWidgetBase) 00084 }; 00085 00086 #endif
KDE 4.6 API Reference