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

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 407 of file kpropertiesdialog.h.


Constructor & Destructor Documentation

KFilePropsPlugin::KFilePropsPlugin KPropertiesDialog _props  ) 
 

Constructor.

Definition at line 630 of file kpropertiesdialog.cpp.

References QGridLayout::addLayout(), QGridLayout::addMultiCellWidget(), KDialogBase::addPage(), QGridLayout::addWidget(), QPtrList::count(), QPtrListIterator::current(), KPropertiesDialog::currentDir(), KMimeType::defaultMimeType(), KPropertiesDialog::defaultName(), KURL::directory(), endl(), KURL::fileName(), KIO::filesize_t, QString::find(), KIO::findPathMountPoint(), KDesktopFile::hasDeviceType(), KConfigBase::hasKey(), QPixmap::height(), KFileItem::isDir(), QString::isEmpty(), KFileItem::isLink(), KURL::isLocalFile(), QString::isNull(), KPropertiesDialog::item(), KPropertiesDialog::items(), kdDebug(), KFilePropsPlugin(), KPropertiesDialog::kurl(), KFileItem::linkDest(), KFileItem::mimeComment(), KFileItem::mimetype(), KFileItem::mode(), KURL::path(), QIconSet::pixmap(), KURL::prettyURL(), KURL::protocol(), KDiskFreeSp::readDF(), KConfigBase::readEntry(), KDesktopFile::readName(), QGridLayout::setColStretch(), KConfigBase::setDesktopGroup(), KIconButton::setIcon(), QPushButton::setIconSet(), KIconButton::setIconType(), QLabel::setPixmap(), KIconButton::setStrictIconSize(), QPushButton::setText(), QLabel::setText(), QDateTime::setTime_t(), KFileItem::size(), QString::startsWith(), KFileItem::time(), KGlobalSettings::trashPath(), KFileItem::url(), and QPixmap::width().

Referenced by KFilePropsPlugin().


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 1173 of file kpropertiesdialog.cpp.

References KPropertiesDialog::abortApplying(), KIO::copy(), KIO::encodeFileName(), endl(), QString::endsWith(), QString::isEmpty(), kdDebug(), KPropertiesDialog::kurl(), QString::length(), KIO::move(), KURL::path(), KPropertiesDialog::rename(), QString::truncate(), and KURL::url().

bool KFilePropsPlugin::supports KFileItemList  _items  )  [static]
 

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

Definition at line 1164 of file kpropertiesdialog.cpp.

References supports().

Referenced by supports().

void KFilePropsPlugin::postApplyChanges  ) 
 

Called after all plugins applied their changes.

Definition at line 1340 of file kpropertiesdialog.cpp.

References QValueList< KURL >::append(), QPtrListIterator::current(), and KPropertiesDialog::items().

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.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 16 17:22:35 2005 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003