From 61bcb380e9e814c8f65f219ca85e02e30c4c1eb2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tobias=20N=C3=A4tterlund?= <tobias.naetterlund.qnx@kdab.com>
Date: Fri, 8 Mar 2013 13:45:57 +0100
Subject: [PATCH] QNX: Add more application permissions to bar descriptor
 editor

Change-Id: I2a7504956baeb3c8bb9b60b06952d38e0676a1c8
Reviewed-by: Mehdi Fekari <mfekari@rim.com>
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
---
 .../qnx/bardescriptorpermissionsmodel.cpp     | 66 +++++++++++++++----
 1 file changed, 52 insertions(+), 14 deletions(-)

diff --git a/src/plugins/qnx/bardescriptorpermissionsmodel.cpp b/src/plugins/qnx/bardescriptorpermissionsmodel.cpp
index ccd700b5455..fb122d03cfb 100644
--- a/src/plugins/qnx/bardescriptorpermissionsmodel.cpp
+++ b/src/plugins/qnx/bardescriptorpermissionsmodel.cpp
@@ -141,24 +141,62 @@ QStringList BarDescriptorPermissionsModel::checkedIdentifiers() const
 void BarDescriptorPermissionsModel::initModel()
 {
     beginResetModel();
-    m_permissions << BarDescriptorPermission(tr("Files"), QLatin1String("access_shared"),
-                                             tr("Read and write files that are shared between all applications run by the current user."));
-    m_permissions << BarDescriptorPermission(tr("Microphone"), QLatin1String("record_audio"),
-                                             tr("Access the audio stream from the microphone."));
-    m_permissions << BarDescriptorPermission(tr("GPS Location"), QLatin1String("read_geolocation"),
-                                             tr("Read the current location of the device."));
+    m_permissions << BarDescriptorPermission(tr("BlackBerry Messenger"), QLatin1String("bbm_connect"),
+                                             tr("Allows this app to connect to the BBM Social Platform to access BBM\n"
+                                                "contact lists and user profiles, invite BBM contacts to download your\n"
+                                                "app, initiate BBM chats and share content from within your app, or\n"
+                                                "stream data between apps in real time."));
+    m_permissions << BarDescriptorPermission(tr("Calendar"), QLatin1String("access_pimdomain_calendars"),
+                                             tr("Allows this app to access the calendar on the device. This access\n"
+                                                "includes viewing, adding, and deleting calendar appointments."));
     m_permissions << BarDescriptorPermission(tr("Camera"), QLatin1String("use_camera"),
-                                             tr("Capture images and video using the cameras."));
+                                             tr("Allows this app to take pictures, record video, and use the flash."));
+    m_permissions << BarDescriptorPermission(tr("Contacts"), QLatin1String("access_pimdomain_contacts"),
+                                             tr("Allows this app to access the contacts stored on the device. This\n"
+                                                "access includes viewing, creating, and deleting the contacts."));
+    m_permissions << BarDescriptorPermission(tr("Device Identifying Information"), QLatin1String("read_device_identifying_information"),
+                                             tr("Allows this app to access device identifiers such as serial number and PIN."));
+    m_permissions << BarDescriptorPermission(tr("Email and PIN Messages"), QLatin1String("access_pimdomain_messages"),
+                                             tr("Allows this app to access the email and PIN messages stored on the\n"
+                                                "device. This access includes viewing, creating, sending, and deleting\n"
+                                                "the messages."));
+    m_permissions << BarDescriptorPermission(tr("GPS Location"), QLatin1String("read_geolocation"),
+                                             tr("Allows this app to access the current GPS location of the device."));
     m_permissions << BarDescriptorPermission(tr("Internet"), QLatin1String("access_internet"),
-                                             tr("Use a Wi-Fi, wired, or other connection to a destination that is not local."));
-    m_permissions << BarDescriptorPermission(tr("Play Sounds"), QLatin1String("play_audio"),
-                                             tr("Play an audio stream."));
+                                             tr("Allows this app to use Wi-fi, wired, or other connections to a\n"
+                                                "destination that is not local on the user's device."));
+    m_permissions << BarDescriptorPermission(tr("Location"), QLatin1String("access_location_services"),
+                                             tr("Allows this app to access the device's current or saved locations."));
+    m_permissions << BarDescriptorPermission(tr("Microphone"), QLatin1String("record_audio"),
+                                             tr("Allows this app to record sound using the microphone."));
+    m_permissions << BarDescriptorPermission(tr("Notebooks"), QLatin1String("access_pimdomain_notebooks"),
+                                             tr("Allows this app to access the content stored in the notebooks on the\n"
+                                                "device. This access includes adding and deleting entries and content."));
     m_permissions << BarDescriptorPermission(tr("Post Notifications"), QLatin1String("post_notification"),
                                              tr("Post a notification to the notifications area of the screen."));
-    m_permissions << BarDescriptorPermission(tr("Set Audio Volume"), QLatin1String("set_audio_volume"),
-                                             tr("Change the volume of an audio stream being played."));
-    m_permissions << BarDescriptorPermission(tr("Device Identifying Information"), QLatin1String("read_device_identifying_information"),
-                                             tr("Access unique device identifying information (e.g. PIN)."));
+    m_permissions << BarDescriptorPermission(tr("Push"), QLatin1String("_sys_use_consumer_push"),
+                                             tr("Allows this app to use the Push Service with the BlackBerry Internet\n"
+                                                "Service. This access allows the app to receive and request push\n"
+                                                "messages. To use the Push Service with the BlackBerry Internet Service,\n"
+                                                "you must register with BlackBerry. When you register, you\n"
+                                                "receive a confirmation email message that contains information that\n"
+                                                "your application needs to receive and request push messages. For more\n"
+                                                "information about registering, visit\n"
+                                                "https://developer.blackberry.com/services/push/. If you're using the\n"
+                                                "Push Service with the BlackBerry Enterprise Server or the BlackBerry\n"
+                                                "Device Service, you don't need to register with BlackBerry."));
+    m_permissions << BarDescriptorPermission(tr("Run When Backgrounded"), QLatin1String("run_when_backgrounded"),
+                                             tr("Allows background processing. Without this permission, the app is\n"
+                                                "stopped when the user switches focus to another app. Apps that use this\n"
+                                                "permission are rigorously reviewed for acceptance to BlackBerry App\n"
+                                                "World storefront for their use of power."));
+    m_permissions << BarDescriptorPermission(tr("Shared Files"), QLatin1String("access_shared"),
+                                             tr("Allows this app to access pictures, music, documents, and other files\n"
+                                                "stored on the user's device, at a remote storage provider, on a media\n"
+                                                "card, or in the cloud."));
+    m_permissions << BarDescriptorPermission(tr("Text Messages"), QLatin1String("access_sms_mms"),
+                                             tr("Allows this app to access the text messages stored on the device. The\n"
+                                                "access includes viewing, creating, sending, and deleting text messages."));
     endResetModel();
 }
 
-- 
GitLab