digiKam
Digikam::FreeSpaceWidget Class Reference
+ Inheritance diagram for Digikam::FreeSpaceWidget:

Public Types

enum  FreeSpaceMode { AlbumLibrary = 0 , UMSCamera , GPhotoCamera }
 

Public Member Functions

void addInformation (unsigned long kBSize, unsigned long kBUsed, unsigned long kBAvail, const QString &mountPoint)
 
unsigned long estimatedDSizeKb () const
 
 FreeSpaceWidget (QWidget *const parent, int width)
 
bool isValid () const
 
unsigned long kBAvail () const
 
unsigned long kBAvail (const QString &path) const
 
unsigned long kBSize () const
 
unsigned long kBUsed () const
 
int percentUsed () const
 
void refresh ()
 
void setEstimatedDSizeKb (unsigned long dSize)
 
void setMode (FreeSpaceMode mode)
 
void setPath (const QString &path)
 
void setPaths (const QStringList &paths)
 
 ~FreeSpaceWidget () override
 

Protected Member Functions

void enterEvent (QEvent *) override
 
void leaveEvent (QEvent *) override
 
void paintEvent (QPaintEvent *) override
 
void updateToolTip ()
 

Member Enumeration Documentation

◆ FreeSpaceMode

Enumerator
AlbumLibrary 
UMSCamera 
GPhotoCamera 

Constructor & Destructor Documentation

◆ FreeSpaceWidget()

Digikam::FreeSpaceWidget::FreeSpaceWidget ( QWidget *const  parent,
int  width 
)
explicit

◆ ~FreeSpaceWidget()

Digikam::FreeSpaceWidget::~FreeSpaceWidget ( )
override

Member Function Documentation

◆ addInformation()

void Digikam::FreeSpaceWidget::addInformation ( unsigned long  kBSize,
unsigned long  kBUsed,
unsigned long  kBAvail,
const QString &  mountPoint 
)

◆ enterEvent()

void Digikam::FreeSpaceWidget::enterEvent ( QEvent *  e)
overrideprotected

◆ estimatedDSizeKb()

unsigned long Digikam::FreeSpaceWidget::estimatedDSizeKb ( ) const

◆ isValid()

bool Digikam::FreeSpaceWidget::isValid ( ) const

◆ kBAvail() [1/2]

unsigned long Digikam::FreeSpaceWidget::kBAvail ( ) const

◆ kBAvail() [2/2]

unsigned long Digikam::FreeSpaceWidget::kBAvail ( const QString &  path) const

◆ kBSize()

unsigned long Digikam::FreeSpaceWidget::kBSize ( ) const

Referenced by addInformation().

◆ kBUsed()

unsigned long Digikam::FreeSpaceWidget::kBUsed ( ) const

Referenced by addInformation().

◆ leaveEvent()

void Digikam::FreeSpaceWidget::leaveEvent ( QEvent *  e)
overrideprotected

◆ paintEvent()

void Digikam::FreeSpaceWidget::paintEvent ( QPaintEvent *  )
overrideprotected

References isValid().

◆ percentUsed()

int Digikam::FreeSpaceWidget::percentUsed ( ) const

◆ refresh()

void Digikam::FreeSpaceWidget::refresh ( )

Referenced by setPath(), and setPaths().

◆ setEstimatedDSizeKb()

void Digikam::FreeSpaceWidget::setEstimatedDSizeKb ( unsigned long  dSize)

References updateToolTip().

◆ setMode()

void Digikam::FreeSpaceWidget::setMode ( FreeSpaceMode  mode)

References AlbumLibrary.

◆ setPath()

void Digikam::FreeSpaceWidget::setPath ( const QString &  path)

References refresh().

◆ setPaths()

void Digikam::FreeSpaceWidget::setPaths ( const QStringList &  paths)

References refresh().

◆ updateToolTip()


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