multimediacommsengine/tsrc/MCETestUI/MCETestUIEngine/inc/CMCETestUIQuestionDataQuery.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 __CMCETESTUIQUESTIONDATAQUERY_H__
       
    21 #define __CMCETESTUIQUESTIONDATAQUERY_H__
       
    22 
       
    23 // INCLUDES
       
    24 #include "CMCETestUIQuestionBase.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 // CLASS DEFINITION
       
    29 /**
       
    30  * CMCETestUIQuestionDataQuery is question that has a caption
       
    31  * (question or prompt), single default value and ability to store answer. 
       
    32  * It expects one string as answer.
       
    33  */
       
    34 class CMCETestUIQuestionDataQuery: public CMCETestUIQuestionBase
       
    35 	{
       
    36 	public:	// destructor
       
    37 
       
    38     	/**
       
    39     	* Virtual destructor.
       
    40     	*/
       
    41 		IMPORT_C virtual ~CMCETestUIQuestionDataQuery();
       
    42 
       
    43 	public:	// Constructors
       
    44 	
       
    45        /**
       
    46         * Two-phased constructor. Not imported.
       
    47         */
       
    48         static CMCETestUIQuestionDataQuery* NewLC();
       
    49 	
       
    50 	private: // Private consructors
       
    51 	
       
    52         /**
       
    53         * C++ default constructor.
       
    54         */	
       
    55         CMCETestUIQuestionDataQuery();
       
    56 
       
    57 	public: // New methods, imported
       
    58 
       
    59         /**
       
    60         * @return Default answer to question
       
    61         */
       
    62         IMPORT_C const TDesC& DefaultValue() const;    
       
    63 
       
    64         /**
       
    65         * Sets the parameter as answer to question
       
    66         */
       
    67         IMPORT_C void SetAnswerL( const TDesC16& aAnswer );
       
    68 
       
    69 	public: // New methods
       
    70 
       
    71         /**
       
    72         * @return Answer to question
       
    73         */
       
    74         const TDesC8& Answer8() const;   
       
    75 
       
    76         /**
       
    77         * @return Answer to question
       
    78         */        
       
    79         const TDesC16& Answer() const; 
       
    80         
       
    81         /**
       
    82         * Sets the parameter as default answer to question
       
    83         */
       
    84         void SetDefaultValueL( const TDesC16& aDefaultValue );
       
    85  
       
    86         /**
       
    87         * Sets the parameter as default answer to question
       
    88         */
       
    89         void SetDefaultValueL( const TDesC8& aDefaultValue );
       
    90         
       
    91 	protected:	// Owned data
       
    92 
       
    93         HBufC8* iAnswer8;
       
    94 		HBufC16* iAnswer;
       
    95 		HBufC* iDefaultValue;
       
    96 	    
       
    97     };
       
    98 
       
    99 #endif // __CMCETESTUIQUESTIONDATAQUERY_H__