|
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 __CMCETESTUIQUESTIONBASE_H__ |
|
21 #define __CMCETESTUIQUESTIONBASE_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include "MCETestUIEngineConstants.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 |
|
29 // CLASS DEFINITION |
|
30 /** |
|
31 * CMCETestUIQuestionBase implements the base class for all |
|
32 * MCETestUI questions meant to be asked from user. It provides common |
|
33 * interface for resolving meaning of a question. |
|
34 */ |
|
35 class CMCETestUIQuestionBase: public CBase |
|
36 { |
|
37 |
|
38 public: // destructor |
|
39 |
|
40 /** |
|
41 * Virtual destructor. |
|
42 */ |
|
43 IMPORT_C virtual ~CMCETestUIQuestionBase(); |
|
44 |
|
45 protected: // Constructors |
|
46 |
|
47 /** |
|
48 * C++ default constructor. |
|
49 */ |
|
50 CMCETestUIQuestionBase(); |
|
51 |
|
52 public: // New methods, imported |
|
53 |
|
54 /** |
|
55 * @return Question or prompt to be shown to user |
|
56 * to guide user in answering. |
|
57 */ |
|
58 IMPORT_C const TDesC& Caption() const; |
|
59 |
|
60 public: |
|
61 |
|
62 /** |
|
63 * @param aCaption question or prompt to be shown to user |
|
64 * to guide user in answering. |
|
65 */ |
|
66 void SetCaptionL( const TDesC& aCaption ); |
|
67 |
|
68 protected: // Data |
|
69 |
|
70 /// Owned. |
|
71 HBufC* iCaption; |
|
72 |
|
73 }; |
|
74 |
|
75 #endif // __CMCETESTUIQUESTIONBASE_H__ |