|
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: An event for informing about language install completion |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 package com.nokia.tools.themeinstaller.installationmanager; |
|
20 |
|
21 import com.nokia.tools.themeinstaller.odtconverter.ODTDocument; |
|
22 |
|
23 /** |
|
24 * An event for informing about language install completion. |
|
25 */ |
|
26 public class LanguageInstallEvent |
|
27 { |
|
28 |
|
29 // ODTDocument related to the event |
|
30 private ODTDocument iODTDocument; |
|
31 |
|
32 // Error code of the finished operation |
|
33 private int iErrorCode; |
|
34 |
|
35 // Error reason |
|
36 private String iReason; |
|
37 |
|
38 /** |
|
39 * Language install event constructor. |
|
40 * @param aODTDocument ODT Document to the event |
|
41 * @param aErrorCode Error code of the completed operation |
|
42 * @param aReason Error reason |
|
43 */ |
|
44 public LanguageInstallEvent( ODTDocument aODTDocument, |
|
45 int aErrorCode, |
|
46 String aReason ) |
|
47 { |
|
48 iODTDocument = aODTDocument; |
|
49 iErrorCode = aErrorCode; |
|
50 iReason = aReason; |
|
51 } |
|
52 |
|
53 /** |
|
54 * Get the file. |
|
55 * @return The file |
|
56 */ |
|
57 public ODTDocument getODTDocument() |
|
58 { |
|
59 return iODTDocument; |
|
60 } |
|
61 |
|
62 /** |
|
63 * Get the error code. |
|
64 * @return The error code |
|
65 */ |
|
66 public int getErrorCode() |
|
67 { |
|
68 return iErrorCode; |
|
69 } |
|
70 |
|
71 /** |
|
72 * Get the error reason. |
|
73 * @return The error code |
|
74 */ |
|
75 public String getReason() |
|
76 { |
|
77 return iReason; |
|
78 } |
|
79 } |
|
80 |