equal
deleted
inserted
replaced
|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include "startuputilprovider.h" |
|
17 |
|
18 CStartupUtilProvider* CStartupUtilProvider::NewL() |
|
19 { |
|
20 CStartupUtilProvider* provider = new(ELeave) CStartupUtilProvider(); |
|
21 CleanupStack::PushL(provider); |
|
22 |
|
23 provider->ConstructL(); |
|
24 |
|
25 CleanupStack::Pop(provider); |
|
26 return provider; |
|
27 } |
|
28 |
|
29 |
|
30 |
|
31 CStartSafe& CStartupUtilProvider::StartSafe() |
|
32 { |
|
33 return *iStartSafe; // returns CStartSafe object |
|
34 } |
|
35 |
|
36 |
|
37 CStartupUtilProvider::~CStartupUtilProvider() |
|
38 { |
|
39 iSysMonSession.Close(); |
|
40 delete iStartSafe; |
|
41 } |
|
42 |
|
43 CStartupUtilProvider::CStartupUtilProvider() |
|
44 { |
|
45 |
|
46 } |
|
47 |
|
48 RSysMonSession& CStartupUtilProvider::SysMonSessionL() |
|
49 { |
|
50 if (iSysMonSession.Handle() == NULL) |
|
51 { |
|
52 iSysMonSession.OpenL(); // if not already connected then connect |
|
53 } |
|
54 return iSysMonSession; |
|
55 } |
|
56 |
|
57 void CStartupUtilProvider::ConstructL() |
|
58 { |
|
59 iStartSafe = CStartSafe::NewL(); // Creates CStartSafe object. |
|
60 } |