KDE 5.0 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

KFilterDev Class Reference

from PyKDE5.karchive import *

Inherits: KCompressionDevice → QIODevice → QObject

Detailed Description

A class for reading and writing compressed data onto a device (e.g. file, but other usages are possible, like a buffer or a socket).

To simply read/write compressed files, see deviceForFile.

KFilterDev adds MIME type support to KCompressionDevice, and also provides compatibility methods for KDE 4 code.

Author:
David Faure <faure@kde.org>


Methods

 __init__ (self, QString fileName)

Static Methods

KCompressionDevice::CompressionType compressionTypeForMimeType (QString mimetype)

Method Documentation

__init__ (  self,
QString  fileName
)

Since:
5.0 Constructs a KFilterDev for a given FileName.

Parameters:
fileName  the name of the file to filter.


Static Method Documentation

KCompressionDevice::CompressionType compressionTypeForMimeType ( QString  mimetype
)

Returns the compression type for the given mimetype, if possible. Otherwise returns None. This handles simple cases like application/x-gzip, but also application/x-compressed-tar, and inheritance.

  • Full Index

Modules

  • karchive
  • kcoreaddons
  • kguiaddons
  • kitemmodels
  • kitemviews
  • kplotting
  • kwidgetsaddons
  • solid
  • sonnet
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal