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();
290 virtual void updateStatus();
298 virtual void updateData();
300 void init(
bool allFields );
306 void setText(
int column,
const QString & text )
307 { QTreeWidgetItem::setText( column, text ); }
314 void setText(
int column,
double size );
320 ZyppPartitionDu _partitionDu;
326 #endif // ifndef YQPkgDiskUsageList_h bool inRange() const
Check if the value is in range, i.e.
YQPkgWarningRangeNotifier overflowWarning
Warning range notifier about disk space overflow warning.
virtual QString deviceName() const
The device name of this partition.
void enterProximity()
Notification that the proximity range is entered, i.e.
YQPkgWarningRangeNotifier()
Constructor.
bool needWarning() const
Check if a warning should be posted, i.e.
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.
bool leavingProximity() const
Check if the value is leaving the proximity range.
void warningPostedNotify()
Notification that a warning has been posted.
ZyppPartitionDu partitionDu() const
Returns the corresponding disk usage data.
virtual ~YQPkgDiskUsageListItem()
Destructor.
void setText(int column, const QString &text)
Re-declare ordinary setText() method so the compiler doesn't get confused which one to use...
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.