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

KDECore

Public Member Functions | List of all members
KMimeMagicRule Class Reference

#include <kmimemagicrule_p.h>

Public Member Functions

 KMimeMagicRule (const QString &mimetype, int priority, const QList< KMimeMagicMatch > &matches)
 
bool match (QIODevice *device, qint64 deviceSize, QByteArray &availableData) const
 
QList< KMimeMagicMatch > matches () const
 
QString mimetype () const
 
int priority () const
 

Detailed Description

Representation of a magic rule for a mimetype. For instance the following 4 lines from the magic file define one rule for matching application/docbook+xml: [90:application/docbook+xml] >0=^@^E<?xml 1>0=^@^Y-//OASIS//DTD DocBook XML+101 1>0=^@^W-//KDE//DTD DocBook XML+101

Definition at line 53 of file kmimemagicrule_p.h.

Constructor & Destructor Documentation

KMimeMagicRule::KMimeMagicRule ( const QString &  mimetype,
int  priority,
const QList< KMimeMagicMatch > &  matches 
)
inline

Definition at line 56 of file kmimemagicrule_p.h.

Member Function Documentation

bool KMimeMagicRule::match ( QIODevice *  device,
qint64  deviceSize,
QByteArray &  availableData 
) const

Definition at line 102 of file kmimemagicrule.cpp.

QList<KMimeMagicMatch> KMimeMagicRule::matches ( ) const
inline

Definition at line 64 of file kmimemagicrule_p.h.

QString KMimeMagicRule::mimetype ( ) const
inline

Definition at line 61 of file kmimemagicrule_p.h.

int KMimeMagicRule::priority ( ) const
inline

Definition at line 62 of file kmimemagicrule_p.h.


The documentation for this class was generated from the following files:
  • kmimemagicrule_p.h
  • kmimemagicrule.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:13 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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

Search



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