photosgallery/viewframework/tvout/inc/glxhdmicontroller.h
branchRCL_3
changeset 35 420f6808bf21
parent 32 78ad99c24f08
equal deleted inserted replaced
32:78ad99c24f08 35:420f6808bf21
    18 #ifndef GLXHDMICONTROLLER_H_
    18 #ifndef GLXHDMICONTROLLER_H_
    19 #define GLXHDMICONTROLLER_H_
    19 #define GLXHDMICONTROLLER_H_
    20 
    20 
    21 // Internal includes
    21 // Internal includes
    22 #include <mglxtvobserver.h>     // for inteface MGlxTvObserver
    22 #include <mglxtvobserver.h>     // for inteface MGlxTvObserver
       
    23 #include <mglxhdmidecoderobserver.h> //for MGlxHDMIDecoderObserver
    23 
    24 
    24 class CGlxHdmiContainer;
    25 class CGlxHdmiContainer;
    25 class CGlxHdmiSurfaceUpdater;
    26 class CGlxHdmiSurfaceUpdater;
    26 class CGlxTv;
    27 class CGlxTv;
    27 
    28 
    34 public:
    35 public:
    35     /*
    36     /*
    36      * NewLC 
    37      * NewLC 
    37      * @param1 - Image file path default to NULL
    38      * @param1 - Image file path default to NULL
    38      */
    39      */
    39     IMPORT_C static CGlxHdmiController* NewL();
    40     IMPORT_C static CGlxHdmiController* NewL(
       
    41             MGlxHDMIDecoderObserver& aDecoderObserver);
    40 
    42 
    41     /*
    43     /*
    42      * Destructor
    44      * Destructor
    43      */
    45      */
    44     IMPORT_C ~CGlxHdmiController();
    46     IMPORT_C ~CGlxHdmiController();
    45     
    47     
    46     /*
    48     /*
    47      * Update Image
    49      * Sets the Image to be displayed
    48      * @param1 - Image file path
    50      * @aImageFile - Image file path
       
    51      * @aNextImageFile - Next image file path
       
    52      * @aFsBitmap - Bitmap to be displayed
       
    53      * @aStore - Image info should be stored or not
    49      */
    54      */
    50     IMPORT_C void SetImageL(const TDesC& aImageFile, CFbsBitmap* aFsBitmap = NULL, 
    55     IMPORT_C void SetImageL(const TDesC& aImageFile, 
    51             TBool aStore = ETrue);
    56             const TDesC& aNextImageFile = KNullDesC, 
       
    57             CFbsBitmap* aFsBitmap = NULL, TBool aStore = ETrue);
    52 
    58 
    53     /*
    59     /*
    54      * To intimate that the item is not supported.  
    60      * To intimate that the item is not supported.  
    55      */
    61      */
    56     IMPORT_C void ItemNotSupported();
    62     IMPORT_C void ItemNotSupported();
    84 
    90 
    85 private:
    91 private:
    86     /*
    92     /*
    87      * Constructor
    93      * Constructor
    88      */
    94      */
    89     CGlxHdmiController();
    95     CGlxHdmiController(MGlxHDMIDecoderObserver& aDecoderObserver);
    90     
    96     
    91     /*
    97     /*
    92      * ConstructL 
    98      * ConstructL 
    93      */
    99      */
    94     void ConstructL();
   100     void ConstructL();
    98      */
   104      */
    99     void CreateHdmiContainerL();
   105     void CreateHdmiContainerL();
   100     
   106     
   101     /*
   107     /*
   102      * Create surface updater and update background surface 
   108      * Create surface updater and update background surface 
   103      * @param1 - Image file     
   109      * @aImageFile - Image file     
       
   110      * @aNextImageFile - Next image file     
   104      */
   111      */
   105     void CreateSurfaceUpdaterL(const TDesC& aImageFile);
   112     void CreateSurfaceUpdaterL(const TDesC& aImageFile,
       
   113             const TDesC& aNextImageFile = KNullDesC);
   106     
   114     
   107     /*
   115     /*
   108      * To Destroy the surface updater if present
   116      * To Destroy the surface updater if present
   109      */
   117      */
   110     void DestroySurfaceUpdater();
   118     void DestroySurfaceUpdater();
   114      */
   122      */
   115     void DestroyContainer();
   123     void DestroyContainer();
   116 
   124 
   117     /*
   125     /*
   118      * Stores the Image File name
   126      * Stores the Image File name
   119      * @param1 - Image file
   127      * @aImageFile - Image file path
       
   128      * @aNextImageFile - Next image file path
       
   129      * @aFsBitmap - Bitmap to be displayed
   120      */
   130      */
   121     void StoreImageInfoL(const TDesC& aImageFile, CFbsBitmap* aFsBitmap);
   131     void StoreImageInfoL(const TDesC& aImageFile,
       
   132             const TDesC& aNextImageFile, CFbsBitmap* aFsBitmap);
   122 
   133 
   123 private:
   134 private:
   124     CFbsBitmap* iFsBitmap;
   135     CFbsBitmap* iFsBitmap;
   125     HBufC*  iStoredImagePath;
   136     HBufC*  iStoredImagePath;
   126     
   137     HBufC*  iStoredNextImagePath;
   127     CGlxHdmiContainer*      iHdmiContainer;
   138     CGlxHdmiContainer*      iHdmiContainer;
   128     CGlxHdmiSurfaceUpdater* iSurfaceUpdater;
   139     CGlxHdmiSurfaceUpdater* iSurfaceUpdater;
   129     CGlxTv*  iGlxTvOut;
   140     CGlxTv*  iGlxTvOut;
   130     TBool   iIsImageSupported;          // Flag to see if Image is supported
   141     TBool   iIsImageSupported;          // Flag to see if Image is supported
   131     TBool   iIsPhotosInForeground;          // Flag for determine if Photos is in foreground
   142     TBool   iIsPhotosInForeground;          // Flag for determine if Photos is in foreground
       
   143 	MGlxHDMIDecoderObserver& iDecoderObserver;
   132     };
   144     };
   133 
   145 
   134 #endif /* GLXHDMICONTROLLER_H_ */
   146 #endif /* GLXHDMICONTROLLER_H_ */