|
1 /* |
|
2 * Copyright (c) 2002-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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 // INCLUDE FILES |
|
26 #include "senuppercasetransform.h" |
|
27 #include "msencoreservicemanager.h" |
|
28 |
|
29 |
|
30 // Create instance of concrete ECOM interface implementation |
|
31 CSenUppercaseTransform* CSenUppercaseTransform::NewL( |
|
32 MSenCoreServiceManager& aServiceManager) |
|
33 { |
|
34 CSenUppercaseTransform* pNew = |
|
35 CSenUppercaseTransform::NewLC(aServiceManager); |
|
36 CleanupStack::Pop(); |
|
37 return pNew; |
|
38 } |
|
39 |
|
40 |
|
41 CSenUppercaseTransform* CSenUppercaseTransform::NewLC( |
|
42 MSenCoreServiceManager& aServiceManager) |
|
43 { |
|
44 CSenUppercaseTransform* pNew = |
|
45 new (ELeave) CSenUppercaseTransform(aServiceManager); |
|
46 CleanupStack::PushL(pNew); |
|
47 return pNew; |
|
48 } |
|
49 |
|
50 CSenUppercaseTransform::CSenUppercaseTransform( |
|
51 MSenCoreServiceManager& aServiceManager) |
|
52 : CSenPasswordTransform(aServiceManager) |
|
53 { |
|
54 } |
|
55 |
|
56 CSenUppercaseTransform::~CSenUppercaseTransform() |
|
57 { |
|
58 } |
|
59 |
|
60 // method does nothing |
|
61 TInt CSenUppercaseTransform::SetParameterL(TPtrC8 /* aName */, |
|
62 TPtrC8 /* aValue */) |
|
63 { |
|
64 // default does nothing |
|
65 return KErrNone; |
|
66 } |
|
67 |
|
68 HBufC8* CSenUppercaseTransform::TransformL(TPtrC8 aPassphrase) const |
|
69 { |
|
70 // NOTE: Conversion is implemented as appropriate to the current locale. |
|
71 HBufC8* pUpper = aPassphrase.AllocL(); |
|
72 TPtr8 upper = pUpper->Des(); |
|
73 upper.UpperCase(); |
|
74 return pUpper; |
|
75 } |
|
76 |
|
77 // End of File |