tvout/tvoutengine/inc/glxhdmicontroller.h
changeset 52 a3a4c0de738e
parent 43 72396548277c
child 69 45459746d5e8
--- a/tvout/tvoutengine/inc/glxhdmicontroller.h	Sat Jul 10 00:59:39 2010 +0530
+++ b/tvout/tvoutengine/inc/glxhdmicontroller.h	Fri Jul 23 20:41:04 2010 +0530
@@ -1,4 +1,4 @@
-/*
+/**
 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). 
 * All rights reserved.
 * This component and the accompanying materials are made available
@@ -11,119 +11,157 @@
 *
 * Contributors:
 *
-* Description:    Handles & propogates UI state change notifications.
+* Description:    Creates the HDMI engine and provides functionality 
+*               for all its usage and needs through simple API's
 *
 */
 
+
 #ifndef GLXHDMICONTROLLER_H_
 #define GLXHDMICONTROLLER_H_
 
 // Internal includes
-
 class CGlxHdmiContainer;
 class CGlxHdmiSurfaceUpdater;
 
-/*
- * This class will be called from FS and Slideshow for its requirements 
- */
+/**
+ * Class Description
+ * This is the entry point of the HDMI engine.
+ * It Promisses to provide all HDMI functionality with simple API calls.
+ * 
+ * To Show an image on TV, create an instance of this object and call 
+ * CGlxHdmiController::SetImageL() with appropriate parameters.
+ * 
+ * To Shift from native to clone and vice versa, use ShiftToPostingMode() and 
+ * ShiftToCloningMode() respectively 
+ * 
+ * For Not supported items, make sure to call ItemNotSupported() API
+ */        
+
 class CGlxHdmiController : public CBase
     {
 public:
-    /*
+    /**
      * NewLC 
-     * @param1 - Image file path default to NULL
+     * @param aRect rect in which the CCoecontrol actually needs to be constructed
+     * @param EffectsOn - if the effect should be on, by default it is OFF, 
+     *  used only for SLIDESHOW
+     *   
+     * @return CGlxHdmiController object. 
      */
-    IMPORT_C static CGlxHdmiController* NewL(TBool aEfectsOn = EFalse);
+    IMPORT_C static CGlxHdmiController* NewL(TRect aRect ,TBool aEfectsOn = EFalse);
 
-    /*
+    /**
      * Destructor
      */
     IMPORT_C ~CGlxHdmiController();
     
-    /*
+    /**
      * Update Image
-     * @param1 - Image file path
+     * @param aImageFile  file path
+     * @param aFsBitmap Fullscreen bitmap, make sure to send a grid bitmap if FS bitmap not present
+     * @param aStore An internal parameter to store the image path or not, clients neednot use this. 
      */
     IMPORT_C void SetImageL(const TDesC& aImageFile, CFbsBitmap* aFsBitmap = NULL, 
             TBool aStore = ETrue);
 
-    /*
+    /**
      * To intimate that the item is not supported.  
      */
     IMPORT_C void ItemNotSupported();
     
-    /*
+    /**
      * Activating zoom in posting mode 
+     * @param aAutoZoomOut if it should auto zoom out
      */
     IMPORT_C void ActivateZoom(TBool aAutoZoomOut);
-    /*
+    
+    /**
      * Deactivating zoom in posting mode 
      */
     IMPORT_C void DeactivateZoom();
     
-    /*
+    /**
      * ShiftToCloningMode
+     * Shifts the TV UI to cloning mode if it is posting
+     * else does nothing
      */
     IMPORT_C void ShiftToCloningMode();
     
-    /*
+    /**
      * ShiftToPostingMode
+     * Shifts the TV UI to posting mode if cloning mode, 
+     * else does nothing
      */
     IMPORT_C void ShiftToPostingMode();
 
-    /*
+    /**
      * Fadeing of the Surface
-     * @param1 ETrue - FadeIn ( as in gaining brightness )
-     *         EFalse - FadeOut ( as in loosing brightness ) 
+     * @param aFadeInOut ETrue - FadeIn ( as in gaining brightness )
+     *                   EFalse - FadeOut ( as in loosing brightness ) 
      */
     IMPORT_C void FadeSurface(TBool aFadeInOut);
     
-private:
-    /*
+private:/// class private method
+    /**
      * Constructor
+     * @param aRect Rect size 
+     * @param aEfectsOn if effects needs to be on(used in Slideshow only)
      */
-    CGlxHdmiController(TBool aEfectsOn);
+    CGlxHdmiController(TRect aRect ,TBool aEfectsOn);
     
-    /*
+    /**
      * ConstructL 
      */
     void ConstructL();
     
-    /*
+    /**
      * Create the Hdmi Container 
      */
     void CreateHdmiContainerL();
     
-    /*
+    /**
      * Create surface updater and update background surface 
-     * @param1 - Image file     
+     * @param aImageFile Image file     
      */
     void CreateSurfaceUpdaterL(const TDesC& aImageFile);
     
-    /*
+    /**
      * To Destroy the surface updater if present
      */
     void DestroySurfaceUpdater();
     
-    /*
+    /**
      * Detroy the container 
      */
     void DestroyContainer();
 
-    /*
+    /**
      * Stores the Image File name
-     * @param1 - Image file
+     * @param aImageFile Image file path
+     * @param aFsBitmap Fullscreen Bitmap
      */
     void StoreImageInfoL(const TDesC& aImageFile, CFbsBitmap* aFsBitmap);
 
 private:
-    CFbsBitmap* iFsBitmap;
-    HBufC*  iStoredImagePath;
-    
+    /// Fullscreen Bitmap
+    CFbsBitmap*         iFsBitmap;
+    /**
+     * Stored image path 
+     */
+    HBufC*              iStoredImagePath;
+    /**
+     * Hdmi container
+     */
     CGlxHdmiContainer*      iHdmiContainer;
+    /// Surface updater instance
     CGlxHdmiSurfaceUpdater* iSurfaceUpdater;
-    TBool   iIsImageSupported;          // Flag to see if Image is supported
-    TBool   iEffectsOn;
+    /// Rect
+    TRect   iRect;                   
+    /// Flag to see if Image is supported
+    TBool   iIsImageSupported;      
+    /// Flag to set if effects should be on
+    TBool   iEffectsOn;                 
     };
 
 #endif /* GLXHDMICONTROLLER_H_ */