os/security/authorisation/userpromptservice/policies/inc/cliententity.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 * Class declaration for CClientEntity.
    16 *
    17 */
    18 
    19 
    20 /**
    21  @file
    22  @publishedPartner
    23  @released 
    24 */
    25 
    26 #ifndef CLIENTENTITY_H
    27 #define CLIENTENTITY_H
    28 
    29 #include <e32base.h>
    30 #include <e32cmn.h>
    31 #include <ups/upsconst.h>
    32 
    33 namespace UserPromptService
    34 	{		
    35 	/**
    36 	Represents an entity executing within a client process e.g. a script or midlet.		
    37 	
    38 	The maximum length of the client entity name is KUpsMaxClientEntityLength (32) 
    39 	characters. This is limited to 32 characters because it forms part of the composite
    40 	key in the decision database and the key is limited to 255 bytes.		
    41 	*/
    42 	NONSHARABLE_CLASS(CClientEntity) : public CBase
    43 		{
    44 	public:		
    45 		IMPORT_C static CClientEntity* NewL(const TDesC8& aName);
    46 		IMPORT_C static CClientEntity* NewLC(const TDesC8& aName);
    47 
    48 		IMPORT_C const TDesC8& Name() const;
    49 		~CClientEntity();
    50 	private:
    51 		CClientEntity();
    52 		void ConstructL(const TDesC8& aName);
    53 
    54 		/** Identifies an entity with the client process */
    55 		HBufC8* iName;
    56 		};
    57 	}	
    58 
    59 #endif // CLIENTENTITY_H