]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/statusbar/spaceinfoobserver.h
Fix file preview for desktop files with absolute icon paths
[dolphin.git] / src / statusbar / spaceinfoobserver.h
index e1311abde592aefcbe222085d25f17250dcb6396..93f4c8c9146b6122be489264c58d7e04907b8111 100644 (file)
 #ifndef SPACEINFOOBSERVER_H
 #define SPACEINFOOBSERVER_H
 
-#include <QObject>
-
 #include <KIO/Job>
 
+#include <QObject>
+
 class QUrl;
 class MountPointObserver;
 
@@ -32,14 +32,17 @@ class SpaceInfoObserver : public QObject
     Q_OBJECT
 
 public:
-    explicit SpaceInfoObserver(const QUrl& url, QObject* parent = 0);
-    virtual ~SpaceInfoObserver();
+    explicit SpaceInfoObserver(const QUrl& url, QObject* parent = nullptr);
+    ~SpaceInfoObserver() override;
 
     quint64 size() const;
     quint64 available() const;
 
     void setUrl(const QUrl& url);
 
+public slots:
+    void update();
+
 signals:
     /**
      * This signal is emitted when the size or available space changes.