|
1 /* |
|
2 * Copyright (c) 2002-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: Responsible for launching positioning settings |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef EVTMGMTUILOCSETTINGSLAUNCHER_H |
|
19 #define EVTMGMTUILOCSETTINGSLAUNCHER_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32base.h> |
|
23 #include <locsettingsuiclient.h> |
|
24 |
|
25 class MEvtMgmtUiLocSettingsLauncherObserver; |
|
26 // CLASS DECLARATION |
|
27 /** |
|
28 * CEvtMgmtUiLocSettingsLauncher class |
|
29 * This class is a wrapper for launching Position settings |
|
30 */ |
|
31 |
|
32 class CEvtMgmtUiLocSettingsLauncher : public CActive |
|
33 |
|
34 { |
|
35 public: // Constructors and destructor |
|
36 /** |
|
37 * Two-phased constructor. |
|
38 * |
|
39 */ |
|
40 static CEvtMgmtUiLocSettingsLauncher* NewL(); |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 ~CEvtMgmtUiLocSettingsLauncher(); |
|
46 |
|
47 public: // new functions |
|
48 /* |
|
49 * It is used to launch position settings |
|
50 * |
|
51 * @since Symbian v9.1 |
|
52 * |
|
53 */ |
|
54 void LaunchL(); |
|
55 |
|
56 /* |
|
57 * It is used to set observer which will get notification |
|
58 * after completion of operation. |
|
59 * |
|
60 * @since Symbian v9.1 |
|
61 * |
|
62 */ |
|
63 void SetObserver( MEvtMgmtUiLocSettingsLauncherObserver* aObserver ); |
|
64 |
|
65 protected: // from CActive |
|
66 /* |
|
67 * Derived from CActive |
|
68 */ |
|
69 void RunL(); |
|
70 /* |
|
71 * Derived from CActive |
|
72 */ |
|
73 void DoCancel(); |
|
74 |
|
75 private: |
|
76 /** |
|
77 * Second phase of construction. |
|
78 */ |
|
79 void ConstructL(); |
|
80 |
|
81 /** |
|
82 * C++ default constructor. |
|
83 */ |
|
84 CEvtMgmtUiLocSettingsLauncher(); |
|
85 |
|
86 private: |
|
87 // Owns: Pointer to Location setings client library |
|
88 CLocSettingsUiClient* iClientLibrary; |
|
89 //Does not own : Observer to which completion of operation is notified. |
|
90 MEvtMgmtUiLocSettingsLauncherObserver* iObserver; |
|
91 }; |
|
92 |
|
93 #endif // EVTMGMTUILOCSETTINGSLAUNCHER_H |
|
94 |
|
95 // End of file |