|
1 /* |
|
2 * Copyright (c) 2002 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: RSysApNspsAnim implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "SysApNspsAnim.h" // This |
|
21 #include <coecntrl.h> // CCoeControl |
|
22 #include "NspsWsPluginDllStd.h" // Command |
|
23 |
|
24 // ============================ MEMBER FUNCTIONS ============================== |
|
25 |
|
26 // ---------------------------------------------------------------------------- |
|
27 // RSysApNspsAnim::RSysApNspsAnim( RAnimDll& aAnimDll ) |
|
28 // ---------------------------------------------------------------------------- |
|
29 |
|
30 RSysApNspsAnim::RSysApNspsAnim( RAnimDll& aAnimDll ) |
|
31 :RAnim( aAnimDll ) |
|
32 { |
|
33 } |
|
34 |
|
35 // ---------------------------------------------------------------------------- |
|
36 // RSysApNspsAnim::ConstructL( const RWindowBase& aDevice ) |
|
37 // ---------------------------------------------------------------------------- |
|
38 |
|
39 void RSysApNspsAnim::ConstructL( const RWindowBase& aDevice ) |
|
40 { |
|
41 // Creates a server side anim class |
|
42 RAnim::Construct( aDevice, EForwardRawKeyeventsForNsps, TPtrC8() ); |
|
43 } |
|
44 |
|
45 // ---------------------------------------------------------------------------- |
|
46 // RSysApNspsAnim::SetNspsOn() |
|
47 // ---------------------------------------------------------------------------- |
|
48 |
|
49 void RSysApNspsAnim::SetNspsOn() |
|
50 { |
|
51 Command( EActivateNspsKeyeventForwarding ); |
|
52 } |
|
53 |
|
54 // ---------------------------------------------------------------------------- |
|
55 // RSysApNspsAnim::SetNspsOff() |
|
56 // ---------------------------------------------------------------------------- |
|
57 |
|
58 void RSysApNspsAnim::SetNspsOff() |
|
59 { |
|
60 Command( EDeActivateNspsKeyeventForwarding ); |
|
61 } |
|
62 |
|
63 // ---------------------------------------------------------------------------- |
|
64 // RSysApNspsAnim::SetNspsOff() |
|
65 // ---------------------------------------------------------------------------- |
|
66 |
|
67 void RSysApNspsAnim::SetMessageTonePlaying() |
|
68 { |
|
69 Command( EActivateKeyeventForwardingForNcn ); |
|
70 } |
|
71 |
|
72 // ---------------------------------------------------------------------------- |
|
73 // RSysApNspsAnim::SetNspsOff() |
|
74 // ---------------------------------------------------------------------------- |
|
75 |
|
76 void RSysApNspsAnim::SetMessageToneNotPlaying() |
|
77 { |
|
78 Command( EDeActivateKeyeventForwardingForNcn ); |
|
79 } |
|
80 |
|
81 // ---------------------------------------------------------------------------- |
|
82 // RSysApNspsAnim::ActivateKeyeventForwardingForLights() |
|
83 // ---------------------------------------------------------------------------- |
|
84 |
|
85 void RSysApNspsAnim::ActivateKeyeventForwardingForLights() |
|
86 { |
|
87 Command( EActivateKeyeventForwardingForLights ); |
|
88 } |
|
89 |
|
90 // ---------------------------------------------------------------------------- |
|
91 // RSysApNspsAnim::DeActivateKeyeventForwardingForLights() |
|
92 // ---------------------------------------------------------------------------- |
|
93 |
|
94 void RSysApNspsAnim::DeActivateKeyeventForwardingForLights() |
|
95 { |
|
96 Command( EDeActivateKeyeventForwardingForLights ); |
|
97 } |
|
98 |
|
99 // End of File |
|
100 |
|
101 |
|
102 |
|
103 |
|
104 |
|
105 |
|
106 |
|
107 |