themeinstaller/source/src/com/nokia/tools/themeinstaller/installationmanager/ProgressEvent.java
branchRCL_3
changeset 17 fe49e33862e2
parent 16 b685c59de105
child 18 04b7640f6fb5
equal deleted inserted replaced
16:b685c59de105 17:fe49e33862e2
     1 /*
       
     2 * Copyright (c) 2008 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:  Event for installation progress information.
       
    15  *
       
    16 */
       
    17 
       
    18 package com.nokia.tools.themeinstaller.installationmanager;
       
    19 
       
    20 /**
       
    21  * Installation progress event for delivering information about parsed
       
    22  * resource files and installed ODT files.
       
    23  */
       
    24 public class ProgressEvent
       
    25     {
       
    26 
       
    27     // Installation iState
       
    28     private int iState;
       
    29 
       
    30     // Theme name
       
    31     private String iName;
       
    32 
       
    33     // Language id
       
    34     private int iLanguage;
       
    35 
       
    36     // Installed file
       
    37     private String iFileName;
       
    38 
       
    39     // Error code
       
    40     private int iError;
       
    41 
       
    42     // Message
       
    43     private String iMessage;
       
    44 
       
    45     /**
       
    46      * Constructor.
       
    47      */
       
    48     public ProgressEvent()
       
    49         {
       
    50         }
       
    51 
       
    52     /**
       
    53      * Get installation state.
       
    54      * @return the state
       
    55      */
       
    56     public int getState()
       
    57         {
       
    58         return iState;
       
    59         }
       
    60 
       
    61     /**
       
    62      * Get theme name.
       
    63      * @return the name
       
    64      */
       
    65     public String getName()
       
    66         {
       
    67         return iName;
       
    68         }
       
    69 
       
    70     /**
       
    71      * Get the language id under install.
       
    72      * @return the language
       
    73      */
       
    74     public int getLanguage()
       
    75         {
       
    76         return iLanguage;
       
    77         }
       
    78 
       
    79     /**
       
    80      * Get name of the installed ODT file, if any
       
    81      * @return the fileName
       
    82      */
       
    83     public String getFileName()
       
    84         {
       
    85         return iFileName;
       
    86         }
       
    87 
       
    88     /**
       
    89      * Get the error code
       
    90      * @return the error code
       
    91      */
       
    92     public int getError()
       
    93         {
       
    94         return iError;
       
    95         }
       
    96 
       
    97     /**
       
    98      * Get the error message
       
    99      * @return the message
       
   100      */
       
   101     public String getMessage()
       
   102         {
       
   103         return iMessage;
       
   104         }
       
   105 
       
   106     /**
       
   107      * Set theme name
       
   108      * @param aName the name to set
       
   109      */
       
   110     public void setName( String aName )
       
   111         {
       
   112         iName = aName;
       
   113         }
       
   114 
       
   115     /**
       
   116      * Set language variant
       
   117      * @param aLanguage the language to set
       
   118      */
       
   119     public void setLanguage( int aLanguage )
       
   120         {
       
   121         iLanguage = aLanguage;
       
   122         }
       
   123 
       
   124     /**
       
   125      * Set state
       
   126      * @param iError the error to set
       
   127      */
       
   128     public void setState( int aState )
       
   129         {
       
   130         iState = aState;
       
   131         }
       
   132 
       
   133     /**
       
   134      * Set name of the installed ODT file
       
   135      * @param aFileName the fileName to set
       
   136      */
       
   137     public void setFileName( String aFileName )
       
   138         {
       
   139         iFileName = aFileName;
       
   140         }
       
   141 
       
   142     /**
       
   143      * Set error code and message
       
   144      * @param aError the error to set
       
   145      * @param aMessage the message to set
       
   146      */
       
   147     public void setError( int aError, String aMessage )
       
   148         {
       
   149         iError = aError;
       
   150         iMessage = aMessage;
       
   151         }
       
   152 
       
   153     /**
       
   154      * Set the error message
       
   155      * @param aMessage the message to set
       
   156      */
       
   157     public void setMessage( String aMessage )
       
   158         {
       
   159         iMessage = aMessage;
       
   160         }
       
   161 
       
   162 
       
   163     }