sl@0: /* sl@0: * Copyright (c) 2004-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: * sl@0: */ sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @publishedAll sl@0: @released sl@0: */ sl@0: sl@0: #ifndef __CAF_AGENT_H__ sl@0: #define __CAF_AGENT_H__ sl@0: sl@0: #include sl@0: sl@0: /** Maximum length of an Agent name, a longer name will be truncated */ sl@0: const TInt KMaxAgentNameLength = KMaxFileName; sl@0: const TInt KMaxSIDLength = 8; sl@0: sl@0: namespace ContentAccess sl@0: { sl@0: sl@0: /** Represents the name of a single CAF agent. This allows sl@0: applications to reference a particular agent within the sl@0: Content Access Framework. sl@0: */ sl@0: class TAgent sl@0: { sl@0: public: sl@0: /** The name of the agent sl@0: @return The name of the agent sl@0: */ sl@0: IMPORT_C const TDesC& Name() const; sl@0: sl@0: /** The UID of the agent DLL sl@0: @return The UID of the agent ECOM implementation DLL sl@0: */ sl@0: TUid ImplementationUid() const; sl@0: sl@0: /** Set the value of this TAgent sl@0: @param aName The name of the agent sl@0: @param aUid The agent implementation Uid sl@0: */ sl@0: void SetValue(const TDesC& aName, TUid aUid); sl@0: sl@0: private: sl@0: sl@0: TBuf iName; sl@0: TUid iImplementationUid; sl@0: }; sl@0: } sl@0: sl@0: #endif