imservices/searchfeatureplugin/srcsearchdatamodel/searchobjectfactoryimp.h
changeset 0 e6b17d312c8b
equal deleted inserted replaced
-1:000000000000 0:e6b17d312c8b
       
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "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".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Implementation of MSearchObjectFactory
       
    15  *
       
    16 */
       
    17 
       
    18 #ifndef CSEARCHOBJECTFACTORYIMP_H
       
    19 #define CSEARCHOBJECTFACTORYIMP_H
       
    20 
       
    21 #include <searchobjectfactory.h>
       
    22 #include "ximpapiobjbase.h"
       
    23 #include "searchapiobjbase.h"
       
    24 
       
    25 
       
    26 /**
       
    27  * MSearchObjectFactory API object implementation.
       
    28  *
       
    29  * @lib searchdatamodel.dll
       
    30  * 
       
    31  */
       
    32 class CSearchObjectFactoryImp: public CXIMPApiObjBase,
       
    33 							   public MSearchObjectFactory
       
    34     {
       
    35     public:
       
    36     /** The class ID. */
       
    37     enum { KClassId = IMP_CLSID_CSEARCHOBJECTFACTORYIMP };
       
    38 
       
    39 
       
    40 public:
       
    41 
       
    42     IMPORT_C static CSearchObjectFactoryImp* NewL();
       
    43     ~CSearchObjectFactoryImp();
       
    44 
       
    45 private:
       
    46     CSearchObjectFactoryImp();
       
    47 
       
    48 
       
    49 
       
    50 public: // From MXIMPBase
       
    51 
       
    52     /**
       
    53      * Implementation of MXIMPBase interface methods
       
    54      * @see MXIMPBase
       
    55      */
       
    56     XIMPIMP_DECLARE_IF_BASE_METHODS
       
    57 
       
    58 
       
    59 public: //From MSearchObjectFactory
       
    60 	/**
       
    61      * Implementation of  MSearchObjectFactory interface method
       
    62      * @see  MSearchObjectFactory
       
    63      */
       
    64     MSearchElement* NewSearchElementLC();
       
    65     /**
       
    66      * Implementation of  MSearchObjectFactory interface method
       
    67      * @see  MSearchObjectFactory
       
    68      */
       
    69     MSearchInfo* NewSearchInfoLC();
       
    70     /**
       
    71      * Implementation of  MSearchObjectFactory interface method
       
    72      * @see  MSearchObjectFactory
       
    73      */
       
    74     MSearchKeyInfo* NewSearchKeyInfoLC();
       
    75    
       
    76     };
       
    77 
       
    78 
       
    79 #endif // CSEARCHOBJECTFACTORYIMP_H