33 private int[] allowedInteractionModes; |
34 private int[] allowedInteractionModes; |
34 private boolean blanketPrompt; |
35 private boolean blanketPrompt; |
35 private static ResourceLoader resLoader = null; |
36 private static ResourceLoader resLoader = null; |
36 private boolean active; |
37 private boolean active; |
37 |
38 |
38 private static final String NET_ACCESS_ID = "setting_net_access"; |
39 private static final Id NET_ACCESS_ID = new Id("setting_net_access", "setlabel_net_access"); |
39 private static final String LOW_LEVEL_NET_ACCESS_ID = "setting_low_level_net_access"; |
40 private static final Id LOW_LEVEL_NET_ACCESS_ID = new Id("setting_low_level_net_access", "setlabel_low_level_net_access"); |
40 private static final String MESSAGING_ID = "setting_messaging"; |
41 private static final Id MESSAGING_ID = new Id("setting_messaging", "setlabel_messaging"); |
41 private static final String RESTRICTED_MESSAGING_ID = "setting_restricted_messaging"; |
42 private static final Id RESTRICTED_MESSAGING_ID = new Id("setting_restricted_messaging", "setlabel_restricted_messaging"); |
42 private static final String CALL_CONTROL_ID = "setting_call_control"; |
43 private static final Id CALL_CONTROL_ID = new Id("setting_call_control", "setlabel_call_control"); |
43 private static final String LOCAL_CONNECTIVITY_ID = "setting_local_conn"; |
44 private static final Id LOCAL_CONNECTIVITY_ID = new Id("setting_local_conn", "setlabel_local_conn"); |
44 private static final String MULTIMEDIA_RECORDING_ID = "setting_mm_record"; |
45 private static final Id MULTIMEDIA_RECORDING_ID = new Id("setting_mm_record", "setlabel_mm_record"); |
45 private static final String READ_USER_DATA_ACCESS_ID = "setting_read_data"; |
46 private static final Id READ_USER_DATA_ACCESS_ID = new Id("setting_read_data", "setlabel_read_data"); |
46 private static final String WRITE_USER_DATA_ACCESS_ID = "setting_write_data"; |
47 private static final Id WRITE_USER_DATA_ACCESS_ID = new Id("setting_write_data", "setlabel_write_data"); |
47 private static final String APPLICATION_AUTO_INVOCATION_ID = "setting_app_auto_invocat"; |
48 private static final Id APPLICATION_AUTO_INVOCATION_ID = new Id("setting_app_auto_invocat", "setlabel_app_auto_invoc"); |
48 private static final String PHONE_CALL_ID = "setting_phone_call"; |
49 private static final Id PHONE_CALL_ID = new Id("setting_phone_call", "setlabel_call_control"); |
49 private static final String LOCATION_ID = "setting_location"; |
50 private static final Id LOCATION_ID = new Id("setting_location", "setlabel_location"); |
50 private static final String LANDMARK_ID = "setting_landmarks"; |
51 private static final Id LANDMARK_ID = new Id("setting_landmarks", "setlabel_landmarks"); |
51 private static final String SMART_CARD_COMMUNICATION_ID = "setting_smartcard"; |
52 private static final Id SMART_CARD_COMMUNICATION_ID = new Id("setting_smartcard", "setlabel_smartcard"); |
52 private static final String AUTHENTICATION_ID = "setting_auth"; |
53 private static final Id AUTHENTICATION_ID = new Id("setting_auth", "setlabel_auth"); |
53 private static final String BROADCAST_ID = "setting_broadcast"; |
54 private static final Id BROADCAST_ID = new Id("setting_broadcast", "setlabel_broadcast"); |
54 private static final String NFC_WRITE_ACCESS_ID = "setting_nfc_write_access"; |
55 private static final Id NFC_WRITE_ACCESS_ID = new Id("setting_nfc_write_access", "setlabel_nfc_write_access"); |
55 private static final String URL_START_ID = "setting_url_start"; |
56 private static final Id URL_START_ID = new Id("setting_url_start", "setlabel_url_start"); |
|
57 |
|
58 private static final String AVKON_LOC_FILE = "javaapplicationsettings"; |
|
59 private static final String AVKON_PREFIX = "qtn_java_"; |
|
60 private static final String QT_LOC_FILE = "javaruntimeapplicationsettings"; |
|
61 private static final String QT_PREFIX = "txt_java_sett_"; |
56 |
62 |
57 public UserSecuritySettingsImpl( |
63 public UserSecuritySettingsImpl( |
58 String name, |
64 String name, |
59 int currentInteractionMode, |
65 int currentInteractionMode, |
60 int[] allowedInteractionModes) |
66 int[] allowedInteractionModes) |
186 return aSettingName; |
192 return aSettingName; |
187 } |
193 } |
188 return resLoader.format(id, null /*aTextParameters*/); |
194 return resLoader.format(id, null /*aTextParameters*/); |
189 } |
195 } |
190 |
196 |
191 public static String getLocalizedString(String aStrId) |
197 public static String getLocalizedString(Id aStrId) |
192 { |
198 { |
193 if (resLoader == null) |
199 if (resLoader == null) |
194 { |
200 { |
195 resLoader = ResourceLoader.getInstance("javaapplicationsettings", "qtn_java_"); |
201 resLoader = ResourceLoader.getInstance(AVKON_LOC_FILE, AVKON_PREFIX, QT_LOC_FILE, QT_PREFIX); |
196 } |
202 } |
197 return resLoader.format(aStrId, null /*aTextParameters*/); |
203 return resLoader.format(aStrId, null /*aTextParameters*/); |
198 } |
204 } |
199 |
205 |
200 public int getCurrentInteractionMode() |
206 public int getCurrentInteractionMode() |