camerauis/cameraapp/generic/inc/CamInfoListBoxModel.h
branchRCL_3
changeset 54 bac7acad7cb3
parent 0 1ddebce53859
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:  Model for CamInfoListBox*
       
    15 */
       
    16 
       
    17 
       
    18 #ifndef CAMINFOLISTBOXMODEL_H
       
    19 #define CAMINFOLISTBOXMODEL_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include "CamCaptureSetupListBoxModel.h"
       
    23 #include "CamAppController.h"
       
    24 
       
    25 // CLASS DECLARATION
       
    26 
       
    27 /**
       
    28 *  List box model for Camera scenes
       
    29 *
       
    30 *  @since 3.0
       
    31 */
       
    32 class CCamInfoListBoxModel : public CCamCaptureSetupListBoxModel
       
    33     {
       
    34     public:  // Constructors and destructor
       
    35         
       
    36         /**
       
    37         * Two-phased constructor.
       
    38         */
       
    39         static CCamInfoListBoxModel* NewLC( CCamAppController& aController,
       
    40         				 					 RPointerArray<HBufC>& aSummaryTitleTextArray,
       
    41         				                     RPointerArray<HBufC>& aSummaryDescriptionTextArray,
       
    42         				                     TInt aResourceId,
       
    43         				                     TRect aListBoxRect );
       
    44         
       
    45         /**
       
    46         * Destructor.
       
    47         */
       
    48         virtual ~CCamInfoListBoxModel();
       
    49 
       
    50   
       
    51     private:
       
    52 
       
    53         /**
       
    54         * C++ default constructor.
       
    55         */
       
    56         CCamInfoListBoxModel( CCamAppController& aController, 
       
    57         				 RPointerArray<HBufC>& aSummaryTitleTextArray,
       
    58         				 RPointerArray<HBufC>& aSummaryDescriptionTextArray );
       
    59 
       
    60         /**
       
    61         * By default Symbian 2nd phase constructor is private.
       
    62         */
       
    63         void ConstructL( TInt aResourceId, TRect aListBoxRect );
       
    64 
       
    65         /**
       
    66         * Get settings for all supported scenes
       
    67         * @since 3.0
       
    68         * @param aResourceId ID of resource definition for scenes
       
    69         */
       
    70         void GetListboxDataL( TInt aResourceId );
       
    71         
       
    72    
       
    73     private:    // Data
       
    74 				
       
    75 		// Array of title descriptions for the summary title lines 
       
    76         RPointerArray<HBufC>& iSummaryTitleTextArray;
       
    77         // Array of descriptons for the summary description lines
       
    78         RPointerArray<HBufC>& iSummaryDescriptionTextArray;
       
    79         
       
    80     };
       
    81 
       
    82 #endif      // CAMINFOLISTBOXMODEL_H   
       
    83             
       
    84 // End of File