~ubuntu-branches/ubuntu/precise/gwenview/precise-proposed

« back to all changes in this revision

Viewing changes to lib/imageformats/jpeghandler.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:54 UTC
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20111215141754-z043hyx69dulbggf
Tags: upstream-4.7.90
Import upstream version 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// vim: set tabstop=4 shiftwidth=4 noexpandtab:
 
1
// vim: set tabstop=4 shiftwidth=4 expandtab:
2
2
/*
3
3
Gwenview: an image viewer
4
4
Copyright 2008 Aurélien Gâteau <agateau@kde.org>
28
28
 
29
29
// Local
30
30
 
31
 
namespace Gwenview {
32
 
 
 
31
namespace Gwenview
 
32
{
33
33
 
34
34
struct JpegHandlerPrivate;
35
35
/**
36
36
 * A Jpeg handler which is more aggressive when loading down sampled images.
37
37
 */
38
 
class JpegHandler : public QImageIOHandler {
 
38
class JpegHandler : public QImageIOHandler
 
39
{
39
40
public:
40
 
        JpegHandler();
41
 
        ~JpegHandler();
42
 
 
43
 
        bool canRead() const;
44
 
        bool read(QImage *image);
45
 
        bool write(const QImage& image);
46
 
 
47
 
        static bool canRead(QIODevice *device);
48
 
 
49
 
        QVariant option(ImageOption option) const;
50
 
        void setOption(ImageOption option, const QVariant &value);
51
 
        bool supportsOption(ImageOption option) const;
 
41
    JpegHandler();
 
42
    ~JpegHandler();
 
43
 
 
44
    bool canRead() const;
 
45
    bool read(QImage *image);
 
46
    bool write(const QImage& image);
 
47
 
 
48
    static bool canRead(QIODevice *device);
 
49
 
 
50
    QVariant option(ImageOption option) const;
 
51
    void setOption(ImageOption option, const QVariant &value);
 
52
    bool supportsOption(ImageOption option) const;
52
53
 
53
54
private:
54
 
        JpegHandlerPrivate* const d;
 
55
    JpegHandlerPrivate* const d;
55
56
};
56
57
 
57
 
 
58
58
} // namespace
59
59
 
60
60
#endif /* JPEGHANDLER_H */