diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | ce4a32fe52ef09d8f5ff1dd22c001110902b60a2 (patch) | |
tree | 5ac38a06f3dde268dc7927dc155896926aaf7012 /kio/kfile/kfilemetapreview.h | |
download | tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.tar.gz tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kio/kfile/kfilemetapreview.h')
-rw-r--r-- | kio/kfile/kfilemetapreview.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/kio/kfile/kfilemetapreview.h b/kio/kfile/kfilemetapreview.h new file mode 100644 index 000000000..ae0650ea1 --- /dev/null +++ b/kio/kfile/kfilemetapreview.h @@ -0,0 +1,56 @@ +/* + * This file is part of the KDE project. + * Copyright (C) 2003 Carsten Pfeiffer <pfeiffer@kde.org> + * + * You can Freely distribute this program under the GNU Library General Public + * License. See the file "COPYING" for the exact licensing terms. + */ + +#ifndef KFILEMETAPREVIEW_H +#define KFILEMETAPREVIEW_H + +#include <qdict.h> +#include <qwidgetstack.h> + +#include <kpreviewwidgetbase.h> +#include <kurl.h> + +class KIO_EXPORT KFileMetaPreview : public KPreviewWidgetBase +{ + Q_OBJECT + +public: + KFileMetaPreview(QWidget *parent, const char *name = 0); + ~KFileMetaPreview(); + + virtual void addPreviewProvider( const QString& mimeType, + KPreviewWidgetBase *provider ); + virtual void clearPreviewProviders(); + +public slots: + virtual void showPreview(const KURL &url); + virtual void clearPreview(); + +protected: + virtual KPreviewWidgetBase *previewProviderFor( const QString& mimeType ); + +protected: + virtual void virtual_hook( int id, void* data ); + +private: + void initPreviewProviders(); + + QWidgetStack *m_stack; + QDict<KPreviewWidgetBase> m_previewProviders; + bool haveAudioPreview; + + // may return 0L + static KPreviewWidgetBase * createAudioPreview( QWidget *parent ); + static bool s_tryAudioPreview; + +private: + class KFileMetaPreviewPrivate; + KFileMetaPreviewPrivate *d; +}; + +#endif // KFILEMETAPREVIEW_H |