|
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 |
|
19 // INCLUDE FILES |
|
20 #include "evtmgmtuilocsettinglauncher.h" |
|
21 |
|
22 // ================= MEMBER FUNCTIONS ======================= |
|
23 // ---------------------------------------------------------------------------- |
|
24 // CLmkLocSettingsLauncher::NewL |
|
25 // Two-phased constructor. |
|
26 // ---------------------------------------------------------------------------- |
|
27 // |
|
28 CEvtMgmtUiLocSettingsLauncher* CEvtMgmtUiLocSettingsLauncher:: NewL() |
|
29 { |
|
30 CEvtMgmtUiLocSettingsLauncher* self = new (ELeave) CEvtMgmtUiLocSettingsLauncher(); |
|
31 CleanupStack::PushL(self); |
|
32 self->ConstructL(); |
|
33 CleanupStack::Pop(); // self |
|
34 return self; |
|
35 } |
|
36 |
|
37 // ---------------------------------------------------------------------------- |
|
38 // CLmkLocSettingsLauncher::CLmkLocSettingsLauncher |
|
39 // ---------------------------------------------------------------------------- |
|
40 // |
|
41 CEvtMgmtUiLocSettingsLauncher::CEvtMgmtUiLocSettingsLauncher() |
|
42 : CActive( EPriorityStandard ) |
|
43 { |
|
44 } |
|
45 |
|
46 // ---------------------------------------------------------------------------- |
|
47 // CEvtMgmtUiLocSettingsLauncher::~CEvtMgmtUiLocSettingsLauncher |
|
48 // ---------------------------------------------------------------------------- |
|
49 // |
|
50 CEvtMgmtUiLocSettingsLauncher::~CEvtMgmtUiLocSettingsLauncher() |
|
51 { |
|
52 Cancel(); |
|
53 delete iClientLibrary; |
|
54 } |
|
55 |
|
56 // ---------------------------------------------------------------------------- |
|
57 // CEvtMgmtUiLocSettingsLauncher::ConstructL |
|
58 // ---------------------------------------------------------------------------- |
|
59 // |
|
60 void CEvtMgmtUiLocSettingsLauncher::ConstructL() |
|
61 { |
|
62 iClientLibrary = CLocSettingsUiClient::NewL(); |
|
63 CActiveScheduler::Add( this ); |
|
64 } |
|
65 |
|
66 // ---------------------------------------------------------------------------- |
|
67 // CEvtMgmtUiLocSettingsLauncher::LaunchL |
|
68 // ---------------------------------------------------------------------------- |
|
69 // |
|
70 void CEvtMgmtUiLocSettingsLauncher::LaunchL() |
|
71 { |
|
72 iClientLibrary->LaunchPosSettingsAsEmbeddedAppL( iStatus ); |
|
73 SetActive(); |
|
74 } |
|
75 |
|
76 // ---------------------------------------------------------------------------- |
|
77 // CEvtMgmtUiLocSettingsLauncher::RunL |
|
78 // ---------------------------------------------------------------------------- |
|
79 // |
|
80 void CEvtMgmtUiLocSettingsLauncher::RunL() |
|
81 { |
|
82 switch( iStatus.Int()) |
|
83 { |
|
84 case KErrNone: |
|
85 { |
|
86 break; |
|
87 } |
|
88 case KErrCancel: |
|
89 { |
|
90 break; |
|
91 } |
|
92 default: |
|
93 { |
|
94 break; |
|
95 } |
|
96 } |
|
97 } |
|
98 |
|
99 // ---------------------------------------------------------------------------- |
|
100 // CEvtMgmtUiLocSettingsLauncher::DoCancel |
|
101 // ---------------------------------------------------------------------------- |
|
102 // |
|
103 void CEvtMgmtUiLocSettingsLauncher::DoCancel() |
|
104 { |
|
105 iClientLibrary->ClosePosSettings(); |
|
106 } |
|
107 |
|
108 // End of File |
|
109 |