launcher/engine/inc/launcherparserobserver.h
branchRCL_3
changeset 21 b3cee849fa46
equal deleted inserted replaced
20:48060abbbeaf 21:b3cee849fa46
       
     1 /*
       
     2 * Copyright (c) 2010 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef LAUNCHERPARSEROBSERVER_H_
       
    19 #define LAUNCHERPARSEROBSERVER_H_
       
    20 
       
    21 class CLauncherDLLElement;
       
    22 
       
    23 class MLauncherParserObserver
       
    24 {
       
    25 public:
       
    26     
       
    27     /**
       
    28      * This method is called when parser has parsed next DLL element     
       
    29      * @param aDllElement Parsed DLL element.     
       
    30      */    
       
    31     virtual void ElementParsedL(const CLauncherDLLElement& aDllElement) = 0;
       
    32     
       
    33     /**
       
    34      * This method is called when the parsing is completed. If parsing was
       
    35      * stopped due to an error, an error code is given in parameter.
       
    36      * @param aErrorCode KErrNone if document was parsed successfully.
       
    37      */
       
    38     virtual void DocumentParsedL(TInt aErrorCode) = 0;
       
    39     
       
    40     /**
       
    41      * Parser calls this function during parsing to indicate the amount of
       
    42      * bytes parsed from the given file.
       
    43      * @param aBytes Amount of data (in bytes) parsed. Amount is incremental.
       
    44      */
       
    45     virtual void ParsingProgressedL(TInt aBytes) = 0;
       
    46     
       
    47 };
       
    48 
       
    49 #endif /* LAUNCHERPARSEROBSERVER_H_ */