|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * Implementation of SsmSystemCmdsFactory class. |
|
16 * |
|
17 */ |
|
18 |
|
19 #include "ssmsystemcmdsfactory.h" |
|
20 #include "ssminitstartupreason.h" |
|
21 #include "ssminitpskeys.h" |
|
22 #include "ssminitcriticallevels.h" |
|
23 #include "ssmwaitpskey.h" |
|
24 #include "ssmsashutdown.h" |
|
25 #include "trace.h" |
|
26 |
|
27 // ======== MEMBER FUNCTIONS ======== |
|
28 |
|
29 // --------------------------------------------------------------------------- |
|
30 // SsmSystemCmdsFactory::InitPsKeysNewL |
|
31 // --------------------------------------------------------------------------- |
|
32 // |
|
33 EXPORT_C MSsmCustomCommand* SsmSystemCmdsFactory::InitPsKeysNewL() |
|
34 { |
|
35 FUNC_LOG; |
|
36 |
|
37 return CSsmInitPsKeys::NewL(); |
|
38 } |
|
39 |
|
40 // --------------------------------------------------------------------------- |
|
41 // SsmSystemCmdsFactory::InitStartupReasonNewL |
|
42 // --------------------------------------------------------------------------- |
|
43 // |
|
44 EXPORT_C MSsmCustomCommand* SsmSystemCmdsFactory::InitStartupReasonNewL() |
|
45 { |
|
46 FUNC_LOG; |
|
47 |
|
48 return CSsmInitStartupReason::NewL(); |
|
49 } |
|
50 |
|
51 // --------------------------------------------------------------------------- |
|
52 // SsmSystemCmdsFactory::SsmSystemCmdsNewL |
|
53 // --------------------------------------------------------------------------- |
|
54 // |
|
55 EXPORT_C MSsmCustomCommand* SsmSystemCmdsFactory::InitCriticalLevelsNewL() |
|
56 { |
|
57 FUNC_LOG; |
|
58 |
|
59 return CSsmInitCriticalLevels::NewL(); |
|
60 } |
|
61 |
|
62 // --------------------------------------------------------------------------- |
|
63 // SsmSystemCmdsFactory::WaitForPsKeyExactNewL |
|
64 // --------------------------------------------------------------------------- |
|
65 // |
|
66 EXPORT_C MSsmCustomCommand* SsmSystemCmdsFactory::WaitForPsKeyExactNewL() |
|
67 { |
|
68 FUNC_LOG; |
|
69 |
|
70 return CSsmWaitPsKey::NewL( CSsmWaitPsKey::ESsmWaitPsExactValue ); |
|
71 } |
|
72 // --------------------------------------------------------------------------- |
|
73 // SsmSystemCmdsFactory::WaitForPsKeyRangeNewL |
|
74 // --------------------------------------------------------------------------- |
|
75 // |
|
76 EXPORT_C MSsmCustomCommand* SsmSystemCmdsFactory::WaitForPsKeyRangeNewL() |
|
77 { |
|
78 FUNC_LOG; |
|
79 |
|
80 return CSsmWaitPsKey::NewL( CSsmWaitPsKey::ESsmWaitPsRange ); |
|
81 } |
|
82 // --------------------------------------------------------------------------- |
|
83 // SsmSystemCmdsFactory::SaShutdownNewL |
|
84 // --------------------------------------------------------------------------- |
|
85 // |
|
86 EXPORT_C MSsmCustomCommand* SsmSystemCmdsFactory::SaShutdownNewL() |
|
87 { |
|
88 FUNC_LOG; |
|
89 |
|
90 return CSsmSaShutdown::NewL(); |
|
91 } |