#include <kcapacitybar.h>
class KDiskFreeSp;
+class QHideEvent;
+class QShowEvent;
/**
* @short Shows the available space for the volume represented
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