camerauis/cameraapp/generic/common/inc/CamCaptureSetupListItem.h
branchRCL_3
changeset 54 bac7acad7cb3
parent 0 1ddebce53859
child 57 2c87b2808fd7
equal deleted inserted replaced
53:61bc0f252b2b 54:bac7acad7cb3
       
     1 /*
       
     2 * Copyright (c) 2007 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:  A list box item with text, a bitmap and a value id
       
    15 *
       
    16 *  Copyright © 2007 Nokia.  All rights reserved.
       
    17 *  This material, including documentation and any related computer
       
    18 *  programs, is protected by copyright controlled by Nokia.  All
       
    19 *  rights are reserved.  Copying, including reproducing, storing,
       
    20 *  adapting or translating, any or all of this material requires the
       
    21 *  prior written consent of Nokia.  This material also contains
       
    22 *  confidential information which may not be disclosed to others
       
    23 *  without the prior written consent of Nokia.
       
    24 *
       
    25 *
       
    26 */
       
    27 
       
    28 
       
    29 #ifndef CAMCAPTURESETUPLISTITEM_H
       
    30 #define CAMCAPTURESETUPLISTITEM_H
       
    31 
       
    32 //  INCLUDES
       
    33 #include <AknUtils.h>
       
    34 #include "caminfolistboxitembase.h"
       
    35 
       
    36 
       
    37 // CONSTANTS
       
    38 
       
    39 
       
    40 // FORWARD DECLARATIONS
       
    41 class CFbsBitmap;
       
    42 class TResourceReader;
       
    43 
       
    44 /**
       
    45 *  A list item for CCamCaptureSetupListBox
       
    46 */
       
    47 class CCamCaptureSetupListItem : public CCamInfoListboxItemBase
       
    48 	{
       
    49     public:
       
    50 
       
    51         /**
       
    52         * Two-phased constructor.
       
    53         * @since 2.8
       
    54         * @param aReader Interpreter for the resource used to populate the item
       
    55         * @param aLayoutRect layout for icon displayed as part of list item
       
    56         * @return pointer to the created CCamCaptureSetupListItem object
       
    57         */
       
    58         static CCamCaptureSetupListItem* NewLC( TResourceReader& aReader, 
       
    59                                                 TAknLayoutRect& aIconLayout ); 
       
    60 
       
    61         /**
       
    62         * Two-phased constructor.
       
    63         * For construction with dynamic values, not resource.
       
    64         */
       
    65         static CCamCaptureSetupListItem* NewLC( 
       
    66                   const TDesC&                         aItemText,
       
    67                         TInt                           aSettingId,
       
    68                         TInt                           aBitmapId,
       
    69                         TAknLayoutRect aIconLayout );
       
    70         /**
       
    71         * Destructor.
       
    72         * @since 2.8
       
    73         */
       
    74         virtual ~CCamCaptureSetupListItem();
       
    75 
       
    76     private:
       
    77 
       
    78         /**
       
    79         * C++ default constructor.
       
    80         * @since 2.8
       
    81         */     
       
    82         CCamCaptureSetupListItem( TAknLayoutRect& aLayoutRect );
       
    83 
       
    84         /**
       
    85         * Construct the item using the supplied resource data
       
    86         * @since 2.8
       
    87         * @param aReader Resource interpreter intialised with resource data
       
    88         */   
       
    89         void ConstructFromResourceL( TResourceReader& aReader );
       
    90 
       
    91         /**
       
    92         * Construct the item using the supplied values
       
    93         */
       
    94         void ConstructFromValuesL( const TDesC& aItemText,
       
    95                                          TInt   aSettingId,
       
    96                                          TInt   aBitmapId );
       
    97 
       
    98         /**
       
    99         * Second phase construction
       
   100         */
       
   101         void ConstructL();
       
   102 
       
   103     private:
       
   104 
       
   105       // Layout for icon in list-box
       
   106         TAknLayoutRect iIconLayout;
       
   107 	};
       
   108 
       
   109 #endif      // CAMCAPTURESETUPLISTITEM_H   
       
   110             
       
   111 // End of File