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