KIO
kpreviewwidgetbase.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
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