|
1 /* |
|
2 * Copyright (c) 2006-2006 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: CPSStateMapperText class declaration. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_PSSTATEMAPPERTEXT_H |
|
21 #define C_PSSTATEMAPPERTEXT_H |
|
22 |
|
23 #include <badesca.h> |
|
24 |
|
25 #include "psstatemapper.h" |
|
26 #include "textpair.h" |
|
27 |
|
28 /** |
|
29 * P&S state mapper for text type keys. |
|
30 * |
|
31 * @lib - |
|
32 * @since S60 4.0 |
|
33 */ |
|
34 NONSHARABLE_CLASS( CPSStateMapperText ): public CPSStateMapper |
|
35 { |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Creates a new P&S mapper. |
|
40 * |
|
41 * @since S60 40 |
|
42 * @param aParams P&S state mapper construction parameters. |
|
43 * @return CPSStateMapperText* |
|
44 */ |
|
45 static CPSStateMapperText* NewL( MCFContextInterface& aCF ); |
|
46 static CPSStateMapperText* NewLC( MCFContextInterface& aCF ); |
|
47 |
|
48 // Destructor |
|
49 ~CPSStateMapperText(); |
|
50 |
|
51 public: |
|
52 TInt MapperType() const; |
|
53 |
|
54 void AddMappingL(const TDesC& aPSValue, const TDesC& aContextValue); |
|
55 |
|
56 // from PsStateMapper |
|
57 void Define(); |
|
58 void InitializeL(); |
|
59 |
|
60 private: // From base classes |
|
61 |
|
62 // @see CPSStateMapper |
|
63 void ProperyChangedL(); |
|
64 |
|
65 private: |
|
66 |
|
67 CPSStateMapperText( MCFContextInterface& aCF ); |
|
68 |
|
69 static TInt StartCallback(TAny* aPtr); |
|
70 void DoStart(); |
|
71 |
|
72 private: // Data |
|
73 |
|
74 RTextPairPointerArray iTextMappings; |
|
75 |
|
76 CAsyncCallBack *iStartCB; |
|
77 }; |
|
78 |
|
79 |
|
80 #endif // C_PSSTATEMAPPERTEXT_H |