summaryrefslogtreecommitdiffstats
path: root/tdeio/tdefile/tdefilemetapreview.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-27 01:04:16 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-27 01:04:16 -0600
commit5159cd2beb2e87806a5b54e9991b7895285c9d3e (patch)
tree9b70e8be47a390f8f4d56ead812ab0c9dad88709 /tdeio/tdefile/tdefilemetapreview.h
parentc17cb900dcf52b8bd6dc300d4f103392900ec2b4 (diff)
downloadtdelibs-5159cd2beb2e87806a5b54e9991b7895285c9d3e.tar.gz
tdelibs-5159cd2beb2e87806a5b54e9991b7895285c9d3e.zip
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'tdeio/tdefile/tdefilemetapreview.h')
-rw-r--r--tdeio/tdefile/tdefilemetapreview.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/tdeio/tdefile/tdefilemetapreview.h b/tdeio/tdefile/tdefilemetapreview.h
new file mode 100644
index 000000000..f26cd29b5
--- /dev/null
+++ b/tdeio/tdefile/tdefilemetapreview.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 <tqdict.h>
+#include <tqwidgetstack.h>
+
+#include <kpreviewwidgetbase.h>
+#include <kurl.h>
+
+class TDEIO_EXPORT KFileMetaPreview : public KPreviewWidgetBase
+{
+ Q_OBJECT
+
+public:
+ KFileMetaPreview(TQWidget *parent, const char *name = 0);
+ ~KFileMetaPreview();
+
+ virtual void addPreviewProvider( const TQString& mimeType,
+ KPreviewWidgetBase *provider );
+ virtual void clearPreviewProviders();
+
+public slots:
+ virtual void showPreview(const KURL &url);
+ virtual void clearPreview();
+
+protected:
+ virtual KPreviewWidgetBase *previewProviderFor( const TQString& mimeType );
+
+protected:
+ virtual void virtual_hook( int id, void* data );
+
+private:
+ void initPreviewProviders();
+
+ TQWidgetStack *m_stack;
+ TQDict<KPreviewWidgetBase> m_previewProviders;
+ bool haveAudioPreview;
+
+ // may return 0L
+ static KPreviewWidgetBase * createAudioPreview( TQWidget *parent );
+ static bool s_tryAudioPreview;
+
+private:
+ class KFileMetaPreviewPrivate;
+ KFileMetaPreviewPrivate *d;
+};
+
+#endif // KFILEMETAPREVIEW_H