41 #ifndef YQPkgDiskUsageList_h 42 #define YQPkgDiskUsageList_h 44 #include <zypp/DiskUsageCounter.h> 45 #include <QY2DiskUsageList.h> 50 typedef zypp::DiskUsageCounter::MountPoint ZyppPartitionDu;
173 virtual QSize sizeHint()
const;
191 void updateDiskUsage();
197 void postPendingWarnings();
208 virtual void keyPressEvent( QKeyEvent * ev );
213 QMap<QString, YQPkgDiskUsageListItem*> _items;
228 const ZyppPartitionDu & partitionDu );
243 void updateDuData(
const ZyppPartitionDu & fromData );
250 virtual FSize usedSize()
const;
257 virtual FSize totalSize()
const;
264 virtual QString name()
const;
278 void checkRemainingDiskSpace();
285 ZyppPartitionDu _partitionDu;
291 #endif // ifndef YQPkgDiskUsageList_h YQPkgWarningRangeNotifier overflowWarning
Warning range notifier about disk space overflow warning.
bool leavingProximity() const
Check if the value is leaving the proximity range.
bool needWarning() const
Check if a warning should be posted, i.e.
bool inRange() const
Check if the value is in range, i.e.
void enterProximity()
Notification that the proximity range is entered, i.e.
YQPkgWarningRangeNotifier()
Constructor.
virtual QString deviceName() const
The device name of this partition.
virtual ~YQPkgDiskUsageList()
Destructor.
void clear()
Clear the current values, i.e.
YQPkgWarningRangeNotifier runningOutWarning
Warning range notifier about running out of disk space warning.
void enterRange()
Notification that the inner range is entered.
void clearHistory()
Clear everything, including all history values such as if a warning has been posted.
ZyppPartitionDu partitionDu() const
Returns the corresponding disk usage data.
void warningPostedNotify()
Notification that a warning has been posted.
virtual ~YQPkgDiskUsageListItem()
Destructor.
Helper class to manage warnings that are to be issued when a value enters a predefined range...
List of disk usage of all attached partitions.