KDECore
Go to the documentation of this file.
21 #include <config-compression.h>
24 #include <QtCore/QIODevice>
27 #if HAVE_BZIP2_SUPPORT
34 class KFilterBase::Private
43 : m_dev( 0L ), m_bAutoDel( false ), d(new Private)
77 if ( fileName.endsWith( QLatin1String(
".gz"), Qt::CaseInsensitive ) )
81 #if HAVE_BZIP2_SUPPORT
82 if ( fileName.endsWith( QLatin1String(
".bz2"), Qt::CaseInsensitive ) )
84 return new KBzip2Filter;
88 if ( fileName.endsWith( QLatin1String(
".lzma"), Qt::CaseInsensitive ) || fileName.endsWith( QLatin1String(
".xz"), Qt::CaseInsensitive ) )
105 if (mimeType == QLatin1String(
"application/x-gzip")) {
108 #if HAVE_BZIP2_SUPPORT
109 if (mimeType == QLatin1String(
"application/x-bzip")
110 || mimeType == QLatin1String(
"application/x-bzip2")
112 return new KBzip2Filter;
116 if ( mimeType == QLatin1String(
"application/x-lzma" )
117 || mimeType == QLatin1String(
"application/x-xz" )
119 return new KXzFilter;
124 if (mime->
is(QString::fromLatin1(
"application/x-gzip"))) {
127 #if HAVE_BZIP2_SUPPORT
128 if (mime->
is(QString::fromLatin1(
"application/x-bzip"))) {
129 return new KBzip2Filter;
133 if (mime->
is(QString::fromLatin1(
"application/x-lzma"))) {
134 return new KXzFilter;
137 if (mime->
is(QString::fromLatin1(
"application/x-xz"))) {
138 return new KXzFilter;
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat May 18 2013 11:36:09 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.