commonutilities/imagedecoderwrapper/inc/glximagedecoderwrapper.h
changeset 23 74c9f037fd5d
child 33 1ee2af37811f
equal deleted inserted replaced
5:f7f0874bfe7d 23:74c9f037fd5d
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef GLXIMAGEDECODERWRAPPER_H
       
    19 #define GLXIMAGEDECODERWRAPPER_H
       
    20 #include <QObject>
       
    21 #include <QtGlobal>
       
    22 #include <QPixmap>
       
    23 #ifdef BUILD_IMAGEWRAPPER
       
    24 #define GLX_IMAGEWRAPPER_EXPORT Q_DECL_EXPORT
       
    25 #else
       
    26 #define GLX_IMAGEWRAPPER_EXPORT Q_DECL_IMPORT
       
    27 #endif
       
    28 class CGlxImageDecoder;
       
    29 class GLX_IMAGEWRAPPER_EXPORT GlxImageDecoderWrapper : public QObject
       
    30 {
       
    31     Q_OBJECT
       
    32 public:
       
    33 	/**
       
    34 	*constructor
       
    35 	*/
       
    36 	GlxImageDecoderWrapper();
       
    37 	~GlxImageDecoderWrapper();
       
    38 	void decodeImage(QString sourcePath);
       
    39 	QPixmap getPixmap();
       
    40 	void resetDecoder();
       
    41 	void decodedImageAvailable();
       
    42 signals:
       
    43      void pixmapDecoded();
       
    44 private:
       
    45 	CGlxImageDecoder* imageDecoder;
       
    46 };
       
    47 
       
    48 #endif //GLXIMAGEDECODERWRAPPER_H