imservices/searchfeatureplugin/srcsearchdatamodel/searchobjectfactoryimp.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 08:54:49 +0200
changeset 0 e6b17d312c8b
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* Copyright (c) 2007 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:  Implementation of MSearchObjectFactory
 *
*/

#ifndef CSEARCHOBJECTFACTORYIMP_H
#define CSEARCHOBJECTFACTORYIMP_H

#include <searchobjectfactory.h>
#include "ximpapiobjbase.h"
#include "searchapiobjbase.h"


/**
 * MSearchObjectFactory API object implementation.
 *
 * @lib searchdatamodel.dll
 * 
 */
class CSearchObjectFactoryImp: public CXIMPApiObjBase,
							   public MSearchObjectFactory
    {
    public:
    /** The class ID. */
    enum { KClassId = IMP_CLSID_CSEARCHOBJECTFACTORYIMP };


public:

    IMPORT_C static CSearchObjectFactoryImp* NewL();
    ~CSearchObjectFactoryImp();

private:
    CSearchObjectFactoryImp();



public: // From MXIMPBase

    /**
     * Implementation of MXIMPBase interface methods
     * @see MXIMPBase
     */
    XIMPIMP_DECLARE_IF_BASE_METHODS


public: //From MSearchObjectFactory
	/**
     * Implementation of  MSearchObjectFactory interface method
     * @see  MSearchObjectFactory
     */
    MSearchElement* NewSearchElementLC();
    /**
     * Implementation of  MSearchObjectFactory interface method
     * @see  MSearchObjectFactory
     */
    MSearchInfo* NewSearchInfoLC();
    /**
     * Implementation of  MSearchObjectFactory interface method
     * @see  MSearchObjectFactory
     */
    MSearchKeyInfo* NewSearchKeyInfoLC();
   
    };


#endif // CSEARCHOBJECTFACTORYIMP_H