equal
deleted
inserted
replaced
|
1 // Copyright (c) 2008-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 __SSMSTATETRANSITIONREQUEST_H_ |
|
17 #define __SSMSTATETRANSITIONREQUEST_H_ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <ssm/ssmstatetransition.h> |
|
21 |
|
22 /** |
|
23 Encapsulates a TSsmStateTransition object and the requesting client RMessage2 |
|
24 @internalComponent |
|
25 @released |
|
26 */ |
|
27 class CSsmStateTransitionRequest : public CBase |
|
28 { |
|
29 public: |
|
30 CSsmStateTransitionRequest(const TSsmStateTransition& aStateTransition); |
|
31 CSsmStateTransitionRequest(const TSsmStateTransition& aStateTransition, const RMessage2& aMessage); |
|
32 ~CSsmStateTransitionRequest(); |
|
33 void Complete(TInt aCompletionCode); |
|
34 const TSsmStateTransition& StateTransition() const; |
|
35 void SetStateTransition(const TSsmStateTransition& aStateTransition); |
|
36 TSsmState State() const; |
|
37 TInt Reason() const; |
|
38 TBool OriginatesFrom(CSession2* aSession) const; |
|
39 |
|
40 private: |
|
41 TSsmStateTransition iStateTransition; |
|
42 RMessage2 iMessage; |
|
43 }; |
|
44 |
|
45 #endif |