sysstatemgmt/systemstatemgr/inc/ssmsuscli.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     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 __SSMSUSCLI_H__
       
    17 #define __SSMSUSCLI_H__
       
    18 
       
    19 #include <e32std.h>
       
    20 #include <ssm/ssmsupinfo.h>
       
    21 
       
    22 
       
    23 /**
       
    24  Client interface to the Utility Server. Currently, the only supported client
       
    25  process is sysstatemgr.exe. It is expected that Utility Plugins are loaded from
       
    26  command resource files using the struct SSM_START_SSM_UTILITY_PLUGIN.
       
    27 
       
    28  @internalTechnology
       
    29  @released
       
    30  */
       
    31 NONSHARABLE_CLASS(RSsmSusCli) : public RSessionBase
       
    32 	{
       
    33 public:
       
    34 	IMPORT_C TInt Connect();
       
    35 	IMPORT_C TInt Connect(TInt aAsyncMessageSlotCount);
       
    36 	IMPORT_C void Close();
       
    37 	IMPORT_C TInt RequestLoadSup(const TSsmSupInfo& aUtilityPluginDetails);
       
    38 	IMPORT_C void RequestLoadSup(const TDesC8& aTSsmSupInfoPckgC, TRequestStatus& aStatus);
       
    39 	IMPORT_C void RequestLoadSupCancel();
       
    40 	TInt RequestUnLoadSup(const TSsmSupInfo& aUtilityPluginDetails);
       
    41 
       
    42 protected:
       
    43 	TVersion Version() const;
       
    44 	TInt DoConnect(const TDesC& aServerName, TVersion aVersion, TInt aAsyncMessageSlots);
       
    45 	};
       
    46 
       
    47 #endif	// __SSMSUSCLI_H__