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: This file contains class declaration for GPS indicator plugin. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_CLOCGPSINDICATORPLUGIN_H |
|
21 #define C_CLOCGPSINDICATORPLUGIN_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <AknIndicatorPlugin.h> // CAknIndicatorPlugin |
|
25 #include <AknPreviewPopUpController.h> // Controlling the preview pop-up component |
|
26 #include <eikcmobs.h> |
|
27 #include <ConeResLoader.h> |
|
28 |
|
29 /** |
|
30 * GPS indicator plugin implementation |
|
31 * This class handles the tap event generated by tapping on the GPS icon. |
|
32 * |
|
33 * @lib locgpsindicatorplugin |
|
34 * @since 5.0 |
|
35 */ |
|
36 class CLocGpsIndicatorPlugin : public CAknIndicatorPlugin, |
|
37 public MAknPreviewPopUpObserver, |
|
38 public MEikCommandObserver |
|
39 |
|
40 { |
|
41 public: |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 */ |
|
45 static CLocGpsIndicatorPlugin* NewL(); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 ~CLocGpsIndicatorPlugin(); |
|
51 |
|
52 private: // From CAknIndicatorPlugin |
|
53 |
|
54 /** |
|
55 * @see CAknIndicatorPlugin |
|
56 */ |
|
57 void HandleIndicatorTapL( const TInt aUid ); |
|
58 |
|
59 public: // From MEikCommandObserver |
|
60 |
|
61 /** |
|
62 * @see MEikCommandObserver |
|
63 */ |
|
64 void ProcessCommandL( TInt aCommandId ); |
|
65 |
|
66 public: // From MAknPreviewPopUpObserver |
|
67 |
|
68 /** |
|
69 * @see MAknPreviewPopUpObserver |
|
70 */ |
|
71 void HandlePreviewPopUpEventL( |
|
72 CAknPreviewPopUpController* aController, |
|
73 TPreviewPopUpEvent aEvent ); |
|
74 |
|
75 private: |
|
76 |
|
77 /** |
|
78 * C++ default constructor. |
|
79 */ |
|
80 CLocGpsIndicatorPlugin(); |
|
81 |
|
82 /** |
|
83 * By default Symbian 2nd phase constructor is private. |
|
84 */ |
|
85 void ConstructL(); |
|
86 }; |
|
87 |
|
88 #endif // C_LOCGPSINDICATORPLUGIN_H |
|
89 |
|
90 // End of File |
|