diff -r 000000000000 -r e6b17d312c8b imservices/ossprotocoladaptation/inc/cossprotocolsearchfeatures.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/imservices/ossprotocoladaptation/inc/cossprotocolsearchfeatures.h Thu Dec 17 08:54:49 2009 +0200 @@ -0,0 +1,95 @@ +/* +* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: oss search features implementation for XIMP Framework +* +*/ + + +#ifndef __COSSPROTOCOLSEARCHFEATURE_H__ +#define __COSSPROTOCOLSEARCHFEATURE_H__ + +// INCLUDES +#include +#include +#include +#include "cossprotocolconnectionmanager.h" + + +class COSSProtocolSearch; + +/** + * COSSProtocolSearchFeature + * Provides access to subinterface MProtocolSearch + * and sets the search data host + * + */ + +class COSSProtocolSearchFeature : public CBase, + public MProtocolSearchFeature + + { + + public: + + static COSSProtocolSearchFeature* NewL ( COSSProtocolConnectionManager& aConnMan ); + + + ~COSSProtocolSearchFeature(); + + private: + + COSSProtocolSearchFeature(COSSProtocolConnectionManager& aConnMan ); + + + void ConstructL ( COSSProtocolConnectionManager& aConnMan ); + + public: // from MXIMPBase + + TAny* GetInterface ( TInt32 aInterfaceId, + TIfGetOps aOptions ); + + const TAny* GetInterface ( TInt32 aInterfaceId, + TIfGetOps aOptions ) const; + + + TInt32 GetInterfaceId() const; + + public : // From MProtocolSearchFeature.for comments,see MProtocolSearchFeature + + /** + * @see MProtocolSearchFeature + */ + MProtocolSearch& Search(); + /** + * @see MProtocolSearchFeature + */ + void SetHost(MProtocolSearchDataHost& aSearchHost ); + + private : //data members + /** + * search + * owned + */ + COSSProtocolSearch* iSearch; + + /** + * connection manager + * not owned + */ + COSSProtocolConnectionManager &iConnMan ; + }; + +#endif //__COSSPROTOCOLSEARCHFEATURE_H__ + +// end of file \ No newline at end of file