sysstatemgmt/systemstatereferenceplugins/test/tclayer/inc/ssmcmnwrapper.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     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 // Contains wrapper helper functions for test code to control the test wrappers
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @test
       
    21  @internalComponent - Internal Symbian test code 
       
    22 */
       
    23 
       
    24 #ifndef SSMCMNWRAPPER_H_
       
    25 #define SSMCMNWRAPPER_H_
       
    26 
       
    27 #include <ssm/ssmstatemanager.h>
       
    28 
       
    29 class SsmCmnWrapper
       
    30 {
       
    31 public:
       
    32 	static void SetSsmStateManagerNextConnectReturn(TInt aRet);
       
    33 	static TInt SsmStateManagerNextConnectReturn();
       
    34 	
       
    35 	static void SetSsmStateManagerHandle(TInt aHandle);
       
    36 	static TInt SsmStateManagerHandle();
       
    37 	
       
    38 	static TInt GetSsmStateManagerNextStateRequestReturn();
       
    39 	static void SetSsmStateManagerNextStateRequestReturn(TInt aRet);
       
    40 	static void SetLastStateTransition(TSsmStateTransition& aTransition);
       
    41 	
       
    42 	static TUint16 GetLastMainStateRequest();
       
    43 	static TUint16 GetLastSubStateRequest();
       
    44 	static TInt GetLastReasonRequest();
       
    45 	
       
    46 	static TInt GetSsmStateManagerNextSwpRequestReturn();
       
    47 	static void SetSsmStateManagerNextSwpRequestReturn(TInt aRet);
       
    48 	static void SetLastSwpTransition(TSsmSwp& aSwp);
       
    49 	static TSsmSwp GetLastSwpTransition();
       
    50 	
       
    51 private:
       
    52 	static TInt iSsmStateManagerNextSwpRequestReturn;
       
    53 	static TSsmSwp iSsmStateManagerSwpTransition;
       
    54 	static TInt iSsmStateManagerNextConnectReturn;
       
    55 	static TInt iSsmStateManagerNextRequestReturn;
       
    56 	static TInt iSsmStateManagerHandle;
       
    57 	static TSsmStateTransition iSsmStateManagerStateTransition;
       
    58 };
       
    59 
       
    60 #endif /*SSMCMNWRAPPER_H_*/