|
1 /* |
|
2 * Copyright (c) 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: Header file for Stylus Tap indicator |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_LCSTYLUSTAP_H |
|
20 #define C_LCSTYLUSTAP_H |
|
21 |
|
22 #include <AknIndicatorPlugin.h> |
|
23 |
|
24 |
|
25 class CLcStylusTapDismount; |
|
26 /** |
|
27 * Implements stylus tap actions for the indicator provided by |
|
28 * UID |
|
29 * @lib |
|
30 * @since S60 v5.0 |
|
31 */ |
|
32 |
|
33 NONSHARABLE_CLASS( CLcStylusTap ) : public CAknIndicatorPlugin |
|
34 { |
|
35 |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Two-phase constructor |
|
40 * @since S60 5.0 |
|
41 * @param none |
|
42 */ |
|
43 static CLcStylusTap* NewL( ); |
|
44 |
|
45 /** |
|
46 * Destructor |
|
47 */ |
|
48 virtual ~CLcStylusTap(); |
|
49 |
|
50 public: // CAknIndicatorPlugin |
|
51 |
|
52 /** |
|
53 * HandleIndicatorTapL is called when user tap on the UI |
|
54 * @since S60 5.0 |
|
55 * @param aUid, implementation Uid |
|
56 */ |
|
57 void HandleIndicatorTapL( const TInt aUid ); |
|
58 /** |
|
59 * TextL, the text that should be shown in the tap area |
|
60 * @since S60 5.0 |
|
61 * @param aUid, implementation Uid |
|
62 * @param aTextType, text type linked or no link |
|
63 */ |
|
64 HBufC* TextL( const TInt aUid, TInt& aTextType ); |
|
65 |
|
66 private: |
|
67 |
|
68 /** |
|
69 * C++ default constructor |
|
70 * @since S60 5.0 |
|
71 * @param none |
|
72 */ |
|
73 CLcStylusTap( ); |
|
74 |
|
75 /** |
|
76 * Symbian 2nd-phase constructor |
|
77 * @since S60 5.0 |
|
78 * @param none |
|
79 */ |
|
80 void ConstructL(); |
|
81 /** |
|
82 * Create the setting application |
|
83 * @since S60 5.0 |
|
84 * @param aProcessName, process name whose setting view will be launched |
|
85 * @param aUidType TUidType of the desired process |
|
86 */ |
|
87 void CreateDesiredViewL(const TDesC & aProcessName,const TUidType & aUidType) const; |
|
88 |
|
89 |
|
90 /** |
|
91 * Ejec usb memory |
|
92 */ |
|
93 void EjectUSBMemL(); |
|
94 |
|
95 private: // data |
|
96 /** |
|
97 * Dismount manageer |
|
98 * Own. |
|
99 */ |
|
100 CLcStylusTapDismount* iDismountManager; |
|
101 }; |
|
102 |
|
103 |
|
104 #endif // __LCSTYLUSTAP_H__ |