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.
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.