kio Library API Documentation

KFilePermissionsPropsPlugin Class Reference

'Permissions' plugin In this plugin you can modify permissions and change the owner of a file. More...

#include <kpropertiesdialog.h>

Inheritance diagram for KFilePermissionsPropsPlugin:

KPropsDlgPlugin QObject List of all members.

Public Methods

 KFilePermissionsPropsPlugin (KPropertiesDialog *_props)
 Constructor.

virtual void applyChanges ()
 Applies all changes to the file.


Static Public Methods

bool supports (KFileItemList _items)
 Tests whether the file specified by _items needs a 'Permissions' plugin.


Detailed Description

'Permissions' plugin In this plugin you can modify permissions and change the owner of a file.

Definition at line 460 of file kpropertiesdialog.h.


Constructor & Destructor Documentation

KFilePermissionsPropsPlugin::KFilePermissionsPropsPlugin KPropertiesDialog   _props
 

Constructor.

Definition at line 1222 of file kpropertiesdialog.cpp.

References KCompletion::addItem(), QGridLayout::addMultiCellWidget(), KDialogBase::addPage(), QGridLayout::addRowSpacing(), QBoxLayout::addStretch(), QGridLayout::addWidget(), QBoxLayout::addWidget(), KPropsDlgPlugin::changed(), KGlobalSettings::CompletionAuto, KGlobalSettings::CompletionNone, QObject::connect(), QPtrList< KFileItem >::count(), QPtrListIterator< KFileItem >::current(), KPropertiesDialog::dialog(), KURL::fileName(), QString::fromLatin1(), QString::fromLocal8Bit(), KFileItem::group(), QComboBox::insertStringList(), KFileItem::isDir(), QString::isEmpty(), KFileItem::isLink(), KURL::isLocalFile(), KPropertiesDialog::item(), KPropertiesDialog::items(), KPropertiesDialog::kurl(), QObject::name(), KURL::path(), KFileItem::permissions(), KPropsDlgPlugin::properties, QCheckBox::setChecked(), QGridLayout::setColStretch(), KLineEdit::setCompletionMode(), KLineEdit::setCompletionObject(), QComboBox::setCurrentItem(), KCompletion::setItems(), QCheckBox::setNoChange(), QString::setNum(), KCompletion::setOrder(), QLabel::setText(), QCheckBox::setTristate(), QSize::setWidth(), KCompletion::Sorted, KDialog::spacingHint(), KFileItem::user(), and QSize::width().


Member Function Documentation

void KFilePermissionsPropsPlugin::applyChanges   [virtual]
 

Applies all changes to the file.

This function is called when the user presses 'Ok'. The last plugin inserted is called first.

Reimplemented from KPropsDlgPlugin.

Definition at line 1546 of file kpropertiesdialog.cpp.

References KIO::chmod(), QObject::connect(), QComboBox::currentText(), QPtrList< KFileItem >::first(), QString::isEmpty(), KPropertiesDialog::items(), QString::number(), KPropsDlgPlugin::properties, and QCheckBox::state().

bool KFilePermissionsPropsPlugin::supports KFileItemList    _items [static]
 

Tests whether the file specified by _items needs a 'Permissions' plugin.

Definition at line 1529 of file kpropertiesdialog.cpp.

Referenced by KPropertiesDialog::canDisplay().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.0.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Oct 8 12:21:36 2003 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001