diff -r 000000000000 -r 4e1aa6a622a0 sysstatemgmt/systemstatemgr/ssm/inc/ssmstatetransitionrequest.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sysstatemgmt/systemstatemgr/ssm/inc/ssmstatetransitionrequest.h Tue Feb 02 00:53:00 2010 +0200 @@ -0,0 +1,45 @@ +// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#ifndef __SSMSTATETRANSITIONREQUEST_H_ +#define __SSMSTATETRANSITIONREQUEST_H_ + +#include +#include + +/** +Encapsulates a TSsmStateTransition object and the requesting client RMessage2 +@internalComponent +@released +*/ +class CSsmStateTransitionRequest : public CBase + { +public: + CSsmStateTransitionRequest(const TSsmStateTransition& aStateTransition); + CSsmStateTransitionRequest(const TSsmStateTransition& aStateTransition, const RMessage2& aMessage); + ~CSsmStateTransitionRequest(); + void Complete(TInt aCompletionCode); + const TSsmStateTransition& StateTransition() const; + void SetStateTransition(const TSsmStateTransition& aStateTransition); + TSsmState State() const; + TInt Reason() const; + TBool OriginatesFrom(CSession2* aSession) const; + +private: + TSsmStateTransition iStateTransition; + RMessage2 iMessage; + }; + +#endif