]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/information/informationpanelcontent.h
Fix includes
[dolphin.git] / src / panels / information / informationpanelcontent.h
index 2a369bbbc40fa6412107f074813af3836a254951..6e4faec823f0e2bef97b011e7d47f57a2f07f6bf 100644 (file)
 #ifndef INFORMATIONPANELCONTENT_H
 #define INFORMATIONPANELCONTENT_H
 
-#include <KConfig>
+#include "config-baloo.h"
 #include <KFileItem>
 #include <KUrl>
-#include <KVBox>
+
+#include <QPointer>
+#include <QWidget>
 
 class KFileItemList;
 class PhononWidget;
@@ -34,9 +36,17 @@ class QString;
 class QLabel;
 class QScrollArea;
 
-namespace Nepomuk2 {
+namespace KIO {
+  class PreviewJob;
+}
+
+#ifndef HAVE_BALOO
+class KFileMetaDataWidget;
+#else
+namespace Baloo {
     class FileMetaDataWidget;
 }
+#endif
 
 /**
  * @brief Manages the widgets that display the meta information
@@ -130,13 +140,17 @@ private:
 private:
     KFileItem m_item;
 
-    bool m_pendingPreview;
+    QPointer<KIO::PreviewJob> m_previewJob;
     QTimer* m_outdatedPreviewTimer;
 
     PixmapViewer* m_preview;
     PhononWidget* m_phononWidget;
     QLabel* m_nameLabel;
-    Nepomuk2::FileMetaDataWidget* m_metaDataWidget;
+#ifndef HAVE_BALOO
+    KFileMetaDataWidget* m_metaDataWidget;
+#else
+    Baloo::FileMetaDataWidget* m_metaDataWidget;
+#endif
     QScrollArea* m_metaDataArea;
 
     PlacesItemModel* m_placesItemModel;