|
1 // Copyright (c) 2007-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 #ifndef __SSMPUBLISHSYSTEMSTATEINFO_H__ |
|
17 #define __SSMPUBLISHSYSTEMSTATEINFO_H__ |
|
18 |
|
19 #include <e32def.h> |
|
20 #include <ssm/ssmstate.h> |
|
21 #include <ssm/ssmcmd.hrh> |
|
22 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
23 #include <domainpolicy.h> |
|
24 #else |
|
25 /** |
|
26 Defines the ways in which a domain hierarchy can be traversed. |
|
27 |
|
28 @see RSsmStateManager::RequestStateTransition(TSsmStateTransition) |
|
29 @publishedPartner |
|
30 @released |
|
31 */ |
|
32 enum TSsmDmTraverseDirection |
|
33 { |
|
34 /** |
|
35 Transition parents first (i.e. before their children). |
|
36 */ |
|
37 ESsmTraverseParentsFirst, |
|
38 |
|
39 /** |
|
40 Transition children first (i.e. before their parents). |
|
41 */ |
|
42 ESsmTraverseChildrenFirst, |
|
43 |
|
44 /** |
|
45 Use the default direction specified in policy |
|
46 */ |
|
47 ESsmTraverseDefault, |
|
48 |
|
49 /** |
|
50 Maximum value for traverse mode |
|
51 */ |
|
52 ESsmTraverseMax = ESsmTraverseDefault |
|
53 }; |
|
54 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS |
|
55 |
|
56 /** |
|
57 Implementation of required information for a startup state. |
|
58 @publishedPartner |
|
59 @released |
|
60 */ |
|
61 NONSHARABLE_CLASS (TSsmPublishSystemStateInfo) |
|
62 { |
|
63 public: |
|
64 IMPORT_C TSsmPublishSystemStateInfo(); |
|
65 |
|
66 IMPORT_C TSsmState State() const; |
|
67 IMPORT_C TInt16 Retries() const; |
|
68 |
|
69 IMPORT_C void Clear(); |
|
70 IMPORT_C TSsmPublishSystemStateInfo& operator=(const TSsmPublishSystemStateInfo& aInfo); |
|
71 |
|
72 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
73 IMPORT_C TDmTraverseDirection Direction() const; |
|
74 IMPORT_C void Set(const TSsmState& aState, TDmTraverseDirection aDirection, TInt16 aRetries); |
|
75 #else //SYMBIAN_ENABLE_SPLIT_HEADERS |
|
76 IMPORT_C TSsmDmTraverseDirection Direction() const; |
|
77 IMPORT_C void Set(const TSsmState& aState, TSsmDmTraverseDirection aDirection, TInt16 aRetries); |
|
78 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS |
|
79 |
|
80 |
|
81 private: |
|
82 TSsmState iState; |
|
83 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
84 TDmTraverseDirection iDirection; |
|
85 #else //SYMBIAN_ENABLE_SPLIT_HEADERS |
|
86 TSsmDmTraverseDirection iDirection; |
|
87 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS |
|
88 TInt16 iRetries; |
|
89 }; |
|
90 |
|
91 #endif // __SSMPUBLISHSYSTEMSTATEINFO_H__ |