00001 /* 00002 Copyright © 2009-2010 Thibaut Cuvelier 00003 00004 This file is part of QExtend. 00005 00006 QExtend is free software: you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation, either version 3 of the License, or 00009 any later version. 00010 00011 QExtend is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with QExtend. If not, see <http://www.gnu.org/licenses/>. 00018 */ 00019 00020 #ifndef QEXTEND_PLUGINS_IMAGEFORMATS_DEVIL_PLUGIN_H 00021 #define QEXTEND_PLUGINS_IMAGEFORMATS_DEVIL_PLUGIN_H 00022 00023 #include <QtGui/QImageIOPlugin> 00024 #include "../../../core/qextend_global.h" 00025 #include "handler.hpp" 00026 00027 namespace QExtend 00028 { 00029 00030 namespace DevIL 00031 { 00032 00033 00035 00037 00052 class DevILPlugin : public QImageIOPlugin 00053 { 00054 public: 00055 00056 00058 00059 00061 DevILPlugin(); 00062 00063 00064 00066 00067 00069 ~DevILPlugin(); 00070 00071 00072 00073 00074 00076 00077 00079 00103 QStringList keys() const; 00104 00105 00106 00108 00109 00111 00141 Capabilities capabilities (QIODevice * device, const QByteArray & format) const; 00142 00143 00144 00146 00147 00149 00174 QImageIOHandler * create (QIODevice * device, const QByteArray & format = QByteArray()) const; 00175 }; 00176 00177 } // namespace DevIL 00178 00179 } // namespace QExtend 00180 00181 #endif // QEXTEND_PLUGINS_IMAGEFORMATS_DEVIL_PLUGIN_H
© 2000-2024 - www.developpez.com