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 Types

enum  PermissionsMode { PermissionsOnlyFiles = 0, PermissionsOnlyDirs = 1, PermissionsOnlyLinks = 2, PermissionsMixed = 3 }
enum  PermissionsTarget { PermissionsOwner = 0, PermissionsGroup = 1, PermissionsOthers = 2 }

Public Member Functions

 KFilePermissionsPropsPlugin (KPropertiesDialog *_props)
virtual void applyChanges ()

Static Public Member Functions

bool supports (KFileItemList _items)

Detailed Description

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

Definition at line 483 of file kpropertiesdialog.h.


Constructor & Destructor Documentation

KFilePermissionsPropsPlugin::KFilePermissionsPropsPlugin KPropertiesDialog _props  ) 
 

Constructor.

Definition at line 1404 of file kpropertiesdialog.cpp.

References KCompletion::addItem(), QGridLayout::addMultiCell(), QGridLayout::addMultiCellWidget(), KDialogBase::addPage(), QBoxLayout::addStretch(), QGridLayout::addWidget(), QBoxLayout::addWidget(), KPropsDlgPlugin::changed(), KCompletionBase::completionObject(), QPtrList::count(), QPtrListIterator::current(), endl(), KURL::fileName(), KFileItem::group(), QComboBox::insertStringList(), KFileItem::isDir(), QString::isEmpty(), KFileItem::isLink(), KURL::isLocalFile(), KPropertiesDialog::item(), KPropertiesDialog::items(), kdWarning(), KFilePermissionsPropsPlugin(), KPropertiesDialog::kurl(), KURL::path(), KFileItem::permissions(), KCompletionBase::setAutoDeleteCompletionObject(), QLabel::setBuddy(), QGridLayout::setColStretch(), KLineEdit::setCompletionMode(), KLineEdit::setCompletionObject(), QComboBox::setCurrentItem(), KCompletion::setItems(), QString::setNum(), KCompletion::setOrder(), KLineEdit::setText(), QString::startsWith(), KGlobalSettings::trashPath(), and KFileItem::user().

Referenced by KFilePermissionsPropsPlugin().


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

References QPtrList::append(), KIO::chmod(), QPtrList::count(), QPtrListIterator::current(), QComboBox::currentText(), QString::isEmpty(), KPropertiesDialog::items(), and QLineEdit::text().

bool KFilePermissionsPropsPlugin::supports KFileItemList  _items  )  [static]
 

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

Definition at line 1957 of file kpropertiesdialog.cpp.

References supports().

Referenced by supports().


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 Sat Jun 12 15:08:49 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003