* @deprecated This variable is provided only for backward compatibility and will be deleted in the near future.
* Instead of this variable, use the literal, L"tizen.phone" with operation L"http://tizen.org/appcontrol/operation/call".
* @since 2.0
-* @privilege http://tizen.org/privilege/systeminfo
+* @privilege %http://tizen.org/privilege/systeminfo
*
* @remarks Privilege is required to use this application control.
* @endif
* @deprecated This variable is provided only for backward compatibility and will be deleted in the near future.
* Instead of this variable, use the literal, L"tizen.internet".
* @since 2.0
-* @privilege http://tizen.org/privilege/web.service
+* @privilege %http://tizen.org/privilege/web.service
* @endif
*/
_OSP_EXPORT_ extern const Tizen::Base::String APPCONTROL_BROWSER;
* @deprecated This variable is provided only for backward compatibility and will be deleted in the near future.
* Instead of this variable, use the literal, L"tizen.phone".
* @since 2.0
-* @privilege http://tizen.org/privilege/systeminfo
+* @privilege %http://tizen.org/privilege/systeminfo
*
* @remarks Privilege is required to use this application control.
* @endif
* @deprecated This variable is provided only for backward compatibility and will be deleted in the near future.
* Instead of this variable, use the literal, L"tizen.internet".
* @since 2.0
-* @privilege http://tizen.org/privilege/web.service
+* @privilege %http://tizen.org/privilege/web.service
*
* @remarks Privilege is required to use this application control.
* @endif
* IAppControlResponseListener due to lack of argument capability. @n
* Instead of using this method, use Start().
* @since 2.0
- * @privilege http://tizen.org/privilege/application.launch
+ * @privilege %http://tizen.org/privilege/application.launch
*
* @return An error code
* @param[in] pDataList The data list to deliver to the resolved application control @n
* application is displayed.
*
* @since 2.0
- * @privilege http://tizen.org/privilege/application.launch
+ * @privilege %http://tizen.org/privilege/application.launch
*
* @return An error code
* @param[in] pUriData A pointer to the URI data
* @param[in] pDataType A pointer to the MIME type (RFC 2046) data
- * @param[in] pExtraData A pointer to an argument map of key and value pair where the key is of type String and the value is of type String to deliver to the resolved application @n
+ * @param[in] pExtraData A pointer to an argument map of key and value pair where the key is of type String and the value is of type String or of type ArrayList of String to deliver to the resolved application @n
* The maximum size is 16 kilo bytes.
* @param[in] pListener The application control callback listener @n
* Some application need to get the result by implementing the IAppControlResponseListener interface.
* When the found application control is started, the URI pattern, MIME type, and extra data is delivered using IAppControlProviderEventListener.
*
* @since 2.0
- * @privilege http://tizen.org/privilege/application.launch
+ * @privilege %http://tizen.org/privilege/application.launch
*
* @return An error code
* @param[in] operationId The operation ID
* Instead of using this method, use AppControl::FindAndStart().
* @since 2.0
* @privlevel public
- * @privilege http://tizen.org/privilege/application.launch
+ * @privilege %http://tizen.org/privilege/application.launch
*
* @return An error code
* @param[in] uriData The URI that has a maximum size of @c 1024 bytes
* Instead of using this method, use AppControl::FindAndStart().
* @since 2.0
* @privlevel public
- * @privilege http://tizen.org/privilege/application.launch
+ * @privilege %http://tizen.org/privilege/application.launch
*
* @return An error code
* @param[in] pOperationId The operation ID
* Instead of using this method, use %LaunchApplication() without launch arguments or AppControl::Start().
* @since 2.0
* @privlevel public
- * @privilege http://tizen.org/privilege/application.launch
+ * @privilege %http://tizen.org/privilege/application.launch
*
* @return An error code
* @param[in] appId The application's ID to execute
*
* @since 2.0
* @privlevel public
- * @privilege http://tizen.org/privilege/application.launch
+ * @privilege %http://tizen.org/privilege/application.launch
*
* @return An error code
* @param[in] appId The application's ID to execute
*
* @since 2.0
* @privlevel partner
- * @privilege http://tizen.org/privilege/application.kill
+ * @privilege %http://tizen.org/privilege/application.kill
*
* @return An error code
* @param[in] appId The application's ID to execute
*
* @since 2.0
* @privlevel public
- * @privilege http://tizen.org/privilege/application.launch
+ * @privilege %http://tizen.org/privilege/application.launch
*
* @return An error code
* @param[in] condition The launch condition for the application @n
*
* @since 2.0
* @privlevel public
- * @privilege http://tizen.org/privilege/application.launch
+ * @privilege %http://tizen.org/privilege/application.launch
*
* @return An error code
* @exception E_SUCCESS The method is successful.
*
* @since 2.0
* @privlevel public
- * @privilege http://tizen.org/privilege/application.launch
+ * @privilege %http://tizen.org/privilege/application.launch
*
* @return An error code
* @param[in] condition The launch condition for the application
*
* @since 2.0
* @privlevel partner
- * @privilege http://tizen.org/privilege/appmanager.launch
+ * @privilege %http://tizen.org/privilege/appmanager.launch
*
* @return An error code
* @param[in] appId The ID of the application registered for launch
*
* @since 2.0
* @privlevel partner
- * @privilege http://tizen.org/privilege/appmanager.launch
+ * @privilege %http://tizen.org/privilege/appmanager.launch
*
* @return An error code
* @param[in] appId The application ID
*
* @since 2.0
* @privlevel partner
- * @privilege http://tizen.org/privilege/appmanager.launch
+ * @privilege %http://tizen.org/privilege/appmanager.launch
*
* @return @c true if a condition is already registered to the specified application with the specified condition, @n
* else @c false
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/appusage
+ * @privilege %http://tizen.org/privilege/appusage
*
* @return An error code
* @param[in] listener The event listener
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/appusage
+ * @privilege %http://tizen.org/privilege/appusage
*
* @return An error code
* @param[in] listener The event listener
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/appusage
+ * @privilege %http://tizen.org/privilege/appusage
*
* @return An error code
* @param[out] appId The AppId of the active application
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/appsetting
+ * @privilege %http://tizen.org/privilege/appsetting
*
* @return A pointer to the %AppResource instance, @n
* else @c null if it fails
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/appsetting
+ * @privilege %http://tizen.org/privilege/appsetting
*
* @return An error code
* @param[in] appId The AppId of the installed application
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/appsetting
+ * @privilege %http://tizen.org/privilege/appsetting
*
* @return A pointer to the %AppSetting instance, @n
* else @c null if it fails
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/appsetting
+ * @privilege %http://tizen.org/privilege/appsetting
*
* @return An error code
* @param[in] appId The AppId of the application that has a valid application setting
*
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
- * @privilege http://tizen.org/privilege/notification
+ * @privilege %http://tizen.org/privilege/notification
*
* @return The current badge number
* @exception E_SUCCESS The method is successful.
*
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
- * @privilege http://tizen.org/privilege/notification
+ * @privilege %http://tizen.org/privilege/notification
*
* @return An error code
* @param[in] badgeNumber The badge number
*
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
- * @privilege http://tizen.org/privilege/notification
+ * @privilege %http://tizen.org/privilege/notification
*
* @return An error code
* @param[in] messageText The notification message
*
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
- * @privilege http://tizen.org/privilege/notification
+ * @privilege %http://tizen.org/privilege/notification
*
* @return An error code
* @param[in] messageText The notification message
*
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
- * @privilege http://tizen.org/privilege/notification
+ * @privilege %http://tizen.org/privilege/notification
*
* @return An error code
* @param[in] messageText The notification message
*
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
- * @privilege http://tizen.org/privilege/notification
+ * @privilege %http://tizen.org/privilege/notification
*
* @return An error code
* @exception E_SUCCESS The method is successful.
*
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
- * @privilege http://tizen.org/privilege/notification
+ * @privilege %http://tizen.org/privilege/notification
*
* @return An error code
* @param[in] messageText The notification message
*
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
- * @privilege http://tizen.org/privilege/notification
+ * @privilege %http://tizen.org/privilege/notification
*
* @return An error code
* @param[in] messageText The notification message
*
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
- * @privilege http://tizen.org/privilege/notification
+ * @privilege %http://tizen.org/privilege/notification
*
* @return An error code
* @exception E_SUCCESS The method is successful.
*
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
- * @privilege http://tizen.org/privilege/notification
+ * @privilege %http://tizen.org/privilege/notification
*
* @return The current badge number
* @param[in] appId The application ID
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/notification
+ * @privilege %http://tizen.org/privilege/notification
*
* @return An error code
* @param[in] appId The application ID
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/notification
+ * @privilege %http://tizen.org/privilege/notification
*
* @return An error code
* @param[in] appId The application ID
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/notification
+ * @privilege %http://tizen.org/privilege/notification
*
* @return An error code
* @param[in] appId The application ID
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/notification
+ * @privilege %http://tizen.org/privilege/notification
*
* @return An error code
* @param[in] appId The application ID
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/notification
+ * @privilege %http://tizen.org/privilege/notification
*
* @return An error code
* @param[in] appId The application ID
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/notification
+ * @privilege %http://tizen.org/privilege/notification
*
* @return An error code
* @param[in] appId The application ID
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/notification
+ * @privilege %http://tizen.org/privilege/notification
*
* @return An error code
* @param[in] appId The application ID
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/notification
+ * @privilege %http://tizen.org/privilege/notification
*
* @return An error code
* @param[in] appId The application ID
*
* @since 2.0
* @privlevel platform
- * @privilege http://tizen.org/privilege/packagesetting
+ * @privilege %http://tizen.org/privilege/packagesetting
*
* @return The package type
*/
*
* @since 2.1
* @privlevel platform
- * @privilege http://tizen.org/privilege/packagelicensemanager
+ * @privilege %http://tizen.org/privilege/packagelicensemanager
*
* @return An error code
* @param[in] licenseRequestInfo The string buffer of license request information
*
* @since 2.1
* @privlevel platform
- * @privilege http://tizen.org/privilege/packagelicensemanager
+ * @privilege %http://tizen.org/privilege/packagelicensemanager
*
* @return An error code
* @param[in] rightObject The Package DRM license (right object)
*
* @since 2.1
* @privlevel platform
- * @privilege http://tizen.org/privilege/packagelicensemanager
+ * @privilege %http://tizen.org/privilege/packagelicensemanager
*
* @return The remaining time of the DRM license @n
* If the remaining time is unlimited, the return value of Tizen::Base::TimeSpan's days will be set to @c 9999.
*
* @since 2.1
* @privlevel platform
- * @privilege http://tizen.org/privilege/packagelicensemanager
+ * @privilege %http://tizen.org/privilege/packagelicensemanager
*
* @return An error code
* @param[in] licenseInfo The CEK (Contents Encryption Key)
*
* @since 2.0
* @privlevel public
- * @privilege http://tizen.org/privilege/packageinfo
+ * @privilege %http://tizen.org/privilege/packageinfo
*
* @return An error code
* @param[in] listener The package installation event listener
*
* @since 2.0
* @privlevel public
- * @privilege http://tizen.org/privilege/packageinfo
+ * @privilege %http://tizen.org/privilege/packageinfo
*
* @return An error code
* @param[in] listener The package installation event listener
*
* @since 2.0
* @privlevel public
- * @privilege http://tizen.org/privilege/packageinfo
+ * @privilege %http://tizen.org/privilege/packageinfo
*
* @return A pointer to PackageInfo
* @param[in] packageId The package ID
*
* @since 2.0
* @privlevel public
- * @privilege http://tizen.org/privilege/packageinfo
+ * @privilege %http://tizen.org/privilege/packageinfo
*
* @return A pointer to PackageAppInfo
* @param[in] appId The application ID
*
* @since 2.0
* @privlevel public
- * @privilege http://tizen.org/privilege/packageinfo
+ * @privilege %http://tizen.org/privilege/packageinfo
*
* @return A pointer to the list of the PackageInfo instances, @n
* else @c null if it fails
*
* @since 2.0
* @privlevel public
- * @privilege http://tizen.org/privilege/packageinfo
+ * @privilege %http://tizen.org/privilege/packageinfo
*
* @return @c true if a package is installed, @n
* else @c false
*
* @since 2.0
* @privlevel platform
- * @privilege http://tizen.org/privilege/packagemanager.install
+ * @privilege %http://tizen.org/privilege/packagemanager.install
*
* @return An error code
* @param[in] packageId The package ID
*
* @since 2.0
* @privlevel platform
- * @privilege http://tizen.org/privilege/packagemanager.install
+ * @privilege %http://tizen.org/privilege/packagemanager.install
*
* @return An error code
* @param[in] packageId The package ID
*
* @since 2.0
* @privlevel platform
- * @privilege http://tizen.org/privilege/packagesetting
+ * @privilege %http://tizen.org/privilege/packagesetting
*
* @return An error code
* @param[in] packageId The package ID
*
* @since 2.0
* @privlevel platform
- * @privilege http://tizen.org/privilege/packagesetting
+ * @privilege %http://tizen.org/privilege/packagesetting
*
* @return An error code
* @param[in] packageId The package ID
*
* @since 2.1
* @privlevel platform
- * @privilege http://tizen.org/privilege/packagemanager.info
+ * @privilege %http://tizen.org/privilege/packagemanager.info
*
* @return A pointer to the %PackageInfo instance, @n
* else @c null if it fails
*
* @since 2.1
* @privlevel public
- * @privilege http://tizen.org/privilege/package.info
+ * @privilege %http://tizen.org/privilege/package.info
*
* @return A pointer to the list of the %PackageInfo instances, @n
* else @c null if it fails
*
* @since 2.1
* @privlevel public
- * @privilege http://tizen.org/privilege/package.info
+ * @privilege %http://tizen.org/privilege/package.info
*
* @return A pointer to the list of the %PackageAppInfo instances, @n
* else @c null if it fails
*
* @since 2.1
* @privlevel public
- * @privilege http://tizen.org/privilege/package.info
+ * @privilege %http://tizen.org/privilege/package.info
*
* @return A pointer to the list of the %PackageAppInfo instances, @n
* else @c null if it fails
#include <FIoIMmcStorageMountListener.h>
#include <FIoIMmcStorageFormatListener.h>
#include <FIoFileLock.h>
+#include <FIoDataRow.h>
+#include <FIoDataSetEnumerator.h>
+#include <FIoDataSet.h>
/**
* @namespace Tizen::Io
*
* @since 2.0
* @privlevel platform
- * @privilege http://tizen.org/privilege/systemsetting.read
+ * @privilege %http://tizen.org/privilege/systemsetting.read
*
* @return An error code
* @exception E_SUCCESS Mount operation is successfully started.
*
* @since 2.0
* @privlevel platform
- * @privilege http://tizen.org/privilege/systemsetting.read
+ * @privilege %http://tizen.org/privilege/systemsetting.read
*
* @return An error code
* @exception E_SUCCESS Unmount operation is successfully started.
*
* @since 2.0
* @privlevel platform
- * @privilege http://tizen.org/privilege/systemsetting.read
+ * @privilege %http://tizen.org/privilege/systemsetting.read
*
* @return An error code
* @exception E_SUCCESS Format operation is successfully started.
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/certificate.read
+ * @privilege %http://tizen.org/privilege/certificate.read
*
* @return An error code
* @param[out] name The name of the certificate store
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/certificate.read
+ * @privilege %http://tizen.org/privilege/certificate.read
*
* @return An error code
* @param[in] selector A selector that defines a set of criterion for selecting certificates
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/certificate.read
+ * @privilege %http://tizen.org/privilege/certificate.read
*
* @return An error code
* @param[out] count The count of certificates
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/certificate.read
+ * @privilege %http://tizen.org/privilege/certificate.read
*
* @return The certificates that matches the specified selector
* @exception E_SUCCESS The method is successful.
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/certificate.write
+ * @privilege %http://tizen.org/privilege/certificate.write
*
* @return An error code
* @param[in] certificateType The type of the Certificate (ROOT_CA, OPERATOR_DOMAIN, or TRUSTED_THIRD_PARTY_DOMAIN)
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/certificate.write
+ * @privilege %http://tizen.org/privilege/certificate.write
*
* @return An error code
* @param[in] certificateType The type of the Certificate (ROOT_CA, OPERATOR_DOMAIN, or TRUSTED_THIRD_PARTY_DOMAIN)
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/certificate.write
+ * @privilege %http://tizen.org/privilege/certificate.write
*
* @return An error code
* @param[in] certificateType The type of the Certificate (ROOT_CA, OPERATOR_DOMAIN, TRUSTED_THIRD_PARTY_DOMAIN)
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/certificate.write
+ * @privilege %http://tizen.org/privilege/certificate.write
*
* @return An error code
* @param[in] filePath The file path of PKCS 12 certificate to insert
*
* @since 2.1
* @privlevel platform
- * @privilege http://tizen.org/privilege/privacymanager.read
+ * @privilege %http://tizen.org/privilege/privacymanager.read
*
* @return A pointer to the list of application packages (PackageId) which access user's privacy information, @n
* else @c null if an error occurs
*
* @since 2.1
* @privlevel platform
- * @privilege http://tizen.org/privilege/privacymanager.read
+ * @privilege %http://tizen.org/privilege/privacymanager.read
*
* @return A pointer to the privacy information list (Privacyinfo), @n
* else @c null if an error occurs
*
* @since 2.1
* @privlevel platform
- * @privilege http://tizen.org/privilege/privacymanager.write
+ * @privilege %http://tizen.org/privilege/privacymanager.write
*
* @return An error code
* @param[in] packageId The package ID
*
* @since 2.0
*
- * @privilege http://tizen.org/privilege/alarm
+ * @privilege %http://tizen.org/privilege/alarm
*
* @return An error code
* @param[in] duetime The time for the alarm to ring
*
* @since 2.0
*
- * @privilege http://tizen.org/privilege/alarm
+ * @privilege %http://tizen.org/privilege/alarm
*
* @return An error code
* @param[in] start The time for the alarm to ring first
*
* @since 2.0
*
- * @privilege http://tizen.org/privilege/alarm
+ * @privilege %http://tizen.org/privilege/alarm
*
* @return An error code
* @exception E_SUCCESS The method is successful.
* @since 2.0
*
* @privlevel public
- * @privilege http://tizen.org/privilege/power
+ * @privilege %http://tizen.org/privilege/power
*
* @return An error code
* @param[in] keepOn Set to @c true if the screen remains in the 'ON' state until the application goes to the background(inactivated), @n
* @since 2.0
*
* @privlevel public
- * @privilege http://tizen.org/privilege/power
+ * @privilege %http://tizen.org/privilege/power
*
* @return An error code
* @param[in] brightness The brightness level to set @n
* @since 2.0
*
* @privlevel public
- * @privilege http://tizen.org/privilege/power
+ * @privilege %http://tizen.org/privilege/power
*
* @return An error code
* @exception E_SUCCESS The method is successful.
* @since 2.0
*
* @privlevel public
- * @privilege http://tizen.org/privilege/power
+ * @privilege %http://tizen.org/privilege/power
*
* @return An error code
* @exception E_SUCCESS The method is successful.
* @since 2.0
*
* @privlevel public
- * @privilege http://tizen.org/privilege/power
+ * @privilege %http://tizen.org/privilege/power
*
* @return An error code
* @param[in] enable Set to @c true to prevent the CPU from going into sleep mode, @n
* @since 2.0
*
* @privilege public
- * @privilege http://tizen.org/privilege/setting
+ * @privilege %http://tizen.org/privilege/setting
*
* @return An error code
* @param[in] key The <a href="../org.tizen.native.appprogramming/html/guide/system/settings_info.htm">key name</a> of the setting information
* @since 2.0
*
* @privilege public
- * @privilege http://tizen.org/privilege/setting
+ * @privilege %http://tizen.org/privilege/setting
*
* @return An error code
* @param[in] key The <a href="../org.tizen.native.appprogramming/html/guide/system/settings_info.htm">key name</a> of the setting information
* @since 2.0
*
* @privilege public
- * @privilege http://tizen.org/privilege/setting
+ * @privilege %http://tizen.org/privilege/setting
*
* @return An error code
* @param[in] key The <a href="../org.tizen.native.appprogramming/html/guide/system/settings_info.htm">key name</a> of the setting information
* @since 2.0
*
* @privilege public
- * @privilege http://tizen.org/privilege/setting
+ * @privilege %http://tizen.org/privilege/setting
*
* @return An error code
* @param[in] filePath The file path of the wallpaper
* @since 2.0
*
* @privilege public
- * @privilege http://tizen.org/privilege/setting
+ * @privilege %http://tizen.org/privilege/setting
*
* @return An error code
* @param[in] filePath The file path of the ringtone
* @since 2.0
*
* @privilege public
- * @privilege http://tizen.org/privilege/setting
+ * @privilege %http://tizen.org/privilege/setting
*
* @return An error code
* @param[in] soundCategory The sound volume category
* @since 2.0
*
* @privlevel platform
- * @privilege http://tizen.org/privilege/systemsetting.read
+ * @privilege %http://tizen.org/privilege/systemsetting.read
*
* @return An error code
* @param[in] key The <a href="../org.tizen.native.appprogramming/html/guide/system/settings_info.htm">key name</a> of the setting information
* @since 2.0
*
* @privlevel platform
- * @privilege http://tizen.org/privilege/systemsetting.write
+ * @privilege %http://tizen.org/privilege/systemsetting.write
*
* @return An error code
* @param[in] key The <a href="../org.tizen.native.appprogramming/html/guide/system/settings_info.htm">key name</a> of the setting information
*
* @since 2.0
* @privlevel platform
- * @privilege http://tizen.org/privilege/systemsetting.write
+ * @privilege %http://tizen.org/privilege/systemsetting.write
*
* @return An error code
* @param[in] key The <a href="../org.tizen.native.appprogramming/html/guide/system/settings_info.htm">key name</a> of the setting information
* @since 2.0
*
* @privlevel platform
- * @privilege http://tizen.org/privilege/systemsetting.write
+ * @privilege %http://tizen.org/privilege/systemsetting.write
*
* @return An error code
* @param[in] key The <a href="../org.tizen.native.appprogramming/html/guide/system/settings_info.htm">key name</a> of the setting information
* @since 2.0
*
* @privlevel platform
- * @privilege http://tizen.org/privilege/systemsetting.write
+ * @privilege %http://tizen.org/privilege/systemsetting.write
*
* @return An error code
* @exception E_SUCCESS The method is successful.
* @since 2.0
*
* @privlevel public
- * @privilege http://tizen.org/privilege/platforminfo
+ * @privilege %http://tizen.org/privilege/platforminfo
*
* @return An error code
* @param[out] platformVersion The platform version
* @since 2.0
*
* @privlevel public
- * @privilege http://tizen.org/privilege/platforminfo
+ * @privilege %http://tizen.org/privilege/platforminfo
*
* @return An error code
* @param[out] nativeApiVersion The Native API version
* @since 2.0
*
* @privlevel public
- * @privilege http://tizen.org/privilege/platforminfo
+ * @privilege %http://tizen.org/privilege/platforminfo
*
* @return An error code
* @param[out] webApiVersion The %Tizen API version
* @since 2.1
*
* @privlevel public
- * @privilege http://tizen.org/privilege/platforminfo
+ * @privilege %http://tizen.org/privilege/platforminfo
*
* @return An error code
* @param[out] buildInfo The %Tizen build information
* @since 2.0
*
* @privlevel partner
- * @privilege http://tizen.org/privilege/useridentity
+ * @privilege %http://tizen.org/privilege/useridentity
*
* @return An error code
* @param[out] imei The IMEI of the device
* @since 2.0
*
* @privlevel platform
- * @privilege http://tizen.org/privilege/systemsetting.write
+ * @privilege %http://tizen.org/privilege/systemsetting.write
*
* @return An error code
* @param[in] currentTime The current system time in UTC
*
* @since 2.1
*
- * @privilege http://tizen.org/privilege/vibrator
+ * @privilege %http://tizen.org/privilege/vibrator
*
* @return An error code
*
* @deprecated This method is deprecated. Instead of using this method, use Start(IntensityDurationVibrationPattern[] patterns, int length, int repeatCount).
*
* @privlevel public
- * @privilege http://tizen.org/privilege/vibrator
+ * @privilege %http://tizen.org/privilege/vibrator
*
* @return An error code
* @param[in] onPeriod The period in milliseconds when the vibrator is on @n
* @deprecated This method is deprecated. Instead of using this method, use Start(IntensityDurationVibrationPattern[] patterns, int length, int repeatCount).
*
* @privlevel public
- * @privilege http://tizen.org/privilege/vibrator
+ * @privilege %http://tizen.org/privilege/vibrator
*
* @return An error code
* @param[in] milliseconds The duration for the vibration in milliseconds @n
* @since 2.0
*
* @privlevel public
- * @privilege http://tizen.org/privilege/vibrator
+ * @privilege %http://tizen.org/privilege/vibrator
*
* @return An error code
* @exception E_SUCCESS The method is successful.
BuildRequires: pkgconfig(drm-service-core-intel)
BuildRequires: pkgconfig(haptic)
BuildRequires: pkgconfig(x11)
+BuildRequires: privacy-manager-client-devel
BuildRequires: boost-devel
BuildRequires: gettext-tools
result
-_AppArg::AddStrArray(bundle* b, const char* key, const IList* pList)
+_AppArg::AddStrArray(bundle* pb, const char* key, const IList* pList)
{
- bundle* pb = b;
SysTryReturnResult(NID_APP, pb != NULL, E_INVALID_ARG, "Empty bundle.");
if (pList == null || pList->GetCount() == 0)
return E_SUCCESS;
}
- int i = 0;
- const int count = pList->GetCount();
-
- const char** pSa = new (std::nothrow) const char*[count];
- SysTryReturnResult(NID_APP, pSa != null, E_OUT_OF_MEMORY, "Memory allocation failure with cound %d.", count);
-
- for (i = 0; i < count; i++)
- {
- pSa[i] = null;
-
- const String* pStr = static_cast<const String*>(pList->GetAt(i));
- if (pStr)
- {
- pSa[i] = _StringConverter::CopyToCharArrayN(*pStr);
- }
- }
-
- result r = E_SUCCESS;
-
- int ret = bundle_add_str_array(pb, key, pSa, count);
- if (ret >= 0)
- {
- _AppMessageImpl::AddData(pb, pList);
- }
- else
- {
- SysLog(NID_APP, "Bundle add failre :%d.", ret);
- r = E_SYSTEM;
- }
+ _AppMessageImpl::AddValueArray(pb, key, pList);
_AppMessageImpl::AddData(pb, pList);
-//CATCH:
- for (i = 0; i < count; i++)
- {
- delete[] pSa[i];
- }
-
- delete[] pSa;
-
- return r;
+ return E_SUCCESS;
}
else if (typeid(*pObj) == typeid(const ArrayList))
{
const ArrayList* pList = static_cast<const ArrayList*>(pEnum->GetValue());
- if (pList && *pKey == TIZEN_APPCONTROL_DATA_LEGACY)
+ if (pList)
{
- SysLog(NID_APP, "Legacy AppControl argument");
- _AppArg::AddStrArray(pb, OSP_K_ARG, pList);
- _AppMessageImpl::AddData(pb, pList);
+ SysLog(NID_APP, "ArrayList type");
+
+ _AppMessageImpl::AddValueArray(pb, *pKey, pList);
}
}
else if (typeid(*pObj) == typeid(const ByteBuffer))
return pArray;
}
+result
+_AppMessageImpl::AddValueArray(bundle* pBundle, const String& key, const IList* pList)
+{
+ std::unique_ptr<char[]> pKey(_StringConverter::CopyToCharArrayN(key));
+
+ return AddValueArray(pBundle, pKey.get(), pList);
+}
+
+result
+_AppMessageImpl::AddValueArray(bundle* pBundle, const char* pKey, const IList* pList)
+{
+ SysTryReturnResult(NID_APP, pBundle != NULL, E_INVALID_ARG, "Empty bundle.");
+
+ if (pList == null || pList->GetCount() == 0)
+ {
+ SysLog(NID_APP, "No element added for bundle.");
+ return E_SUCCESS;
+ }
+
+ int i = 0;
+ const int count = pList->GetCount();
+
+ const char** pSa = new (std::nothrow) const char*[count];
+ SysTryReturnResult(NID_APP, pSa != null, E_OUT_OF_MEMORY, "Memory allocation failure with cound %d.", count);
+
+ // element is deliverately iterate with GetAt() for IList
+ for (i = 0; i < count; i++)
+ {
+ pSa[i] = null;
+
+ const String* pStr = static_cast<const String*>(pList->GetAt(i));
+ if (pStr)
+ {
+ pSa[i] = _StringConverter::CopyToCharArrayN(*pStr);
+ //SysLog(NID_APP, "%s", pSa[i]);
+ }
+ }
+
+ int ret = bundle_add_str_array(pBundle, pKey, pSa, count);
+
+ for (i = 0; i < count; i++)
+ {
+ delete[] pSa[i];
+ }
+
+ delete[] pSa;
+
+ return (ret == 0) ? E_SUCCESS : E_SYSTEM;
+}
+
}} // Tizen::App
static result AddStringMap(bundle* pBundle, const Tizen::Base::Collection::IMap* pMap);
static Tizen::Base::Collection::ArrayList* GetValueArray(bundle* pBundle, const char* pKey);
-
static Tizen::Base::Collection::ArrayList* GetValueArray(bundle* pBundle, const Tizen::Base::String& key);
+ static result AddValueArray(bundle* pBundle, const char* pKey, const Tizen::Base::Collection::IList* pList);
+ static result AddValueArray(bundle* pBundle, const Tizen::Base::String& key, const Tizen::Base::Collection::IList* pList);
+
private:
bundle* __pBundle;
};
TARGET_LINK_LIBRARIES(${this_target} "-lalarm" )
TARGET_LINK_LIBRARIES(${this_target} "-L/usr/lib -ldrm-service-core-intel")
TARGET_LINK_LIBRARIES(${this_target} "-lecore" )
+TARGET_LINK_LIBRARIES(${this_target} "-lprivacy-manager-client" )
SET_TARGET_PROPERTIES(${this_target}
__timeout = false;
__waitType = WAIT_TIMEOUT;
- if (__maxTimeout < timeout)
- {
- timeout = __maxTimeout;
- }
-
result r = __pTimer->Start(timeout);
SysTryReturn(NID_BASE_RT, r == E_SUCCESS, r, r,"[%s]Timer does not start.", GetErrorMessage(r));
__waitType = WAIT_TIMEOUT_CONDITION;
__pWaitingLoopCondition = &condition;
- if(timeout > __maxTimeout)
- {
- timeout = __maxTimeout;
- }
-
if (timeout < __waitingRepeatableTime)
{
result r = __pTimer->StartAsRepeatable(__waitingRepeatableTime);
INCLUDE_DIRECTORIES(
${SLP_INCLUDE_DIRS}
/usr/include/chromium
+ /usr/include/privacy_manager
cert
inc
./
*/
#include <new>
+#include <privacy_manager_client.h>
#include <FSecPrivacyManager.h>
#include <FBaseSysLog.h>
#include "FSec_PrivacyManagerImpl.h"
+#include <FBase_StringConverter.h>
+#include <FSecPrivacyInfo.h>
using namespace Tizen::Base;
using namespace Tizen::Base::Collection;
return privacyManager.__pPrivacyManagerImpl;
}
+
+bool GetPrivacyAppPackageListNCallback(const char *package_id, void* user_data)
+{
+ result r = E_SUCCESS;
+ ArrayList* pList = static_cast < ArrayList* >(user_data);
+
+ pList->Add(new String(package_id));
+ return true;
+}
+
Tizen::Base::Collection::IList*
_PrivacyManagerImpl::GetPrivacyAppPackageListN(void) const
{
- return null;
+ ArrayList* pPackageIdList = null;
+ int ret = 0;
+ pPackageIdList = new ArrayList();
+ pPackageIdList->Construct();
+
+ ret = privacy_manager_client_foreach_privacy_packages(GetPrivacyAppPackageListNCallback, pPackageIdList);
+
+ return pPackageIdList;
+}
+
+bool GetPrivacyInfoListNCallback(privacy_info_client_s* pPrivacy_info, void* user_data)
+{
+ result r = E_SUCCESS;
+ ArrayList* pList = static_cast < ArrayList* >(user_data);
+
+ String pPrivacyId = String(pPrivacy_info->privacy_id);
+ bool isEnabled = pPrivacy_info->is_enabled;
+
+ PrivacyInfo* pPrivacyInfo = new PrivacyInfo();
+ r = pPrivacyInfo->Construct(pPrivacyId, isEnabled);
+
+ pList->Add(pPrivacyInfo);
+ return true;
}
Tizen::Base::Collection::IList*
_PrivacyManagerImpl::GetPrivacyInfoListN(const Tizen::App::PackageId& packageId) const
{
- return null;
+ int ret = 0;
+ ArrayList* pPrivacyIdList = null;
+ char* pAppId = null;
+
+ pPrivacyIdList = new ArrayList();
+ pPrivacyIdList->Construct();
+
+ pAppId = _StringConverter::CopyToCharArrayN(packageId);
+
+ ret = privacy_manager_client_foreach_get_privacy_info(pAppId, GetPrivacyInfoListNCallback, (void *)pPrivacyIdList);
+ delete pAppId;
+
+ return pPrivacyIdList;
}
result
_PrivacyManagerImpl::SetAppPackagePrivacy(const Tizen::App::PackageId& packageId, const PrivacyInfo& privacyInfo)
{
result r = E_SUCCESS;
+ int ret = 0;
+ char* pPackageId = null;
+ char* pPrivacyId = null;
+
+ bool isEnabled = false;
+
+ pPackageId = _StringConverter::CopyToCharArrayN(packageId);
+ pPrivacyId = _StringConverter::CopyToCharArrayN(privacyInfo.GetId());
+ isEnabled = privacyInfo.IsEnabled();
+ ret = privacy_manager_client_set_package_privacy(pPackageId, pPrivacyId, isEnabled);
return r;
}
namespace Tizen { namespace Security { namespace Cert
{
-const int _MAX_CERTIFICATE_SIZE = 8192;
+const int _MAX_CERTIFICATE_SIZE = 12288;
const int _MAX_CERT_PRIVATE_KEY_SIZE = 3072;
const int _MAX_CERT_PUBLIC_KEY_SIZE = 2048;
const int _MAX_CERTIFICATE_PATH_SIZE = 128;
*/
int GetClientId(void) const;
- /**
- * Returns the process id of the client which sent a request message.
- *
- * @return The process id of the IPC client.
- * @remark This can be called only in a message handler.
- */
int GetClientProcessId(void) const;
- /**
- * Returns the package id of the client which sent a request message.
- *
- * @return The package id of the IPC client.
- * @remark This can be called only in a message handler.
- */
Tizen::Base::String GetClientAppId(void) const;
+ Tizen::Base::String GetClientAppExecutableName(void) const;
+
/**
- * Returns the executable name of the client which sent a request message.
+ * Returns the package id of the client which sent a request message.
*
- * @return The executable name of the IPC client.
+ * @return The package id of the IPC client.
* @remark This can be called only in a message handler.
*/
- Tizen::Base::String GetClientAppExecutableName(void) const;
+ Tizen::App::PackageId GetClientPackageId(void) const;
/**
* Returns the application id of the client which sent a request message.
return nullString;
}
+PackageId
+_IpcServer::GetClientPackageId(void) const
+{
+ static String nullString;
+
+ if (__pCurrentClientInfo)
+ {
+ return __pCurrentClientInfo->pkgId;
+ }
+
+ return nullString;
+}
+
AppId
_IpcServer::GetClientApplicationId(void) const
{