kio Library API Documentation

KDesktopPropsPlugin Class Reference

Used to edit the files containing [Desktop Entry] Type=Application. More...

#include <kpropertiesdialog.h>

Inheritance diagram for KDesktopPropsPlugin:

KPropsDlgPlugin QObject List of all members.

Public Slots

void slotAddFiletype ()
void slotDelFiletype ()
void slotBrowseExec ()
void slotAdvanced ()
void slotSelectMimetype ()

Public Member Functions

 KDesktopPropsPlugin (KPropertiesDialog *_props)
virtual ~KDesktopPropsPlugin ()
virtual void applyChanges ()

Static Public Member Functions

static bool supports (KFileItemList _items)

Detailed Description

Used to edit the files containing [Desktop Entry] Type=Application.

Such files are used to represent a program in kicker and konqueror.

Definition at line 774 of file kpropertiesdialog.h.


Constructor & Destructor Documentation

KDesktopPropsPlugin::KDesktopPropsPlugin KPropertiesDialog _props  ) 
 

Constructor.

Definition at line 2914 of file kpropertiesdialog.cpp.

References KPropertiesDesktopBase::addFiletypeButton, KDialogBase::addPage(), KPropertiesDesktopBase::advancedButton, KPropertiesDesktopBase::browseButton, KPropsDlgPlugin::changed(), QFile::close(), KPropertiesDesktopBase::commandEdit, KPropertiesDesktopBase::commentEdit, QObject::connect(), KMimeType::defaultMimeTypePtr(), KPropertiesDesktopBase::delFiletypeButton, KPropertiesDesktopBase::filetypeList, KPropertiesDesktopBase::genNameEdit, KConfigBase::hasKey(), QString::isEmpty(), KPropertiesDialog::kurl(), QString::left(), KURLRequester::lineEdit(), QString::lower(), KMimeType::mimeType(), KPropertiesDesktopBase::nameEdit, KPropertiesDesktopBase::nameLabel, QFile::open(), KURL::path(), KPropertiesDesktopBase::pathEdit, KPropsDlgPlugin::properties, KConfigBase::readBoolEntry(), KConfigBase::readEntry(), KConfigBase::readListEntry(), KConfigBase::readPathEntry(), QString::remove(), QListView::setAllColumnsShowFocus(), KConfigBase::setDesktopGroup(), KPropsDlgPlugin::setDirty(), KConfigBase::setDollarExpansion(), KURLRequester::setMode(), KLineEdit::setText(), slotAddFiletype(), slotAdvanced(), slotBrowseExec(), slotDelFiletype(), and KDialog::spacingHint().


Member Function Documentation

void KDesktopPropsPlugin::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 3157 of file kpropertiesdialog.cpp.

References QFile::close(), KPropertiesDesktopBase::commandEdit, KPropertiesDesktopBase::commentEdit, KGlobal::dirs(), KPropertiesDesktopBase::filetypeList, QListView::firstChild(), QString::fromLatin1(), KPropertiesDesktopBase::genNameEdit, QString::isEmpty(), kdDebug(), KPropertiesDialog::kurl(), KURLRequester::lineEdit(), KPropertiesDesktopBase::nameEdit, QListViewItem::nextSibling(), QFile::open(), KURL::path(), KPropertiesDesktopBase::pathEdit, KPropsDlgPlugin::properties, KService::rebuildKSycoca(), KStandardDirs::relativeLocation(), KConfigBase::setDesktopGroup(), KMessageBox::sorry(), QString::startsWith(), KSimpleConfig::sync(), QListViewItem::text(), QLineEdit::text(), KConfigBase::writeEntry(), and KConfigBase::writePathEntry().


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.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Feb 8 08:02:29 2006 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003