|
1 /* |
|
2 * Copyright (c) 2002-2003 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: It defines window animation service, which provides service |
|
15 * to clear blacklist upon next key event. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef CPHONEBLACKLISTANIM_H |
|
22 #define CPHONEBLACKLISTANIM_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <w32adll.h> |
|
26 #include <etel.h> |
|
27 #include <etelmm.h> |
|
28 #include <rmmcustomapi.h> |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * It is blacklist window animation class. |
|
34 * |
|
35 * @since 2.0 |
|
36 */ |
|
37 class CPhoneBlacklistAnim |
|
38 : public CWindowAnim |
|
39 { |
|
40 public: // Constructors and destructors |
|
41 |
|
42 /** |
|
43 * Constructor. |
|
44 */ |
|
45 CPhoneBlacklistAnim(); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 ~CPhoneBlacklistAnim(); |
|
51 |
|
52 public: // From base classes |
|
53 |
|
54 /** |
|
55 * From CWindowAnim, handles commands. |
|
56 * @param aOpcode command. |
|
57 * @param aArgs parameters. |
|
58 * @return error code. |
|
59 */ |
|
60 virtual TInt CommandReplyL( |
|
61 TInt aOpcode, |
|
62 TAny* aArgs ); |
|
63 |
|
64 /** |
|
65 * From CWindowAnim, handles commands. |
|
66 * @param aOpcode command. |
|
67 * @param aArgs parameters. |
|
68 */ |
|
69 virtual void Command( |
|
70 TInt aOpcode, |
|
71 TAny* aArgs ); |
|
72 |
|
73 /** |
|
74 * From CWindowAnim, animate. |
|
75 * @param aDateTime NULL or current time. |
|
76 */ |
|
77 virtual void Animate( |
|
78 TDateTime* aDateTime ); |
|
79 |
|
80 /** |
|
81 * From CWindowAnim, second phase constructor. |
|
82 * @param aArgs parameters. |
|
83 * @param aHasFocus focus information. |
|
84 */ |
|
85 virtual void ConstructL( |
|
86 TAny* aArgs, |
|
87 TBool aHasFocus ); |
|
88 |
|
89 /** |
|
90 * From CWindowAnim, handles redraw request. |
|
91 */ |
|
92 virtual void Redraw(); |
|
93 |
|
94 /** |
|
95 * From CWindowAnim, handles focus changes. |
|
96 * |
|
97 * @param new focus state. |
|
98 */ |
|
99 virtual void FocusChanged( |
|
100 TBool aState ); |
|
101 |
|
102 /** |
|
103 * From CWindowAnim, handles keyevents. |
|
104 * |
|
105 * @param aRawEvent event. |
|
106 * @return ETrue if event is consumed. |
|
107 */ |
|
108 virtual TBool OfferRawEvent( |
|
109 const TRawEvent& aRawEvent ); |
|
110 |
|
111 private: |
|
112 |
|
113 // inner class to clear blacklist. |
|
114 class CClearBlacklist; |
|
115 |
|
116 // ETel session. |
|
117 /***************************************************** |
|
118 * Series 60 Customer / ETel |
|
119 * Series 60 ETel API |
|
120 *****************************************************/ |
|
121 RTelServer iServer; |
|
122 |
|
123 // Mobile phone session. |
|
124 /***************************************************** |
|
125 * Series 60 Customer / ETel |
|
126 * Series 60 ETel API |
|
127 *****************************************************/ |
|
128 RMobilePhone iPhone; |
|
129 |
|
130 // Custom API session. |
|
131 /***************************************************** |
|
132 * Series 60 Customer / ETel |
|
133 * Series 60 ETel API |
|
134 *****************************************************/ |
|
135 RMmCustomAPI iCustom; |
|
136 |
|
137 // If set true then next key event should cause black |
|
138 // list to be cleared. |
|
139 TBool iClearBlacklistOnNextEvent; |
|
140 |
|
141 // Owned blacklist clearer. |
|
142 CClearBlacklist* iActive; |
|
143 |
|
144 }; |
|
145 |
|
146 #endif // CPHONEBLACKLISTANIM_H |
|
147 |
|
148 // End Of File |