multimediacommsengine/tsrc/MCETestUI/MCETestUIEngine/inc/CMCETestUIQuestionSingleSelection.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2005 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:    See class definition below.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __CMCETESTUIQUESTIONSINGLESELECTION_H__
       
    21 #define __CMCETESTUIQUESTIONSINGLESELECTION_H__
       
    22 
       
    23 // INCLUDES
       
    24 #include "CMCETestUIQuestionBase.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 // CLASS DEFINITION
       
    29 /**
       
    30  * CMCETestUIQuestionSingleSelection is question that has a caption
       
    31  * (question or prompt) and several choices.
       
    32  */
       
    33 class CMCETestUIQuestionSingleSelection: public CMCETestUIQuestionBase
       
    34 	{
       
    35 	public:	// destructor
       
    36 
       
    37 		/// Virtual destructor
       
    38 		IMPORT_C virtual ~CMCETestUIQuestionSingleSelection();
       
    39 
       
    40 	public:	// Constructors
       
    41 	
       
    42        /**
       
    43         * Two-phased constructor. Not imported.
       
    44         */
       
    45         static CMCETestUIQuestionSingleSelection* NewLC();
       
    46 	
       
    47 	private: // Private consructors
       
    48 	
       
    49         /**
       
    50         * C++ default constructor.
       
    51         */
       
    52 		CMCETestUIQuestionSingleSelection();
       
    53 
       
    54        	/**
       
    55         * Second-phase constructor
       
    56         */
       
    57         void ConstructL();
       
    58 
       
    59 	public: // New methods, imported
       
    60 
       
    61         /* 
       
    62         * Gets available choices
       
    63         *
       
    64         * @return Reference to array of choices
       
    65         */
       
    66         IMPORT_C MDesCArray& Choices() const;    
       
    67 
       
    68 	public: // New methods
       
    69         
       
    70         /*
       
    71         * Appends a set of choices with a choice given as parameter
       
    72         */
       
    73         void AddChoiceL( const TDesC& aChoice );
       
    74 
       
    75 	protected:	// Data
       
    76 
       
    77 		/// Owned.
       
    78 		CDesCArray* iChoices;
       
    79 	
       
    80     };
       
    81 
       
    82 #endif // __CMCETESTUIQUESTIONSINGLESELECTION_H__