equal
deleted
inserted
replaced
|
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 __SSMSTATETRANSITION_H__ |
|
17 #define __SSMSTATETRANSITION_H__ |
|
18 |
|
19 #include <ssm/ssmstate.h> |
|
20 |
|
21 /** |
|
22 Encapsulates a system state transition. |
|
23 |
|
24 @publishedPartner |
|
25 @released |
|
26 */ |
|
27 NONSHARABLE_CLASS(TSsmStateTransition) |
|
28 { |
|
29 public: |
|
30 IMPORT_C TSsmStateTransition(); |
|
31 IMPORT_C TSsmStateTransition(TSsmState aState, TInt aReason); |
|
32 IMPORT_C TSsmStateTransition(TUint16 aMainState, TUint16 aSubState, TInt aReason); |
|
33 IMPORT_C TSsmStateTransition(const TSsmStateTransition& aRequest); |
|
34 |
|
35 IMPORT_C TSsmState State() const; |
|
36 IMPORT_C TInt Reason() const; |
|
37 |
|
38 IMPORT_C TSsmStateTransition& operator=(const TSsmStateTransition& aRequest); |
|
39 IMPORT_C TBool operator==(const TSsmStateTransition& aRequest) const; |
|
40 IMPORT_C TBool operator!=(const TSsmStateTransition& aRequest) const; |
|
41 |
|
42 private: |
|
43 TSsmState iState; |
|
44 TInt iReason; |
|
45 }; |
|
46 |
|
47 #endif |