camerauis/cameraapp/generic/inc/cambatterypanedrawer.h
branchRCL_3
changeset 22 f54ad444594d
parent 0 1ddebce53859
equal deleted inserted replaced
21:289bbfdb6627 22:f54ad444594d
   112         * Load layouts for elements in the battery pane
   112         * Load layouts for elements in the battery pane
   113         */
   113         */
   114         void LoadLayoutsL();
   114         void LoadLayoutsL();
   115         
   115         
   116         /**
   116         /**
   117         * Calculate height of 
       
   118         * @param aLevel Battery level
       
   119         * @return height
       
   120         */
       
   121         TInt BatteryStrengthIconHeight( TInt aLevel ) const;
       
   122         
       
   123         /**
       
   124         * Load icons needed for drawing the battery pane
   117         * Load icons needed for drawing the battery pane
   125         */
   118         */
   126         void LoadIconsL();
   119         void LoadIconsL();
   127 
   120 
   128         /**
   121         /**
   143 
   136 
   144     private: // Data
   137     private: // Data
   145         // Battery strength    
   138         // Battery strength    
   146         TInt        iBatteryStrength;
   139         TInt        iBatteryStrength;
   147 
   140 
   148         // Battery strength and battery icon
   141         
   149         CCamBitmapItem* iBatteryIcon; // own
   142         RPointerArray<CCamBitmapItem> iBatteryIcons;
   150         CCamBitmapItem* iBatteryStrengthIcon; // own
   143         
   151 
       
   152         // Rectangle of the battery pane
   144         // Rectangle of the battery pane
   153         TRect       iRect;
   145         TRect       iRect;
   154 
   146 
   155     };
   147     };
   156 
   148