os/security/contentmgmt/contentaccessfwfordrm/inc/agent.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2004-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 *
    16 */
    17 
    18 
    19 /**
    20  @file
    21  @publishedAll
    22  @released
    23 */
    24 
    25 #ifndef __CAF_AGENT_H__
    26 #define __CAF_AGENT_H__
    27 
    28 #include <e32base.h>
    29 
    30 /** Maximum length of an Agent name, a longer name will be truncated */
    31 const TInt KMaxAgentNameLength = KMaxFileName;
    32 const TInt KMaxSIDLength = 8;
    33 
    34 namespace ContentAccess
    35 	{
    36 
    37 	/** Represents the name of a single CAF agent. This allows 
    38 	applications to reference a particular agent within the 
    39 	Content Access Framework.
    40 	*/
    41 	class TAgent 
    42 		{
    43 	public:
    44 		/** The name of the agent 
    45 		@return The name of the agent
    46 		*/
    47 		IMPORT_C const TDesC& Name() const;
    48 
    49 		/** The UID of the agent DLL
    50 		@return The UID of the agent ECOM implementation DLL 
    51 		*/
    52 		TUid ImplementationUid() const;
    53 
    54 		/** Set the value of this TAgent
    55 		@param aName The name of the agent
    56 		@param aUid The agent implementation Uid
    57 		*/
    58 		void SetValue(const TDesC& aName, TUid aUid);
    59 
    60 	private:
    61 
    62 		TBuf <KMaxAgentNameLength> iName;
    63 		TUid iImplementationUid;
    64 		};
    65 	}
    66 
    67 #endif