|
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: Class representing resource data in theme manifest |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 package com.nokia.tools.themeinstaller.installationmanager; |
|
20 |
|
21 /** |
|
22 * Class representing resource data in theme manifest. |
|
23 */ |
|
24 public class ThemeResource |
|
25 { |
|
26 |
|
27 // File name |
|
28 private String iFileName; |
|
29 |
|
30 // Cache type |
|
31 private int iCacheType; |
|
32 |
|
33 // Locking policy |
|
34 private int iLockingPolicy; |
|
35 |
|
36 // Name space |
|
37 private String iNameSpace; |
|
38 |
|
39 // Resource type |
|
40 private int iResourceType; |
|
41 |
|
42 // Mime type |
|
43 private String iMimeType; |
|
44 |
|
45 /** |
|
46 * Constructs a new theme resource. |
|
47 * @param aFileName Name of the resource file |
|
48 * @param aCacheType Resource cache type |
|
49 * @param aLockingPolicy Resource locking policy |
|
50 * @param aNameSpace Name space |
|
51 * @param aResourceType Resource type |
|
52 * @param aMimeType Mime type |
|
53 */ |
|
54 public ThemeResource( String aFileName, |
|
55 int aCacheType, |
|
56 int aLockingPolicy, |
|
57 String aNameSpace, |
|
58 int aResourceType, |
|
59 String aMimeType ) |
|
60 { |
|
61 iFileName = aFileName; |
|
62 iCacheType = aCacheType; |
|
63 iLockingPolicy = aLockingPolicy; |
|
64 iNameSpace = aNameSpace; |
|
65 iResourceType = aResourceType; |
|
66 iMimeType = aMimeType; |
|
67 } |
|
68 |
|
69 /** |
|
70 * Get resource file name. |
|
71 * @return the file name |
|
72 */ |
|
73 public String getFileName() |
|
74 { |
|
75 return iFileName; |
|
76 } |
|
77 |
|
78 /** |
|
79 * Get resource cache type. |
|
80 * @return the cache type |
|
81 */ |
|
82 public int getCacheType() |
|
83 { |
|
84 return iCacheType; |
|
85 } |
|
86 |
|
87 /** |
|
88 * Get locking policy. |
|
89 * @return the locking policy |
|
90 */ |
|
91 public int getLockingPolicy() |
|
92 { |
|
93 return iLockingPolicy; |
|
94 } |
|
95 |
|
96 /** |
|
97 * Get name space. |
|
98 * @return the name space |
|
99 */ |
|
100 public String getNameSpace() |
|
101 { |
|
102 return iNameSpace; |
|
103 } |
|
104 |
|
105 /** |
|
106 * Get resource type. |
|
107 * @return the resource type |
|
108 */ |
|
109 public int getResourceType() |
|
110 { |
|
111 return iResourceType; |
|
112 } |
|
113 |
|
114 /** |
|
115 * Get resource mime type. |
|
116 * @return the resource mime type |
|
117 */ |
|
118 public String getMimeType() |
|
119 { |
|
120 return iMimeType; |
|
121 } |
|
122 |
|
123 /** |
|
124 * Set resource type. |
|
125 * @param aResourceType new resource type |
|
126 */ |
|
127 public void setResourceType( int aResourceType ) |
|
128 { |
|
129 iResourceType = aResourceType; |
|
130 } |
|
131 |
|
132 /** |
|
133 * Set mime type. |
|
134 * @param aResourceType new mime type |
|
135 */ |
|
136 public void setMimeType( String aMimeType ) |
|
137 { |
|
138 iMimeType = aMimeType; |
|
139 } |
|
140 |
|
141 } |