First public contribution.
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.
25 #ifndef __CAF_AGENT_H__
26 #define __CAF_AGENT_H__
30 /** Maximum length of an Agent name, a longer name will be truncated */
31 const TInt KMaxAgentNameLength = KMaxFileName;
32 const TInt KMaxSIDLength = 8;
34 namespace ContentAccess
37 /** Represents the name of a single CAF agent. This allows
38 applications to reference a particular agent within the
39 Content Access Framework.
44 /** The name of the agent
45 @return The name of the agent
47 IMPORT_C const TDesC& Name() const;
49 /** The UID of the agent DLL
50 @return The UID of the agent ECOM implementation DLL
52 TUid ImplementationUid() const;
54 /** Set the value of this TAgent
55 @param aName The name of the agent
56 @param aUid The agent implementation Uid
58 void SetValue(const TDesC& aName, TUid aUid);
62 TBuf <KMaxAgentNameLength> iName;
63 TUid iImplementationUid;