kio Library API Documentation

KFilePropsPlugin Class Reference

'General' plugin This plugin displays the name of the file, its size and access times. More...

#include <kpropertiesdialog.h>

Inheritance diagram for KFilePropsPlugin:

KPropsDlgPlugin QObject List of all members.

Public Member Functions

 KFilePropsPlugin (KPropertiesDialog *_props)
virtual void applyChanges ()
void postApplyChanges ()
void setFileNameReadOnly (bool ro)

Static Public Member Functions

static bool supports (KFileItemList _items)

Protected Slots

void slotEditFileType ()
void slotCopyFinished (KIO::Job *)
void slotFileRenamed (KIO::Job *, const KURL &, const KURL &)
void slotDirSizeUpdate ()
void slotDirSizeFinished (KIO::Job *)
void slotFoundMountPoint (const QString &mp, unsigned long kBSize, unsigned long kBUsed, unsigned long kBAvail)
void slotSizeStop ()
void slotSizeDetermine ()

Detailed Description

'General' plugin This plugin displays the name of the file, its size and access times.

Definition at line 495 of file kpropertiesdialog.h.


Constructor & Destructor Documentation

KFilePropsPlugin::KFilePropsPlugin KPropertiesDialog _props  ) 
 

Constructor.

Definition at line 663 of file kpropertiesdialog.cpp.

References KDialogBase::addPage(), KIcon::Application, KIO::convertSize(), KPropertiesDialog::currentDir(), KMimeType::defaultMimeType(), KPropertiesDialog::defaultName(), KIcon::Desktop, KIcon::Device, KIcon::FileSystem, KMimeType::findByFileContent(), KMimeType::findByURL(), KIO::findPathMountPoint(), KDesktopFile::hasDeviceType(), KConfigBase::hasKey(), KMimeType::iconForURL(), KGlobal::iconLoader(), KPropsDlgPlugin::isDesktopFile(), KFileItem::isDir(), KFileItem::isLink(), KURL::isLocalFile(), KPropertiesDialog::item(), KPropertiesDialog::items(), KIO::itemsSummaryString(), kdDebug(), KPropertiesDialog::kurl(), KFileItem::linkDest(), KGlobal::locale(), KFileItem::mimeComment(), KFileItem::mimetype(), KFileItem::mode(), KFileItem::name(), KURL::prettyURL(), KPropsDlgPlugin::properties, KDiskFreeSp::readDF(), KConfigBase::readEntry(), KDesktopFile::readName(), KConfigBase::setDesktopGroup(), KIconButton::setIcon(), KIconButton::setIconSize(), KIconButton::setIconType(), KIconButton::setStrictIconSize(), KFileItem::size(), KDialog::spacingHint(), KFileItem::time(), KIO::UDS_ACCESS_TIME, KIO::UDS_CREATION_TIME, and KIO::UDS_MODIFICATION_TIME.


Member Function Documentation

void KFilePropsPlugin::applyChanges  )  [virtual]
 

Applies all changes made.

This plugin must be always the first plugin in the dialog, since this function may rename the file which may confuse other applyChanges functions.

Reimplemented from KPropsDlgPlugin.

Definition at line 1236 of file kpropertiesdialog.cpp.

References KIO::copy(), KIO::encodeFileName(), kdDebug(), KPropertiesDialog::kurl(), KIO::move(), KPropsDlgPlugin::properties, KPropertiesDialog::rename(), KMessageBox::sorry(), KPropertiesDialog::updateUrl(), and KURL::url().

bool KFilePropsPlugin::supports KFileItemList  _items  )  [static]
 

Tests whether the files specified by _items need a 'General' plugin.

Definition at line 1227 of file kpropertiesdialog.cpp.

Referenced by KPropertiesDialog::canDisplay().

void KFilePropsPlugin::postApplyChanges  ) 
 

Called after all plugins applied their changes.

Definition at line 1407 of file kpropertiesdialog.cpp.

References KPropertiesDialog::items(), and KPropsDlgPlugin::properties.

Referenced by KPropertiesDialog::slotOk().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kio Library Version 3.4.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed May 4 07:13:46 2005 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003