26 private static SecurityPermissionTexts self = null; |
27 private static SecurityPermissionTexts self = null; |
27 /** ResourceLoader for fetching localised texts. */ |
28 /** ResourceLoader for fetching localised texts. */ |
28 private static ResourceLoader iRes = null; |
29 private static ResourceLoader iRes = null; |
29 |
30 |
30 // identifiers for the security permission texts |
31 // identifiers for the security permission texts |
31 public static final String CALL_CONTROL = "call_control"; |
32 public static final Id CALL_CONTROL = new Id("call_control", "N/A"); |
32 public static final String NET_ACCESS = "net_access"; |
33 public static final Id NET_ACCESS = new Id("net_access", "N/A"); |
33 public static final String LOW_LEVEL_NET_ACCESS = "low_level_net_access"; |
34 public static final Id LOW_LEVEL_NET_ACCESS = new Id("low_level_net_access", "N/A"); |
34 public static final String MESSAGING = "messaging"; |
35 public static final Id MESSAGING = new Id("messaging", "qt_kalle_test_d"); |
35 public static final String RESTRICTED_MESSAGING = "restricted_messaging"; |
36 public static final Id RESTRICTED_MESSAGING = new Id("restricted_messaging", "N/A"); |
36 public static final String APP_AUTO_INVOCAT = "app_auto_invocat"; |
37 public static final Id APP_AUTO_INVOCAT = new Id("app_auto_invocat", "N/A"); |
37 public static final String LOCAL_CONN = "local_conn"; |
38 public static final Id LOCAL_CONN = new Id("local_conn", "N/A"); |
38 public static final String MM_RECORD = "mm_record"; |
39 public static final Id MM_RECORD = new Id("mm_record", "N/A"); |
39 public static final String READ_DATA = "read_data"; |
40 public static final Id READ_DATA = new Id("read_data", "N/A"); |
40 public static final String WRITE_DATA = "write_data"; |
41 public static final Id WRITE_DATA = new Id("write_data", "N/A"); |
41 public static final String LOCATION = "location"; |
42 public static final Id LOCATION = new Id("location", "N/A"); |
42 public static final String LANDMARKS = "landmarks"; |
43 public static final Id LANDMARKS = new Id("landmarks", "N/A"); |
43 public static final String AUTH = "auth"; |
44 public static final Id AUTH = new Id("auth", "N/A"); |
44 public static final String BROADCAST = "broadcast"; |
45 public static final Id BROADCAST = new Id("broadcast", "N/A"); |
|
46 |
|
47 private static final String AVKON_LOC_FILE = "javainstallation"; |
|
48 private static final String AVKON_PREFIX = "qtn_java_inst_perm_"; |
|
49 private static final String QT_LOC_FILE = "N/A"; |
|
50 private static final String QT_PREFIX = "N/A"; |
45 |
51 |
46 /** |
52 /** |
47 * Creates an instance of the SecurityPermissionTexts |
53 * Creates an instance of the SecurityPermissionTexts |
48 * |
54 * |
49 * @return An instance of SecurityPermissionTexts |
55 * @return An instance of SecurityPermissionTexts |
71 * constants) |
77 * constants) |
72 * @param aTextParams parameters for the localized text |
78 * @param aTextParams parameters for the localized text |
73 * @return the localized text associated with the provided |
79 * @return the localized text associated with the provided |
74 * identifier and parameters |
80 * identifier and parameters |
75 */ |
81 */ |
76 public String getText(String aTextId, Object[] aTextParams) |
82 public String getText(Id aTextId, Object[] aTextParams) |
77 { |
83 { |
78 if (iRes == null) |
84 if (iRes == null) |
79 { |
85 { |
80 iRes = ResourceLoader.getInstance("javainstallation", "qtn_java_inst_perm_"); |
86 iRes = ResourceLoader.getInstance(AVKON_LOC_FILE, AVKON_PREFIX, QT_LOC_FILE, QT_PREFIX); |
81 } |
87 } |
|
88 |
82 return iRes.format(aTextId, aTextParams); |
89 return iRes.format(aTextId, aTextParams); |
83 } |
90 } |
84 } |
91 } |