photosgallery/viewframework/medialists/inc/glximagereader.h
changeset 4 57d388cc48c1
parent 2 7d9067c6fcb1
child 14 ce1c7ad1f18b
equal deleted inserted replaced
3:9a9c174934f5 4:57d388cc48c1
    21 
    21 
    22 #include <imageconversion.h>
    22 #include <imageconversion.h>
    23 #include "glximageviewermanager.h"
    23 #include "glximageviewermanager.h"
    24 class CFbsBitmap;
    24 class CFbsBitmap;
    25 
    25 
    26 
    26 /**
       
    27  *  Image Size observer.
       
    28  *
       
    29  *  Callback interface for getting size information of a given image.
       
    30  */
    27 class MImageReadyCallBack
    31 class MImageReadyCallBack
    28     {
    32     {
    29 public:
    33 public:
    30     virtual void ImageReadyL(const TInt& aError, const TSize aSz) = 0;
    34     /**
       
    35      * Getting image size information is complete.
       
    36      *
       
    37      * @param aError         Error code.
       
    38      * @param aSz            Size of the image.
       
    39      */    
       
    40     virtual void ImageSizeReady(TInt aError, const TSize aSz) = 0;
    31     };
    41     };
    32 
    42 
    33 
    43 /**
       
    44  *  CGlxImageReader
       
    45  *
       
    46  *  Image Attributes Reader
       
    47  *
       
    48  *  @lib glxmedialists.lib
       
    49  */
    34 class CGlxImageReader : public CActive
    50 class CGlxImageReader : public CActive
    35     {
    51     {
    36 
       
    37 private:
    52 private:
    38     static CGlxImageReader* NewLC(MImageReadyCallBack& aNotify);
    53     static CGlxImageReader* NewLC(MImageReadyCallBack& aNotify);
    39     CGlxImageReader(MImageReadyCallBack& aNotify);
    54     CGlxImageReader(MImageReadyCallBack& aNotify);
    40     void ConstructL();
    55     void ConstructL();
    41 
       
    42     void GetFileTypeL(TDataType aMimeType);
    56     void GetFileTypeL(TDataType aMimeType);
    43 
    57 
    44 protected:
    58 protected:
    45     void DoCancel();
    59     void DoCancel();
    46     void RunL();
    60     void RunL();
    52 
    66 
    53 private:
    67 private:
    54     MImageReadyCallBack&                iNotify;
    68     MImageReadyCallBack&                iNotify;
    55     CImageDecoder*                      iImageDecoder;
    69     CImageDecoder*                      iImageDecoder;
    56     CFbsBitmap*                         iFrame;
    70     CFbsBitmap*                         iFrame;
    57     TBool                               iIsLaunchedFromFMngr;
       
    58     CGlxImageViewerManager*             iImgViewerMgr;
    71     CGlxImageViewerManager*             iImgViewerMgr;
    59     };
    72     };
    60 
    73 
    61 #endif /* GLXIMAGEREADER_H_ */
    74 #endif /* GLXIMAGEREADER_H_ */