1/**
2 * PIC_RW - Qt PIC Support
3 * Copyright (C) 2007 Ruben Lopez <r.lopez@bren.es>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 * ----------------------------------------------------------------------------
19 */
20
21#ifndef __PIC_IO_HANDLER_H__
22#define __PIC_IO_HANDLER_H__
23
24#include "pic_rw.h"
25#include <QtCore/QVariant>
26#include <QtGui/QImage>
27
28#include <iostream>
29
30class SoftimagePICHandler : public QImageIOHandler {
31public:
32 virtual bool canRead() const;
33 virtual bool read(QImage * image);
34 virtual bool write(const QImage &);
35 static bool canRead(QIODevice *device);
36 QByteArray name() const;
37
38 QVariant option(ImageOption option) const;
39 bool supportsOption(ImageOption option) const;
40};
41
42#endif//__PIC_IO_HANDLER_H__
43