KDECore
KFolderMimeType Class Reference
#include <kfoldermimetype.h>
Inheritance diagram for KFolderMimeType:
Public Member Functions | |
| KFolderMimeType (const QString &fullpath, const QString &name, const QString &comment) | |
| KFolderMimeType (QDataStream &str, int offset) | |
| ~KFolderMimeType () | |
Public Member Functions inherited from KMimeType | |
| virtual | ~KMimeType () |
| QStringList | allParentMimeTypes () const |
| QString | comment (const KUrl &url=KUrl()) const |
| QString | iconName (const KUrl &url=KUrl()) const |
| bool | is (const QString &mimeTypeName) const |
| bool | isDefault () const |
| QString | mainExtension () const |
| QString | parentMimeType () const |
| QStringList | parentMimeTypes () const |
| QStringList | patterns () const |
| QString | userSpecifiedIconName () const |
Public Member Functions inherited from KServiceType | |
| KServiceType (KDesktopFile *config) | |
| KServiceType (QDataStream &_str, int offset) | |
| virtual | ~KServiceType () |
| QString | comment () const |
| QString | desktopEntryPath () const |
| bool | inherits (const QString &servTypeName) const |
| bool | isDerived () const |
| QString | parentServiceType () const |
| Ptr | parentType () |
| QVariant::Type | propertyDef (const QString &_name) const |
| QStringList | propertyDefNames () const |
| QMap< QString, QVariant::Type > | propertyDefs () const |
| int | serviceOffersOffset () const |
| void | setServiceOffersOffset (int offset) |
Public Member Functions inherited from KSycocaEntry | |
| KSycocaEntry () | |
| virtual | ~KSycocaEntry () |
| QString | entryPath () const |
| bool | isDeleted () const |
| bool | isSeparator () const |
| bool | isType (KSycocaType t) const |
| bool | isValid () const |
| QString | name () const |
| int | offset () const |
| QVariant | property (const QString &name) const |
| QStringList | propertyNames () const |
| void | save (QDataStream &s) |
| void | setDeleted (bool deleted) |
| QString | storageId () const |
| KSycocaType | sycocaType () const |
Additional Inherited Members | |
Public Types inherited from KMimeType | |
| enum | FindByNameOption { DontResolveAlias , ResolveAliases = 1 } |
| typedef QList< Ptr > | List |
| typedef KSharedPtr< KMimeType > | Ptr |
Public Types inherited from KServiceType | |
| typedef QList< Ptr > | List |
| typedef KSharedPtr< KServiceType > | Ptr |
Public Types inherited from KSycocaEntry | |
| typedef QList< Ptr > | List |
| typedef KSharedPtr< KSycocaEntry > | Ptr |
Static Public Member Functions inherited from KMimeType | |
| static List | allMimeTypes () |
| static QString | defaultMimeType () |
| static KMimeType::Ptr | defaultMimeTypePtr () |
| static QString | extractKnownExtension (const QString &fileName) |
| static QString | favIconForUrl (const KUrl &url) |
| static Ptr | findByContent (const QByteArray &data, int *accuracy=0) |
| static Ptr | findByContent (QIODevice *device, int *accuracy=0) |
| static Ptr | findByFileContent (const QString &fileName, int *accuracy=0) |
| static Ptr | findByNameAndContent (const QString &name, const QByteArray &data, mode_t mode=0, int *accuracy=0) |
| static Ptr | findByNameAndContent (const QString &name, QIODevice *device, mode_t mode=0, int *accuracy=0) |
| static Ptr | findByPath (const QString &path, mode_t mode=0, bool fast_mode=false, int *accuracy=0) |
| static Ptr | findByUrl (const KUrl &url, mode_t mode=0, bool is_local_file=false, bool fast_mode=false, int *accuracy=0) |
| static QString | iconNameForUrl (const KUrl &url, mode_t mode=0) |
| static bool | isBinaryData (const QString &fileName) |
| static bool | isBufferBinaryData (const QByteArray &data) |
| static bool | matchFileName (const QString &filename, const QString &pattern) |
| static Ptr | mimeType (const QString &name, FindByNameOption options=ResolveAliases) |
| static int | sharedMimeInfoVersion () |
Static Public Member Functions inherited from KServiceType | |
| static List | allServiceTypes () |
| static Ptr | serviceType (const QString &_name) |
Static Public Member Functions inherited from KSycocaEntry | |
| static void | read (QDataStream &s, QString &str) |
| static void | read (QDataStream &s, QStringList &list) |
Protected Member Functions inherited from KMimeType | |
| KMimeType (const QString &fullpath, const QString &name, const QString &comment) | |
| KMimeType (KMimeTypePrivate &dd) | |
| KMimeType (KMimeTypePrivate &dd, const QString &name, const QString &comment) | |
| KMimeType (QDataStream &str, int offset) | |
Protected Member Functions inherited from KServiceType | |
| KServiceType (KServiceTypePrivate &dd) | |
| KServiceType (KServiceTypePrivate &dd, const QString &_name, const QString &_comment) | |
Protected Member Functions inherited from KSycocaEntry | |
| KSycocaEntry (KSycocaEntryPrivate &d) | |
Protected Attributes inherited from KSycocaEntry | |
| KSycocaEntryPrivate * | d_ptr |
Related Functions inherited from KSycocaEntry | |
| enum | KSycocaType |
Detailed Description
Mimetype for a folder (inode/directory)
- this header is not installed
Folder mime type. Handles the .directory file inside a folder, which modifies the comment and icon for this folder.
Definition at line 34 of file kfoldermimetype.h.
Constructor & Destructor Documentation
◆ KFolderMimeType() [1/2]
| KFolderMimeType::KFolderMimeType | ( | const QString & | fullpath, |
| const QString & | name, | ||
| const QString & | comment | ||
| ) |
Definition at line 54 of file kfoldermimetype.cpp.
◆ KFolderMimeType() [2/2]
| KFolderMimeType::KFolderMimeType | ( | QDataStream & | str, |
| int | offset | ||
| ) |
Definition at line 59 of file kfoldermimetype.cpp.
◆ ~KFolderMimeType()
| KFolderMimeType::~KFolderMimeType | ( | ) |
Destructor.
Definition at line 64 of file kfoldermimetype.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 26 2021 00:00:00 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 26 2021 00:00:00 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
Public Member Functions inherited from