|
1 /* |
|
2 * Copyright (c) 2007 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: A plug-in for turning tactile feedback on/off. |
|
15 * Part of: Tactile Feedback. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef C_TACTILEACTIONPLUGIN_H |
|
21 #define C_TACTILEACTIONPLUGIN_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <cfactionplugin.h> |
|
25 #include <e32base.h> |
|
26 |
|
27 /** |
|
28 * Class CTactileActionPlugIn. |
|
29 * |
|
30 * Turns tactile feedback on/off when needed. |
|
31 * Triggered when the conditions from the rule file are valid. |
|
32 */ |
|
33 class CTactileActionPlugIn : public CCFActionPlugIn |
|
34 { |
|
35 public: |
|
36 |
|
37 /** |
|
38 * Two phased constructor. |
|
39 */ |
|
40 static CTactileActionPlugIn* NewL(); |
|
41 |
|
42 /** |
|
43 * Two phased constructor. |
|
44 */ |
|
45 static CTactileActionPlugIn* NewLC(); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 ~CTactileActionPlugIn(); |
|
51 |
|
52 public: // From CCFActionPlugIn |
|
53 |
|
54 /** |
|
55 * @see CCFActionPlugIn |
|
56 */ |
|
57 void InitializeL(); |
|
58 |
|
59 /** |
|
60 * @see CCFActionPlugIn |
|
61 */ |
|
62 TExecutionTime ExecuteL( |
|
63 CCFActionIndication* aActionIndication ); |
|
64 |
|
65 /** |
|
66 * @see CCFActionPlugIn |
|
67 */ |
|
68 void GetActionsL( CDesCArray& aActionList ) const; |
|
69 |
|
70 /** |
|
71 * @see CCFActionPlugIn |
|
72 */ |
|
73 const TSecurityPolicy& SecurityPolicy() const; |
|
74 |
|
75 protected: |
|
76 |
|
77 /** |
|
78 * C++ constructor |
|
79 */ |
|
80 CTactileActionPlugIn(); |
|
81 |
|
82 private: |
|
83 TInt iFeedbackInCall; |
|
84 |
|
85 }; |
|
86 |
|
87 #endif // C_TACTILEACTIONPLUGIN_H |