|
1 /* |
|
2 * Copyright (c) 2004 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: Implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include "CMCETestUIQuestionBase.h" |
|
21 |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // CMCETestUIQuestionBase::CMCETestUIQuestionBase |
|
25 // ----------------------------------------------------------------------------- |
|
26 // |
|
27 CMCETestUIQuestionBase::CMCETestUIQuestionBase() |
|
28 { |
|
29 } |
|
30 |
|
31 // ----------------------------------------------------------------------------- |
|
32 // CMCETestUIQuestionBase::~CMCETestUIQuestionBase |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 EXPORT_C CMCETestUIQuestionBase::~CMCETestUIQuestionBase() |
|
36 { |
|
37 delete iCaption; |
|
38 } |
|
39 |
|
40 // ----------------------------------------------------------------------------- |
|
41 // CMCETestUIQuestionBase::Caption |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 EXPORT_C const TDesC& CMCETestUIQuestionBase::Caption() const |
|
45 { |
|
46 if ( iCaption ) |
|
47 { |
|
48 return *iCaption; |
|
49 } |
|
50 return KNullDesC; |
|
51 } |
|
52 |
|
53 // ----------------------------------------------------------------------------- |
|
54 // CMCETestUIQuestionBase::SetCaptionL |
|
55 // ----------------------------------------------------------------------------- |
|
56 // |
|
57 void CMCETestUIQuestionBase::SetCaptionL( const TDesC& aCaption ) |
|
58 { |
|
59 delete iCaption; |
|
60 iCaption = NULL; |
|
61 iCaption = aCaption.AllocL(); |
|
62 } |
|
63 |
|
64 |
|
65 // End of File |