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 TPhoneCmdParamSingleItemFetch class.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
// INCLUDE FILES
|
|
20 |
#include "tphonecmdparamsingleitemfetch.h"
|
|
21 |
#include "phoneui.pan"
|
|
22 |
|
|
23 |
// ================= MEMBER FUNCTIONS =======================
|
|
24 |
|
|
25 |
// -----------------------------------------------------------------------------
|
|
26 |
// TPhoneCmdParamSingleItemFetch::TPhoneCmdParamSingleItemFetch
|
|
27 |
// C++ default constructor can NOT contain any code, that
|
|
28 |
// might leave.
|
|
29 |
// -----------------------------------------------------------------------------
|
|
30 |
//
|
|
31 |
EXPORT_C TPhoneCmdParamSingleItemFetch::TPhoneCmdParamSingleItemFetch():
|
|
32 |
TPhoneCommandParam(),
|
|
33 |
iType( CPhCntSingleItemFetch::EFetchDtmf ),
|
|
34 |
iTitlePaneResourceId( 0 ),
|
|
35 |
iCbaResourceId( 0 ),
|
|
36 |
iString( NULL )
|
|
37 |
{
|
|
38 |
iParamId = EPhoneParamIdSingleItemFetch;
|
|
39 |
}
|
|
40 |
|
|
41 |
// ---------------------------------------------------------
|
|
42 |
// TPhoneCmdParamSingleItemFetch::SetType
|
|
43 |
// Sets the single item fetch type
|
|
44 |
// (other items were commented in a header).
|
|
45 |
// ---------------------------------------------------------
|
|
46 |
//
|
|
47 |
EXPORT_C void TPhoneCmdParamSingleItemFetch::SetType(
|
|
48 |
CPhCntSingleItemFetch::TFetchType aType )
|
|
49 |
{
|
|
50 |
iType = aType;
|
|
51 |
}
|
|
52 |
|
|
53 |
// ---------------------------------------------------------
|
|
54 |
// TPhoneCmdParamSingleItemFetch::Type
|
|
55 |
// Returns the single item fetch type
|
|
56 |
// (other items were commented in a header).
|
|
57 |
// ---------------------------------------------------------
|
|
58 |
//
|
|
59 |
EXPORT_C CPhCntSingleItemFetch::TFetchType
|
|
60 |
TPhoneCmdParamSingleItemFetch::Type()
|
|
61 |
{
|
|
62 |
return iType;
|
|
63 |
}
|
|
64 |
|
|
65 |
// ---------------------------------------------------------
|
|
66 |
// TPhoneCmdParamSingleItemFetch::SetTitlePaneResourceId
|
|
67 |
// Sets the title pane resource id
|
|
68 |
// (other items were commented in a header).
|
|
69 |
// ---------------------------------------------------------
|
|
70 |
//
|
|
71 |
EXPORT_C void TPhoneCmdParamSingleItemFetch::SetTitlePaneResourceId(
|
|
72 |
TInt aTitlePaneResourceId )
|
|
73 |
{
|
|
74 |
__ASSERT_DEBUG( aTitlePaneResourceId,
|
|
75 |
Panic( EPhoneUtilsParameterNotInitialized ) );
|
|
76 |
iTitlePaneResourceId = aTitlePaneResourceId;
|
|
77 |
}
|
|
78 |
|
|
79 |
// ---------------------------------------------------------
|
|
80 |
// TPhoneCmdParamSingleItemFetch::TitleResourceId
|
|
81 |
// Returns the title pane resource id
|
|
82 |
// (other items were commented in a header).
|
|
83 |
// ---------------------------------------------------------
|
|
84 |
//
|
|
85 |
EXPORT_C TInt TPhoneCmdParamSingleItemFetch::TitlePaneResourceId() const
|
|
86 |
{
|
|
87 |
__ASSERT_DEBUG( iTitlePaneResourceId,
|
|
88 |
Panic( EPhoneUtilsInvariant ) );
|
|
89 |
return iTitlePaneResourceId;
|
|
90 |
}
|
|
91 |
|
|
92 |
// ---------------------------------------------------------
|
|
93 |
// TPhoneCmdParamSingleItemFetch::SetCbaResourceId
|
|
94 |
// Sets the single item fetch dialog CBA resource id
|
|
95 |
// (other items were commented in a header).
|
|
96 |
// ---------------------------------------------------------
|
|
97 |
//
|
|
98 |
EXPORT_C void TPhoneCmdParamSingleItemFetch::SetCbaResourceId(
|
|
99 |
TInt aCbaResourceId )
|
|
100 |
{
|
|
101 |
__ASSERT_DEBUG( aCbaResourceId,
|
|
102 |
Panic( EPhoneUtilsParameterNotInitialized ) );
|
|
103 |
iCbaResourceId = aCbaResourceId;
|
|
104 |
}
|
|
105 |
|
|
106 |
// ---------------------------------------------------------
|
|
107 |
// TPhoneCmdParamSingleItemFetch::CbaResourceId
|
|
108 |
// Returns the single item fetch dialog CBA resource id
|
|
109 |
// (other items were commented in a header).
|
|
110 |
// ---------------------------------------------------------
|
|
111 |
//
|
|
112 |
EXPORT_C TInt TPhoneCmdParamSingleItemFetch::CbaResourceId() const
|
|
113 |
{
|
|
114 |
__ASSERT_DEBUG( iCbaResourceId,
|
|
115 |
Panic( EPhoneUtilsInvariant ) );
|
|
116 |
return iCbaResourceId;
|
|
117 |
}
|
|
118 |
|
|
119 |
// ---------------------------------------------------------
|
|
120 |
// TPhoneCmdParamSingleItemFetch::SetString
|
|
121 |
// Sets the string for the single item fetch dialog
|
|
122 |
// (other items were commented in a header).
|
|
123 |
// ---------------------------------------------------------
|
|
124 |
//
|
|
125 |
EXPORT_C void TPhoneCmdParamSingleItemFetch::SetString( TDes* aString )
|
|
126 |
{
|
|
127 |
__ASSERT_DEBUG( aString,
|
|
128 |
Panic( EPhoneUtilsParameterNotInitialized ) );
|
|
129 |
iString = aString;
|
|
130 |
}
|
|
131 |
|
|
132 |
// ---------------------------------------------------------
|
|
133 |
// TPhoneCmdParamSingleItemFetch::String
|
|
134 |
// Returns the string for the single item fetch dialog
|
|
135 |
// (other items were commented in a header).
|
|
136 |
// ---------------------------------------------------------
|
|
137 |
//
|
|
138 |
EXPORT_C TDes* TPhoneCmdParamSingleItemFetch::String() const
|
|
139 |
{
|
|
140 |
__ASSERT_DEBUG( iString,
|
|
141 |
Panic( EPhoneUtilsInvariant ) );
|
|
142 |
return iString;
|
|
143 |
}
|
|
144 |
|
|
145 |
// End of File
|