libyui-qt-pkg  2.45.15
YQPkgDiskUsageListItem Class Reference
Inheritance diagram for YQPkgDiskUsageListItem:
Collaboration diagram for YQPkgDiskUsageListItem:

Public Member Functions

 YQPkgDiskUsageListItem (YQPkgDiskUsageList *parent, const ZyppPartitionDu &partitionDu)
 Constructor. More...
 
virtual ~YQPkgDiskUsageListItem ()
 Destructor.
 
ZyppPartitionDu partitionDu () const
 Returns the corresponding disk usage data.
 
void updateDuData (const ZyppPartitionDu &fromData)
 Update the disk usage data.
 
virtual FSize usedSize () const
 The currently used size of this partition. More...
 
virtual FSize totalSize () const
 The total size of this partition. More...
 
virtual QString name () const
 The name to display for this partition ( the mount point ). More...
 
virtual QString deviceName () const
 The device name of this partition. More...
 
void checkRemainingDiskSpace ()
 Check the remaining disk space of this partition based on percentage and absolute free MB. More...
 

Protected Attributes

ZyppPartitionDu _partitionDu
 
YQPkgDiskUsageList_pkgDiskUsageList
 

Detailed Description

Definition at line 219 of file YQPkgDiskUsageList.h.

Constructor & Destructor Documentation

◆ YQPkgDiskUsageListItem()

YQPkgDiskUsageListItem::YQPkgDiskUsageListItem ( YQPkgDiskUsageList parent,
const ZyppPartitionDu &  partitionDu 
)

Constructor.

Creates a YQPkgDiskUsageList item that corresponds to the specified file system.

Definition at line 277 of file YQPkgDiskUsageList.cc.

Here is the call graph for this function:

Member Function Documentation

◆ checkRemainingDiskSpace()

void YQPkgDiskUsageListItem::checkRemainingDiskSpace ( )

Check the remaining disk space of this partition based on percentage and absolute free MB.

Notify the parent YQPkgDiskUsageList's warning ranges accordingly.

Definition at line 318 of file YQPkgDiskUsageList.cc.

Here is the call graph for this function:

◆ deviceName()

virtual QString YQPkgDiskUsageListItem::deviceName ( ) const
inlinevirtual

The device name of this partition.

Reimplemented from QY2DiskUsageListItem.

Definition at line 271 of file YQPkgDiskUsageList.h.

◆ name()

QString YQPkgDiskUsageListItem::name ( ) const
virtual

The name to display for this partition ( the mount point ).

Reimplemented from QY2DiskUsageListItem.

Definition at line 302 of file YQPkgDiskUsageList.cc.

◆ totalSize()

FSize YQPkgDiskUsageListItem::totalSize ( ) const
virtual

The total size of this partition.

Reimplemented from QY2DiskUsageListItem.

Definition at line 295 of file YQPkgDiskUsageList.cc.

◆ usedSize()

FSize YQPkgDiskUsageListItem::usedSize ( ) const
virtual

The currently used size of this partition.

Reimplemented from QY2DiskUsageListItem.

Definition at line 288 of file YQPkgDiskUsageList.cc.


The documentation for this class was generated from the following files: