|
1 /* |
|
2 * Copyright (c) 2002-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: Input mode observer class definition |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef FREESTYLEEMAILUIINPUTMODEOBSERVER_H |
|
20 #define FREESTYLEEMAILUIINPUTMODEOBSERVER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> // CTimer |
|
24 #include <cenrepnotifyhandler.h> // MCenRepNotifyHandlerCallback |
|
25 |
|
26 // FORWARD DECLARATION |
|
27 class CFSEmailUiClsListsHandler; |
|
28 class CRepository; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Freestyle email application input mode observer class |
|
34 * |
|
35 * |
|
36 */ |
|
37 class CFSEmailUiInputModeObserver : public CBase, public MCenRepNotifyHandlerCallback |
|
38 { |
|
39 public: |
|
40 |
|
41 /** |
|
42 * Destructor |
|
43 */ |
|
44 virtual ~CFSEmailUiInputModeObserver(); |
|
45 |
|
46 /** |
|
47 * CFSEmailUiInputModeObserver two phase construction |
|
48 * @param aCr reference to aknfepcenrep session |
|
49 * @param aListHandler reference to cls list handler |
|
50 * @return A pointer to the created object |
|
51 */ |
|
52 static CFSEmailUiInputModeObserver* NewL( CRepository& aCr, |
|
53 CFSEmailUiClsListsHandler& aListHandler ); |
|
54 |
|
55 private: |
|
56 |
|
57 void HandleNotifyInt( TUint32 aId, TInt aNewValue ); |
|
58 void HandleNotifyReal( TUint32 aId, TReal aNewValue ); |
|
59 void HandleNotifyString( TUint32 aId, const TDesC16& aNewValue ); |
|
60 |
|
61 void HandleNotifyBinary( TUint32 aId, const TDesC8& aNewValue ); |
|
62 void HandleNotifyGeneric( TUint32 aId ); |
|
63 void HandleNotifyError( TUint32 aId, TInt aError, CCenRepNotifyHandler* aHandler ); |
|
64 |
|
65 /** |
|
66 * Constructor |
|
67 * @param aCr reference to aknfepcenrep session |
|
68 * @param aListHandler reference to cls list handler |
|
69 */ |
|
70 CFSEmailUiInputModeObserver( CRepository& aCr, CFSEmailUiClsListsHandler& aListHandler ); |
|
71 |
|
72 /** |
|
73 * Symbian 2nd phase constructor |
|
74 * @since 3.0 |
|
75 */ |
|
76 void ConstructL(); |
|
77 |
|
78 |
|
79 private: |
|
80 |
|
81 // Handle to parrot server client side |
|
82 CRepository& iAkvkFepCenRep; |
|
83 CCenRepNotifyHandler* iCenRepNotifyWrapper; |
|
84 |
|
85 CFSEmailUiClsListsHandler& iClsListHandler; |
|
86 }; |
|
87 |
|
88 |
|
89 #endif // FREESTYLEEMAILUIINPUTMODEOBSERVER_H |
|
90 |
|
91 // End of file |
|
92 |