libyui-qt-pkg  2.45.15.2
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...
 
virtual void updateStatus ()
 Update this item's status ( here: the numeric fields ). More...
 
virtual void updateData ()
 Update this item's data completely. More...
 
void init (bool allFields)
 
void setText (int column, const QString &text)
 Re-declare ordinary setText() method so the compiler doesn't get confused which one to use.
 
void setText (int column, double size)
 set the text label with the size 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 378 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 362 of file YQPkgDiskUsageList.cc.

◆ setText()

void YQPkgDiskUsageListItem::setText ( int  column,
double  size 
)

set the text label with the size

Parameters
columncolumn to set
sizethe size value

Definition at line 340 of file YQPkgDiskUsageList.cc.

Here is the call graph for this function:

◆ totalSize()

FSize YQPkgDiskUsageListItem::totalSize ( ) const
virtual

The total size of this partition.

Reimplemented from QY2DiskUsageListItem.

Definition at line 355 of file YQPkgDiskUsageList.cc.

◆ updateData()

void YQPkgDiskUsageListItem::updateData ( )
virtual

Update this item's data completely.

Triggered by QY2ListView::updateAllItemData().

Reimplemented from QY2ListViewItem.

Definition at line 295 of file YQPkgDiskUsageList.cc.

◆ updateStatus()

void YQPkgDiskUsageListItem::updateStatus ( )
virtual

Update this item's status ( here: the numeric fields ).

Triggered by QY2ListView::updateAllItemStates().

Reimplemented from QY2ListViewItem.

Definition at line 288 of file YQPkgDiskUsageList.cc.

◆ usedSize()

FSize YQPkgDiskUsageListItem::usedSize ( ) const
virtual

The currently used size of this partition.

Reimplemented from QY2DiskUsageListItem.

Definition at line 348 of file YQPkgDiskUsageList.cc.


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