/usr/include/kimageio.h is in kdelibs5-dev 4:4.8.2-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | /*
* kimageio.h -- Declaration of interface to the KDE Image IO library.
* Copyright (c) 1998 Sirtaj Singh Kang <taj@kde.org>
*
* This library is distributed under the conditions of the GNU LGPL.
*/
#ifndef KIO_KIMAGEIO_H
#define KIO_KIMAGEIO_H
#include <QtCore/QStringList>
#include <QtCore/QString>
#include <kio/kio_export.h>
/**
* Methods to get information about image format names and
* the corresponding mime type. Also, you can get information about supported
* image types without loading all the imageformat plugins.
*
* The image processing backends are written as image handlers compatible
* with the QImageIOHandler format. The backends are Qt imageformat plugins.
* Each format can be identified by a unique type id string.
*
* \b Formats:
*
* Currently supported formats include:
* @li BMP \<read\> \<write\>
* @li EPS \<read\> \<write\>
* @li EXR \<read\>
* @li G3 \<read\>
* @li GIF \<read\>
* @li ICO \<read\>
* @li JP2 \<read\> \<write\>
* @li JPEG \<read\> \<write\>
* @li NETPBM \<read\> \<write\>
* @li PCX \<read\> \<write\>
* @li PNG \<read\> \<write, only with newer libraries\>
* @li TGA \<read\> \<write\>
* @li TIFF \<read\>
* @li XBM \<read\> \<write\>
* @li XPM \<read\> \<write\>
* @li XV \<read\> \<write\>
*
*/
namespace KImageIO
{
/**
* Possible image file access modes.
*
* Used in various KImageIO static function.
**/
enum Mode { Reading, Writing };
/**
* Returns a list of patterns of all KImageIO supported formats.
*
* These patterns can be passed to KFileDialog::getOpenFileName()
* or KFileDialog::getSaveFileName(), for example.
*
* @param mode Tells whether to retrieve modes that can be read or written.
* @return a space-separated list of file globs that describe the
* supported formats
*/
KIO_EXPORT QString pattern(Mode mode = Reading);
/**
* Returns the type of a MIME type.
* @param mimeType the MIME type to search
* @return type id(s) of the MIME type or QStringList() if the MIME type
* is not supported
*/
KIO_EXPORT QStringList typeForMime(const QString& mimeType);
/**
* Returns a list of all KImageIO supported formats.
*
* @param mode Tells whether to retrieve modes that can be read or written.
* @return a list of the type ids
*/
KIO_EXPORT QStringList types(Mode mode = Writing);
/**
* Returns a list of MIME types for all KImageIO supported formats.
*
* @param mode Tells whether to retrieve modes that can be read or written.
* @return a list if MIME types of the supported formats
*/
KIO_EXPORT QStringList mimeTypes( Mode mode = Writing );
/**
* Test to see whether a MIME type is supported to reading/writing.
* @param _mimeType the MIME type to check
* @param _mode Tells whether to check for reading or writing capabilities
* @return true if the type is supported
**/
KIO_EXPORT bool isSupported( const QString& mimeType, Mode mode = Writing );
}
#endif
|