sl@0: /* sl@0: * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * Class declaration for CClientEntity. sl@0: * sl@0: */ sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @publishedPartner sl@0: @released sl@0: */ sl@0: sl@0: #ifndef CLIENTENTITY_H sl@0: #define CLIENTENTITY_H sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: namespace UserPromptService sl@0: { sl@0: /** sl@0: Represents an entity executing within a client process e.g. a script or midlet. sl@0: sl@0: The maximum length of the client entity name is KUpsMaxClientEntityLength (32) sl@0: characters. This is limited to 32 characters because it forms part of the composite sl@0: key in the decision database and the key is limited to 255 bytes. sl@0: */ sl@0: NONSHARABLE_CLASS(CClientEntity) : public CBase sl@0: { sl@0: public: sl@0: IMPORT_C static CClientEntity* NewL(const TDesC8& aName); sl@0: IMPORT_C static CClientEntity* NewLC(const TDesC8& aName); sl@0: sl@0: IMPORT_C const TDesC8& Name() const; sl@0: ~CClientEntity(); sl@0: private: sl@0: CClientEntity(); sl@0: void ConstructL(const TDesC8& aName); sl@0: sl@0: /** Identifies an entity with the client process */ sl@0: HBufC8* iName; sl@0: }; sl@0: } sl@0: sl@0: #endif // CLIENTENTITY_H