themeinstaller/source/src/com/nokia/tools/themeinstaller/odtconverter/IParseOperationListener.java
branchRCL_3
changeset 17 fe49e33862e2
parent 16 b685c59de105
child 18 04b7640f6fb5
equal deleted inserted replaced
16:b685c59de105 17:fe49e33862e2
     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:  Listener for parsing operations
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 package com.nokia.tools.themeinstaller.odtconverter;
       
    20 
       
    21 /**
       
    22  * Observer interface for parse operation completions.
       
    23  */
       
    24 public interface IParseOperationListener
       
    25     {
       
    26     // CONSTANTS
       
    27     public static final int OPERATION_SUCCESSFUL = 0;
       
    28     public static final int SYNTAX_ERROR = -1;
       
    29     public static final int SAX_PARSE_ERROR = -2;
       
    30     public static final int IO_ERROR = -3;
       
    31     public static final int CSS_PARSER_ERROR = -4;
       
    32     public static final int EXCEPTION = -5;
       
    33 
       
    34     /**
       
    35      * Is called when parse operation is completed.
       
    36      * @param aErr error code
       
    37      * @param aReason completion reason
       
    38      */
       
    39     public void parseOperationCompleted( int aErr, String aReason );
       
    40 
       
    41     }