sysstatemgmt/systemstatemgr/test/tssm/inc/tssm_ssmclient.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 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @test
       
    19  @internalComponent - Internal Symbian test code 
       
    20 */
       
    21  
       
    22 
       
    23 #ifndef __TSSM_SSMCLIENT_H__
       
    24 #define __TSSM_SSMCLIENT_H__
       
    25 
       
    26 #include <ssm/ssmstatemanager.h>
       
    27 #include "ssmclisrv.h"
       
    28 
       
    29 
       
    30 _LIT(KSsmServerNameTest, "SysStateMgrTest");
       
    31 
       
    32 
       
    33 /**
       
    34 RSsmStateManagerTestClient is a utility class that allows the test to connect to a clone of the SsmServer, 
       
    35 but with a different name. That's why we need to a derived class to be able to provide a different server
       
    36 name
       
    37 
       
    38 NOTES:
       
    39  	1.) To inherit from RSsmStateManager, we need to include the RSsmStateManager production code because that class 
       
    40 		is declared with NONSHARABLE_CLASS which means its size is not exported outside the DLL. 
       
    41 		(and neither is DoConnect).
       
    42 	2.) We also need to make sure ssmclisrv.h is available to the policy mmp
       
    43 	3.) Connect() is declared 'protected' in RSsmStateManager for this purpose.
       
    44 */
       
    45 class RSsmStateManagerTestClient : public RSsmStateManager
       
    46 	{
       
    47 public:
       
    48 	IMPORT_C TInt Connect(const TDesC& aServerName, const TVersion& aVersion);
       
    49 	IMPORT_C TInt Connect();
       
    50 	IMPORT_C void Close();
       
    51 public:
       
    52 	IMPORT_C TInt HeapMark();
       
    53 	IMPORT_C TInt HeapMarkEnd();
       
    54 	IMPORT_C TInt HeapMarkEnd(TInt aDoCleanup);
       
    55 	IMPORT_C TInt RequestDeRegisterSwpMappingL(TUint aSwpKey, const TDesC& aFilename);
       
    56 	};
       
    57 
       
    58 
       
    59 #endif