authorisation/userpromptservice/server/inc_private/product/upsclientconfig.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 24 Nov 2009 09:06:03 +0200
changeset 29 ece3df019add
parent 8 35751d3474b7
permissions -rw-r--r--
Revision: 200948 Kit: 200948

/*
* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "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: 
* User Prompt Service client side (system server0 configuration classes for
* upsclient.dll
*
*/


/**
 @file
 @internalComponent
 @released
*/

#ifndef UPSCLIENTCONFIG_H
#define UPSCLIENTCONFIG_H

#include <e32base.h>
#include <e32cmn.h>
#include <ups/upstypes.h>
#include "serviceconfig.h"

namespace UserPromptService
{

/**
Hold configuration information in the system server that determines
whether the user prompt service must be invoked regardless of whether
the client passed the system server's security check.
*/
NONSHARABLE_CLASS(CUpsClientConfig) : public CBase
	{
public:
	static CUpsClientConfig* NewL(TInt aCount, TServiceConfig *aRawServiceConfig);	

	enum TQueryUpsResult { EAllow, EQueryUps, EReject };
	
	TQueryUpsResult QueryUps(TBool aServerChecksPassed,
								const TServiceId &aServiceId, 
								const TSecureId &aClientSid,
								const TProcessId &aClientProcessId) const;
	
	~CUpsClientConfig();
private:
	void ConstructL(TInt aCount, TServiceConfig *aRawServiceConfig);
	CUpsClientConfig();
	RArray<TServiceConfig> iServiceConfig;
	};

} // End of namespace UserPromptService

#endif // UPSCLIENTCONFIG_H