homescreensrv_plat/sapi_homescreenplugin/tsrc/hspsconfigurationif/inc/mt_hsps_restoreconfigurations_1.h
branchRCL_3
changeset 64 b276298d5729
parent 4 1a2a00e78665
child 78 1b207dd38b72
equal deleted inserted replaced
59:a0713522ab97 64:b276298d5729
    23 RestoreConfigurations(1)
    23 RestoreConfigurations(1)
    24 ----------------
    24 ----------------
    25  
    25  
    26 Test purpose
    26 Test purpose
    27 
    27 
    28 Verify that HSPS removes all plugin configurations from the active view
    28 Verify that "restore active" and "restore all" functionality works as specified. 
    29 or that all but one view are removed from the application configuration.
       
    30 Activity should be maintained. First locked view should remain or if not found,
       
    31 first unlocked view. 
       
    32 
    29 
    33 Pre-conditions
    30 Pre-conditions
    34 •   There must be installed test themes for Active Idle application and Typical 
    31 •   There must be installed test themes for Active Idle application and Typical 
    35     configuration must be set as active
    32     configuration must be set as active
    36 
    33 
    44     
    41     
    45 Test step 2:
    42 Test step 2:
    46 •   Input:
    43 •   Input:
    47     GetActiveAppConf    
    44     GetActiveAppConf    
    48 •   Expected output:
    45 •   Expected output:
    49     There are still two views of which the first view remains active     
    46     ROM configuration is restored and returned.
    50 
    47 
    51 Test step 3:
    48 Test step 3:
    52 •   Input:
    49 •   Input:
    53     GetPluginConf(“Typical - View1”)    
    50     GetPluginConf(“Typical - View1”)    
    54 •   Expected output:
    51 •   Expected output:
    55     There are no plugins (widgets) in the first view     
    52     ROM view configuration is returned.     
    56 
       
    57  
    53  
    58 Test step 4:
    54 Test step 4:
    59 •   Input:
    55 •   Input:
    60     RestoreConfigurations(“all”)
    56     RestoreConfigurations(“all”)
    61 •   Expected output:
    57 •   Expected output:
    69     
    65     
    70 Test step 6:
    66 Test step 6:
    71 •   Input:
    67 •   Input:
    72     GetPluginConf(“Typical - View1”)    
    68     GetPluginConf(“Typical - View1”)    
    73 •   Expected output:
    69 •   Expected output:
    74     There are no plugins (widgets) in the remaining view
    70     There are no plugins (widgets) in the remaining view    
    75     
       
    76 */
    71 */
    77 
    72 
    78 // Test step 1 method:
    73 // Test step 1 method:
    79 const TUint8 restoreconfigurations_1_ts_1_method[] = "RestoreConfigurations";
    74 const TUint8 restoreconfigurations_1_ts_1_method[] = "RestoreConfigurations";
    80 
    75 
  1102 7,
  1097 7,
  1103 // - pluginConf::plugins
  1098 // - pluginConf::plugins
  1104 //   - Version 1.0
  1099 //   - Version 1.0
  1105 //   - Item count (LE)
  1100 //   - Item count (LE)
  1106 10,
  1101 10,
       
  1102 3,0,0,0,
       
  1103 // - appConf::plugins
       
  1104 //   - Version 1.0
       
  1105 //   - List item starts
       
  1106 10,
  1107 0,0,0,0,
  1107 0,0,0,0,
       
  1108 // - appConf::plugins[0]
       
  1109 //   - Version 1.0
       
  1110 //   - Variant value type, EVariantTypeMap
       
  1111 10,
       
  1112 8,
       
  1113 // - plugins[0] map
       
  1114 //   - Version 1.0
       
  1115 //   - Item count (LE)
       
  1116 10,
       
  1117 4,0,0,0,
       
  1118 // - plugins[0]::id
       
  1119 //   - Variant name
       
  1120 //     - Version 1.0
       
  1121 //     - Semantic ID (LE)    
       
  1122 //     - Variant name length (LE)
       
  1123 //     - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 )
       
  1124 //     - Variant name
       
  1125 10,
       
  1126 12,0,0,0,
       
  1127 2,0,0,0,
       
  1128 10,
       
  1129 'i','d',
       
  1130 // - plugins[0]::id
       
  1131 //   - Variant value
       
  1132 //     - Version 1.0
       
  1133 //     - Variant value type, EVariantTypeDesC
       
  1134 //     - Variant value length (LE)
       
  1135 //     - Variant value descriptor maximum length ( ( variant value length * 4 ) + 2 )
       
  1136 //     - Variant value
       
  1137 10,
       
  1138 5,
       
  1139 1,0,0,0,
       
  1140 6,
       
  1141 '2',
       
  1142 // - plugins[0]::uid
       
  1143 //   - Variant name
       
  1144 //     - Version 1.0
       
  1145 //     - Semantic ID (LE)    
       
  1146 //     - Variant name length (LE)
       
  1147 //     - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 )
       
  1148 //     - Variant name
       
  1149 10,
       
  1150 12,0,0,0,
       
  1151 3,0,0,0,
       
  1152 14,
       
  1153 'u','i','d',
       
  1154 // - plugins[0]::uid
       
  1155 //   - Variant value
       
  1156 //     - Version 1.0
       
  1157 //     - Variant value type, EVariantTypeDesC
       
  1158 //     - Variant value length (LE)
       
  1159 //     - Variant value descriptor maximum length ( ( variant value length * 4 ) + 2 )
       
  1160 //     - Variant value
       
  1161 10,
       
  1162 5,
       
  1163 10,0,0,0,
       
  1164 42,
       
  1165 '0','x','2','0','0','0','B','1','2','0',
       
  1166 // - plugins[0]::activationstate
       
  1167 //   - Variant name
       
  1168 //     - Version 1.0
       
  1169 //     - Semantic ID (LE)    
       
  1170 //     - Variant name length (LE)
       
  1171 //     - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 )
       
  1172 //     - Variant name
       
  1173 10,
       
  1174 12,0,0,0,
       
  1175 15,0,0,0,
       
  1176 62,
       
  1177 'a','c','t','i','v','a','t','i','o','n','s','t','a','t','e',
       
  1178 // - plugins[0]::activationstate
       
  1179 //   - Variant value
       
  1180 //     - Version 1.0
       
  1181 //     - Variant value type, EVariantTypeDesC
       
  1182 //     - Variant value length (LE)
       
  1183 //     - Variant value descriptor maximum length ( ( variant value length * 4 ) + 2 )
       
  1184 //     - Variant value
       
  1185 10,
       
  1186 5,
       
  1187 1,0,0,0,
       
  1188 6,
       
  1189 '1',
       
  1190 // - plugins[0]::locking_status
       
  1191 //   - Variant name
       
  1192 //     - Version 1.0
       
  1193 //     - Semantic ID (LE)    
       
  1194 //     - Variant name length (LE)
       
  1195 //     - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 )
       
  1196 //     - Variant name
       
  1197 10,
       
  1198 12,0,0,0,
       
  1199 14,0,0,0,
       
  1200 58,
       
  1201 'l','o','c','k','i','n','g','_','s','t','a','t','u','s',
       
  1202 // - plugins[0]::locking_status
       
  1203 //   - Variant value
       
  1204 //     - Version 1.0
       
  1205 //     - Variant value type, EVariantTypeDesC
       
  1206 //     - Variant value length (LE)
       
  1207 //     - Variant value descriptor maximum length ( ( variant value length * 4 ) + 2 )
       
  1208 //     - Variant value
       
  1209 10,
       
  1210 5,
       
  1211 4,0,0,0,
       
  1212 18,
       
  1213 'n','o','n','e',
       
  1214 // - appConf::plugins
       
  1215 //   - Version 1.0
       
  1216 //   - List item starts
       
  1217 10,
       
  1218 0,0,0,0,
       
  1219 // - appConf::plugins[1]
       
  1220 //   - Version 1.0
       
  1221 //   - Variant value type, EVariantTypeMap
       
  1222 10,
       
  1223 8,
       
  1224 // - plugins[1] map
       
  1225 //   - Version 1.0
       
  1226 //   - Item count (LE)
       
  1227 10,
       
  1228 4,0,0,0,
       
  1229 // - plugins[1]::id
       
  1230 //   - Variant name
       
  1231 //     - Version 1.0
       
  1232 //     - Semantic ID (LE)    
       
  1233 //     - Variant name length (LE)
       
  1234 //     - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 )
       
  1235 //     - Variant name
       
  1236 10,
       
  1237 12,0,0,0,
       
  1238 2,0,0,0,
       
  1239 10,
       
  1240 'i','d',
       
  1241 // - plugins[1]::id
       
  1242 //   - Variant value
       
  1243 //     - Version 1.0
       
  1244 //     - Variant value type, EVariantTypeDesC
       
  1245 //     - Variant value length (LE)
       
  1246 //     - Variant value descriptor maximum length ( ( variant value length * 4 ) + 2 )
       
  1247 //     - Variant value
       
  1248 10,
       
  1249 5,
       
  1250 1,0,0,0,
       
  1251 6,
       
  1252 '3',
       
  1253 // - plugins[1]::uid
       
  1254 //   - Variant name
       
  1255 //     - Version 1.0
       
  1256 //     - Semantic ID (LE)    
       
  1257 //     - Variant name length (LE)
       
  1258 //     - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 )
       
  1259 //     - Variant name
       
  1260 10,
       
  1261 12,0,0,0,
       
  1262 3,0,0,0,
       
  1263 14,
       
  1264 'u','i','d',
       
  1265 // - plugins[1]::uid
       
  1266 //   - Variant value
       
  1267 //     - Version 1.0
       
  1268 //     - Variant value type, EVariantTypeDesC
       
  1269 //     - Variant value length (LE)
       
  1270 //     - Variant value descriptor maximum length ( ( variant value length * 4 ) + 2 )
       
  1271 //     - Variant value
       
  1272 10,
       
  1273 5,
       
  1274 10,0,0,0,
       
  1275 42,
       
  1276 '0','x','2','0','0','0','B','1','2','0',
       
  1277 // - plugins[1]::activationstate
       
  1278 //   - Variant name
       
  1279 //     - Version 1.0
       
  1280 //     - Semantic ID (LE)    
       
  1281 //     - Variant name length (LE)
       
  1282 //     - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 )
       
  1283 //     - Variant name
       
  1284 10,
       
  1285 12,0,0,0,
       
  1286 15,0,0,0,
       
  1287 62,
       
  1288 'a','c','t','i','v','a','t','i','o','n','s','t','a','t','e',
       
  1289 // - plugins[1]::activationstate
       
  1290 //   - Variant value
       
  1291 //     - Version 1.0
       
  1292 //     - Variant value type, EVariantTypeDesC
       
  1293 //     - Variant value length (LE)
       
  1294 //     - Variant value descriptor maximum length ( ( variant value length * 4 ) + 2 )
       
  1295 //     - Variant value
       
  1296 10,
       
  1297 5,
       
  1298 1,0,0,0,
       
  1299 6,
       
  1300 '0',
       
  1301 // - plugins[1]::locking_status
       
  1302 //   - Variant name
       
  1303 //     - Version 1.0
       
  1304 //     - Semantic ID (LE)    
       
  1305 //     - Variant name length (LE)
       
  1306 //     - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 )
       
  1307 //     - Variant name
       
  1308 10,
       
  1309 12,0,0,0,
       
  1310 14,0,0,0,
       
  1311 58,
       
  1312 'l','o','c','k','i','n','g','_','s','t','a','t','u','s',
       
  1313 // - plugins[1]::locking_status
       
  1314 //   - Variant value
       
  1315 //     - Version 1.0
       
  1316 //     - Variant value type, EVariantTypeDesC
       
  1317 //     - Variant value length (LE)
       
  1318 //     - Variant value descriptor maximum length ( ( variant value length * 4 ) + 2 )
       
  1319 //     - Variant value
       
  1320 10,
       
  1321 5,
       
  1322 4,0,0,0,
       
  1323 18,
       
  1324 'n','o','n','e',
       
  1325 // - appConf::plugins
       
  1326 //   - Version 1.0
       
  1327 //   - List item starts
       
  1328 10,
       
  1329 0,0,0,0,
       
  1330 // - appConf::plugins[2]
       
  1331 //   - Version 1.0
       
  1332 //   - Variant value type, EVariantTypeMap
       
  1333 10,
       
  1334 8,
       
  1335 // - plugins[2] map
       
  1336 //   - Version 1.0
       
  1337 //   - Item count (LE)
       
  1338 10,
       
  1339 4,0,0,0,
       
  1340 // - plugins[2]::id
       
  1341 //   - Variant name
       
  1342 //     - Version 1.0
       
  1343 //     - Semantic ID (LE)    
       
  1344 //     - Variant name length (LE)
       
  1345 //     - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 )
       
  1346 //     - Variant name
       
  1347 10,
       
  1348 12,0,0,0,
       
  1349 2,0,0,0,
       
  1350 10,
       
  1351 'i','d',
       
  1352 // - plugins[2]::id
       
  1353 //   - Variant value
       
  1354 //     - Version 1.0
       
  1355 //     - Variant value type, EVariantTypeDesC
       
  1356 //     - Variant value length (LE)
       
  1357 //     - Variant value descriptor maximum length ( ( variant value length * 4 ) + 2 )
       
  1358 //     - Variant value
       
  1359 10,
       
  1360 5,
       
  1361 1,0,0,0,
       
  1362 6,
       
  1363 '4',
       
  1364 // - plugins[2]::uid
       
  1365 //   - Variant name
       
  1366 //     - Version 1.0
       
  1367 //     - Semantic ID (LE)    
       
  1368 //     - Variant name length (LE)
       
  1369 //     - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 )
       
  1370 //     - Variant name
       
  1371 10,
       
  1372 12,0,0,0,
       
  1373 3,0,0,0,
       
  1374 14,
       
  1375 'u','i','d',
       
  1376 // - plugins[2]::uid
       
  1377 //   - Variant value
       
  1378 //     - Version 1.0
       
  1379 //     - Variant value type, EVariantTypeDesC
       
  1380 //     - Variant value length (LE)
       
  1381 //     - Variant value descriptor maximum length ( ( variant value length * 4 ) + 2 )
       
  1382 //     - Variant value
       
  1383 10,
       
  1384 5,
       
  1385 10,0,0,0,
       
  1386 42,
       
  1387 '0','x','2','0','0','0','B','1','2','0',
       
  1388 // - plugins[2]::activationstate
       
  1389 //   - Variant name
       
  1390 //     - Version 1.0
       
  1391 //     - Semantic ID (LE)    
       
  1392 //     - Variant name length (LE)
       
  1393 //     - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 )
       
  1394 //     - Variant name
       
  1395 10,
       
  1396 12,0,0,0,
       
  1397 15,0,0,0,
       
  1398 62,
       
  1399 'a','c','t','i','v','a','t','i','o','n','s','t','a','t','e',
       
  1400 // - plugins[2]::activationstate
       
  1401 //   - Variant value
       
  1402 //     - Version 1.0
       
  1403 //     - Variant value type, EVariantTypeDesC
       
  1404 //     - Variant value length (LE)
       
  1405 //     - Variant value descriptor maximum length ( ( variant value length * 4 ) + 2 )
       
  1406 //     - Variant value
       
  1407 10,
       
  1408 5,
       
  1409 1,0,0,0,
       
  1410 6,
       
  1411 '0',
       
  1412 // - plugins[2]::locking_status
       
  1413 //   - Variant name
       
  1414 //     - Version 1.0
       
  1415 //     - Semantic ID (LE)    
       
  1416 //     - Variant name length (LE)
       
  1417 //     - Variant name descriptor maximum length ( ( variant name length * 4 ) + 2 )
       
  1418 //     - Variant name
       
  1419 10,
       
  1420 12,0,0,0,
       
  1421 14,0,0,0,
       
  1422 58,
       
  1423 'l','o','c','k','i','n','g','_','s','t','a','t','u','s',
       
  1424 // - plugins[2]::locking_status
       
  1425 //   - Variant value
       
  1426 //     - Version 1.0
       
  1427 //     - Variant value type, EVariantTypeDesC
       
  1428 //     - Variant value length (LE)
       
  1429 //     - Variant value descriptor maximum length ( ( variant value length * 4 ) + 2 )
       
  1430 //     - Variant value
       
  1431 10,
       
  1432 5,
       
  1433 4,0,0,0,
       
  1434 18,
       
  1435 'n','o','n','e',
  1108 // - pluginConf::settings
  1436 // - pluginConf::settings
  1109 //   - Variant name
  1437 //   - Variant name
  1110 //     - Version 1.0
  1438 //     - Version 1.0
  1111 //     - Semantic ID (LE)    
  1439 //     - Semantic ID (LE)    
  1112 //     - Variant name length (LE)
  1440 //     - Variant name length (LE)
  1131 // - pluginConf::settings
  1459 // - pluginConf::settings
  1132 //   - Version 1.0
  1460 //   - Version 1.0
  1133 //   - List item starts
  1461 //   - List item starts
  1134 10,
  1462 10,
  1135 0,0,0,0,
  1463 0,0,0,0,
  1136 
       
  1137 // - items[0]
  1464 // - items[0]
  1138 //   - Version 1.0
  1465 //   - Version 1.0
  1139 //   - Variant value type, EVariantTypeMap
  1466 //   - Variant value type, EVariantTypeMap
  1140 10,
  1467 10,
  1141 8,
  1468 8,