]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/statusbar/spaceinfoobserver.h
Status bar: Hide the space free bar when size is unknown
[dolphin.git] / src / statusbar / spaceinfoobserver.h
index 144d11fa7f9fdf3b9fa9d1c7c1ee7f8b78cb46c9..67dbf15ec4801f472e0a23e307280565725f1f20 100644 (file)
 #ifndef SPACEINFOOBSERVER_H
 #define SPACEINFOOBSERVER_H
 
-#include <QObject>
-
 #include <KIO/Job>
 
+#include <QObject>
+
 class QUrl;
 class MountPointObserver;
 
@@ -40,6 +40,9 @@ public:
 
     void setUrl(const QUrl& url);
 
+public slots:
+    void update();
+
 signals:
     /**
      * This signal is emitted when the size or available space changes.
@@ -52,6 +55,7 @@ private slots:
 private:
     MountPointObserver* m_mountPointObserver;
 
+    bool    m_hasData;
     quint64 m_dataSize;
     quint64 m_dataAvailable;
 };