sysstatemgmt/systemstatemgr/sus/inc/susutilserver.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 #ifndef __SUSUTILSERVER_H__
       
    17 #define __SUSUTILSERVER_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <ssm/ssmsuscli.h>
       
    21 
       
    22 class CSusPluginFrame;
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26  @released
       
    27  */
       
    28 class CSusUtilServer : public CPolicyServer
       
    29 	{	
       
    30 public:
       
    31 	static CSusUtilServer* NewLC();
       
    32 	static CSusUtilServer* NewLC(const TDesC& aServerName, TSecureId aClientSecureId);
       
    33 	~CSusUtilServer();
       
    34 	
       
    35 	TSecureId ClientSecureId() const;
       
    36 	
       
    37 	void LoadUtilityPluginL(TSsmSupInfo& aSupInfo);
       
    38 	TInt UnLoadUtilityPluginL(TSsmSupInfo& aSupInfo);
       
    39 
       
    40 #ifdef _DEBUG
       
    41 	void CompressPluginArray();
       
    42 #endif
       
    43 private:
       
    44 	CSusUtilServer(TSecureId aClientSecureId);
       
    45 	void ConstructL(const TDesC& aServerName);
       
    46 	TInt IndexOf(const RLibrary& aLibrary, TInt aNewLOrdinal) const;
       
    47 	
       
    48 	//from CServer2
       
    49 	CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const;
       
    50 
       
    51 private:
       
    52 	TSecureId iClientSecureId; //the SID of the only allowed client
       
    53 	RPointerArray<CSusPluginFrame> iLoadedPlugins;
       
    54 	};
       
    55 
       
    56 #endif