|
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 * Declaration of CSsmInitCriticalLevels class. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef SSMINITCRITICALLEVELS_H |
|
20 #define SSMINITCRITICALLEVELS_H |
|
21 |
|
22 #include "ssmsystemcommandsbase.h" |
|
23 #include <e32base.h> |
|
24 #include <ssm/ssmcustomcommand.h> |
|
25 |
|
26 |
|
27 /** |
|
28 * Defines critical level values for memory and disk space. |
|
29 */ |
|
30 NONSHARABLE_CLASS( CSsmInitCriticalLevels ) : public CSsmSystemCommandsBase, |
|
31 public MSsmCustomCommand |
|
32 { |
|
33 |
|
34 public: |
|
35 |
|
36 /** |
|
37 * Two-phased constructor |
|
38 */ |
|
39 static CSsmInitCriticalLevels* NewL(); |
|
40 |
|
41 /** |
|
42 * Destructor |
|
43 */ |
|
44 virtual ~CSsmInitCriticalLevels(); |
|
45 |
|
46 private: // From MSsmCustomCommand |
|
47 |
|
48 /** |
|
49 * @see MSsmCustomCommand |
|
50 */ |
|
51 TInt Initialize( CSsmCustomCommandEnv* aCmdEnv ); |
|
52 |
|
53 /** |
|
54 * @see MSsmCustomCommand |
|
55 */ |
|
56 void Execute( const TDesC8& aParams, TRequestStatus& aRequest ); |
|
57 |
|
58 /** |
|
59 * @see MSsmCustomCommand |
|
60 */ |
|
61 void ExecuteCancel(); |
|
62 |
|
63 /** |
|
64 * @see MSsmCustomCommand |
|
65 */ |
|
66 void Close(); |
|
67 |
|
68 /** |
|
69 * @see MSsmCustomCommand |
|
70 */ |
|
71 void Release(); |
|
72 |
|
73 private: |
|
74 |
|
75 /** |
|
76 * Defines critical level values for memory and disk space. |
|
77 */ |
|
78 void InitCriticalLevelKeysL(); |
|
79 |
|
80 private: // data |
|
81 }; |
|
82 |
|
83 #endif // SSMINITCRITICALLEVELS_H |