• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDECore

Public Member Functions | List of all members
KFolderMimeType Class Reference

#include <kfoldermimetype.h>

Inheritance diagram for KFolderMimeType:
KMimeType KServiceType KSycocaEntry KShared

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:
  • kfoldermimetype.h
  • kfoldermimetype.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal