2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
27 #ifndef __CAF_AGENT_H__
28 #define __CAF_AGENT_H__
32 /** Maximum length of an Agent name, a longer name will be truncated */
33 const TInt KMaxAgentNameLength = KMaxFileName;
34 const TInt KMaxSIDLength = 8;
36 namespace ContentAccess
39 /** Represents the name of a single CAF agent. This allows
40 applications to reference a particular agent within the
41 Content Access Framework.
49 /** The name of the agent
50 @return The name of the agent
52 IMPORT_C const TDesC& Name() const;
54 /** The UID of the agent DLL
55 @return The UID of the agent ECOM implementation DLL
60 TUid ImplementationUid() const;
62 /** Set the value of this TAgent
63 @param aName The name of the agent
64 @param aUid The agent implementation Uid
69 void SetValue(const TDesC& aName, TUid aUid);
73 TBuf <KMaxAgentNameLength> iName;
74 TUid iImplementationUid;