37
|
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: Implementation of TPhoneCmdParamMessageEditor class.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
// INCLUDE FILES
|
|
20 |
|
|
21 |
#include "tphonecmdparammessageeditor.h"
|
|
22 |
#include "phoneui.pan"
|
|
23 |
|
|
24 |
// ================= MEMBER FUNCTIONS =======================
|
|
25 |
|
|
26 |
// C++ default constructor can NOT contain any code, that
|
|
27 |
// might leave.
|
|
28 |
//
|
|
29 |
EXPORT_C TPhoneCmdParamMessageEditor::TPhoneCmdParamMessageEditor() :
|
|
30 |
TPhoneCommandParam(),
|
|
31 |
iMessageData( NULL )
|
|
32 |
{
|
|
33 |
iParamId = EPhoneParamIdMessageEditor;
|
|
34 |
}
|
|
35 |
|
|
36 |
// ---------------------------------------------------------
|
|
37 |
// TPhoneCmdParamMessageEditor::SetMessageData
|
|
38 |
// Sets message data for the message editor
|
|
39 |
// (other items were commented in a header).
|
|
40 |
// ---------------------------------------------------------
|
|
41 |
//
|
|
42 |
EXPORT_C void TPhoneCmdParamMessageEditor::SetMessageData(
|
|
43 |
CMessageData* aMessageData )
|
|
44 |
{
|
|
45 |
__ASSERT_DEBUG( aMessageData,
|
|
46 |
Panic( EPhoneUtilsParameterNotInitialized ) );
|
|
47 |
iMessageData = aMessageData;
|
|
48 |
}
|
|
49 |
|
|
50 |
// ---------------------------------------------------------
|
|
51 |
// TPhoneCmdParamMessageEditor::MessageData
|
|
52 |
// Returns message data for the message editor
|
|
53 |
// ---------------------------------------------------------
|
|
54 |
//
|
|
55 |
EXPORT_C CMessageData* TPhoneCmdParamMessageEditor::MessageData() const
|
|
56 |
{
|
|
57 |
__ASSERT_DEBUG( iMessageData, Panic( EPhoneUtilsInvariant ) );
|
|
58 |
return iMessageData;
|
|
59 |
}
|
|
60 |
|
|
61 |
// End of File
|