|
1 // Copyright (c) 2005-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 #if !defined (__SYSTEMSTARTUPSTATEINFO_H__) |
|
17 #define __SYSTEMSTARTUPSTATEINFO_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include "StartupStateInfo.h" |
|
21 |
|
22 /** Implementation of the MStartupStateInfo interface. |
|
23 @internalComponent |
|
24 @deprecated |
|
25 @see MStartupStateInfo |
|
26 */ |
|
27 class CSystemStartupStateInfo : public CBase, public MStartupStateInfo |
|
28 { |
|
29 public: |
|
30 static CSystemStartupStateInfo* NewL(); |
|
31 static CSystemStartupStateInfo* NewLC(); |
|
32 |
|
33 ~CSystemStartupStateInfo(); |
|
34 |
|
35 public: |
|
36 void SetCommandList(CommandList aCommandList); |
|
37 void SetStateId(TUint8 aStateId); |
|
38 void SetName(const TDesC& aName); |
|
39 TInt AddCommand(MStartupCommand* aCommand); |
|
40 void SetNoOfRetries(TNoOfRetries aNoOfRetries); |
|
41 void SetActionOnStateTransitionFailure(TActionOnStateTransitionFailure aActionOnStateTransitionFailure); |
|
42 public: // from MStartupStateInfo |
|
43 TUint8 StateId() const; |
|
44 TPtrC Name() const; |
|
45 const CommandList GetCommandList() const; |
|
46 TInt Count() const; |
|
47 MStartupCommand* GetCommand(TInt aIndex) const; |
|
48 TNoOfRetries NoOfRetries() const; |
|
49 TActionOnStateTransitionFailure ActionOnStateTransitionFailure() const; |
|
50 private: |
|
51 CSystemStartupStateInfo(); |
|
52 void ConstructL(); |
|
53 |
|
54 private: |
|
55 TNoOfRetries iNoOfRetries; |
|
56 TActionOnStateTransitionFailure iActionOnStateTransitionFailure; |
|
57 TInt iStateId; |
|
58 HBufC* iName; |
|
59 |
|
60 /**Encapsulates an array of system starter commands. Each startup state |
|
61 owns one command list. |
|
62 */ |
|
63 CommandList iCommandList; |
|
64 }; |
|
65 |
|
66 #endif // __SYSTEMSTARTUPSTATEINFO_H__ |