#ifndef SPACEINFOOBSERVER_H
#define SPACEINFOOBSERVER_H
-#include <QObject>
-
#include <KIO/Job>
+#include <QObject>
+
class QUrl;
class MountPointObserver;
Q_OBJECT
public:
- explicit SpaceInfoObserver(const QUrl& url, QObject* parent = 0);
+ explicit SpaceInfoObserver(const QUrl& url, QObject* parent = nullptr);
~SpaceInfoObserver() override;
quint64 size() const;
void setUrl(const QUrl& url);
+public slots:
+ void update();
+
signals:
/**
* This signal is emitted when the size or available space changes.
private:
MountPointObserver* m_mountPointObserver;
+ bool m_hasData;
quint64 m_dataSize;
quint64 m_dataAvailable;
};