]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/jpeg/jpegloader.h
Add decorations for things which should be exported from the library
[libs/gui.git] / source / graphics / jpeg / jpegloader.h
index d45e599825abd150f10cce35644a2335bbda93e6..765183af1b4ca737e7c075f814f3c2b4dabec04d 100644 (file)
@@ -2,27 +2,27 @@
 #define MSP_GRAPHICS_JPEGLOADER_H_
 
 #include <msp/graphics/imageloader.h>
+#include <msp/graphics/mspgui_api.h>
 
 namespace Msp {
 namespace Graphics {
 
-class JpegLoader: public ImageLoader
+class MSPGUI_API JpegLoader: public ImageLoader
 {
 private:
        struct Private;
 
-       Private *priv;
-
-       static Register<JpegLoader> reg;
+       Private *priv = nullptr;
 
 public:
        JpegLoader(IO::Seekable &);
-       virtual ~JpegLoader();
+       ~JpegLoader();
 
        static unsigned get_signature_size() { return 3; }
        static bool detect(const std::string &);
 
-       virtual void load(Image::Data &);
+       void load_headers_(Image::Data &) override;
+       void load_pixels_(Image::Data &) override;
 };
 
 } // namespace Graphics