]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/statusbarspaceinfo.h
* Use Nepomuk for getting the meta data instead of KFileMetaInfo.
[dolphin.git] / src / statusbarspaceinfo.h
index 93ea3fe9f3d522662fabb807128c35c380001564..06d0605381681f08b3c840d41d840588711d59f1 100644 (file)
@@ -29,6 +29,8 @@
 #include <kcapacitybar.h>
 
 class KDiskFreeSp;
+class QHideEvent;
+class QShowEvent;
 
 /**
  * @short Shows the available space for the volume represented
@@ -45,24 +47,18 @@ public:
     void setUrl(const KUrl& url);
     const KUrl& url() const;
 
-private slots:
-    void slotFoundMountPoint(const QString& mountPoint,
-                             quint64 kBSize,
-                             quint64 kBUsed,
-                             quint64 kBAvailable);
-
-    void slotDiskFreeSpaceDone();
+protected:
+    void showEvent(QShowEvent* event);
+    void hideEvent(QHideEvent* event);
 
+private slots:
     /** Refreshes the space information for the current set URL. */
     void refresh();
 
-    void showGettingSizeInfo();
-
 private:
-    bool m_gettingSize;
-    bool m_foundMountPoint;
     quint64 m_kBSize;
     KUrl m_url;
+    QTimer* m_timer;
 };
 
 inline const KUrl& StatusBarSpaceInfo::url() const