kio Library API Documentation

KFolderType Class Reference

Mimetype for a folder (inode/directory) Handles locked folders, for instance. More...

#include <kmimetype.h>

Inheritance diagram for KFolderType:

KMimeType KServiceType KSycocaEntry KShared List of all members.

Public Methods

virtual QString icon (const QString &_url, bool _is_local) const
 Return the filename of the icon associated with the mimetype.

virtual QString icon (const KURL &_url, bool _is_local) const
 This function differs from the above only in that a KURL may be provided instead of a QString for convenience.

virtual QString comment (const QString &_url, bool _is_local) const
 The arguments are unused, but provided so that KMimeType derived classes can use them.

virtual QString comment (const KURL &_url, bool _is_local) const
 This function differs from the above only in that a KURL may be provided instead of a QString for convenience.


Protected Methods

virtual void virtual_hook (int id, void *data)

Detailed Description

Mimetype for a folder (inode/directory) Handles locked folders, for instance.

Definition at line 316 of file kmimetype.h.


Member Function Documentation

QString KFolderType::icon const QString   _url,
bool    _is_local
const [virtual]
 

Return the filename of the icon associated with the mimetype.

The arguments are unused, but provided so that KMimeType-derived classes can use them (e.g. KFolderType uses the URL to return one out of 2 icons)

Returns:
The path to the icon associated with this MIME type.

Reimplemented from KMimeType.

Definition at line 471 of file kmimetype.cpp.

References KServiceType::icon(), and QString::isEmpty().

Referenced by icon().

QString KFolderType::icon const KURL   _url,
bool    _is_local
const [virtual]
 

This function differs from the above only in that a KURL may be provided instead of a QString for convenience.

Reimplemented from KMimeType.

Definition at line 479 of file kmimetype.cpp.

References KURL::addPath(), QFile::encodeName(), KStandardDirs::exists(), icon(), KServiceType::icon(), QString::isEmpty(), and KURL::path().

QString KFolderType::comment const QString   _url,
bool    _is_local
const [virtual]
 

The arguments are unused, but provided so that KMimeType derived classes can use them.

Returns:
The descriptive comment associated with the MIME type, if any.

Reimplemented from KMimeType.

Definition at line 526 of file kmimetype.cpp.

References KMimeType::comment(), and QString::isEmpty().

Referenced by comment().

QString KFolderType::comment const KURL   _url,
bool    _is_local
const [virtual]
 

This function differs from the above only in that a KURL may be provided instead of a QString for convenience.

Reimplemented from KMimeType.

Definition at line 534 of file kmimetype.cpp.

References KURL::addPath(), comment(), KMimeType::comment(), QString::isEmpty(), and KURL::path().


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