* @property la
* @type int
**/
+
var areasDefinitions = [ {
name: 'center',
id: null,
shape: 'cenerCircle'
}, {
name: 'navigation',
- id: 'Modello008.Nav',
iconPath: '../icons/Navigation_icon.png',
sectorId: 1,
sc: 104,
shape: 'pieWithoutCenter'
}, {
name: "airconditioning",
- id: 'Modello006.Hvac',
iconPath: '../icons/Dashboard_icon.png',
sectorId: 2,
sc: 94, //small circle border
shape: 'pieWithoutCenter'
}, {
name: 'MultimediaPlayer',
- id: 'Modello007.Multimediaplayer',
iconPath: '../icons/Multimedia_Player_icon.png',
sectorId: 3,
sc: 80,
shape: 'pieWithoutCenter'
}, {
name: 'SmartDeviceLink',
- id: 'Modello010.SDL',
iconPath: '../icons/SmartDeviceLink_icon.png',
sectorId: 4,
sc: 80,
shape: 'pieWithoutCenter'
}, {
name: 'phone',
- id: 'Modello009.Phone',
iconPath: '../apps/Phone_icon.png',
sectorId: 5,
sc: 82,
shape: 'pieWithoutCenter'
}, {
name: 'store',
- id: 'Modello003.AppManager',
iconPath: '../icons/AppManager_icon.png',
sectorId: 6,
sc: 82,
shape: 'pieWithoutCenter'
}, {
name: 'dashboard',
- id: 'Modello004.Dashboard',
iconPath: '../icons/Dashboard_icon.png',
sectorId: 7,
sc: 105,
la: 160,
shape: 'pieWithoutCenter'
} ];
+
+function fillAppIDs (appList)
+{
+ for (i = 0; i < appList.length; i++)
+ {
+ var app = appList[i];
+ if (app.name.indexOf('Modello') >= 0)
+ {
+ switch (app.name)
+ {
+ case "Modello Navigation":
+ areasDefinitions[1].id = app.id;
+ break;
+
+ case "Modello HVAC":
+ areasDefinitions[2].id = app.id;
+ break;
+
+ case "Modello Multimedia Player":
+ areasDefinitions[3].id = app.id;
+ break;
+
+ case "Modello SmartDeviceLink":
+ areasDefinitions[4].id = app.id;
+ break;
+
+ case "Modello Phone":
+ areasDefinitions[5].id = app.id;
+ break;
+
+ case "Modello AppManager":
+ areasDefinitions[6].id = app.id;
+ break;
+
+ case "Modello Dashboard":
+ areasDefinitions[7].id = app.id;
+ break;
+ }
+ }
+ }
+}
+
+function setPieAppIDs ()
+{
+ tizen.application.getAppsInfo(fillAppIDs, function(err) {
+ console.log("Modello failed to get app IDs for center icons");
+ });
+}