ncdengine/provider/protocol/inc/ncdparserfactory.h
changeset 4 32704c33136d
equal deleted inserted replaced
-1:000000000000 4:32704c33136d
       
     1 /*
       
     2 * Copyright (c) 2006 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:   NcdParserFactory declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef NcdPARSERFACTORY_H
       
    20 #define NcdPARSERFACTORY_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 class MNcdParser;
       
    25 class MNcdProtocolDefaultObserver;
       
    26 
       
    27 /**
       
    28  * Factory to create a parser instance. 
       
    29  * This is the main entry point for protocol handling and parsing.
       
    30  */
       
    31 class NcdParserFactory
       
    32     {
       
    33 public:
       
    34     /**
       
    35      * Creates a parser instance.
       
    36      * 
       
    37      * @param aDefaultObserver Default observer for parser events
       
    38      * @return MNcdParser*
       
    39      */
       
    40     static MNcdParser* CreateParserL( 
       
    41         MNcdProtocolDefaultObserver* aDefaultObserver );
       
    42     /**
       
    43      * Creates a parser instance.
       
    44      *
       
    45      * @param aDefaultObserver Default observer for parser events
       
    46      * @return MNcdParser*
       
    47      */
       
    48     static MNcdParser* CreateParserLC( 
       
    49         MNcdProtocolDefaultObserver* aDefaultObserver );
       
    50 private:
       
    51     NcdParserFactory();
       
    52     ~NcdParserFactory();
       
    53     };
       
    54 
       
    55 #endif