//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
*/
static const int MAX_NOTIFICATION_BADGE_NUMBER = 999;
-/*
- * The maximum length of the title text.
- *
- * @since 2.0
- */
-static const int MAX_NOTIFICATION_TITLE_LENGTH = 1024;
-
-/*
- * @enum OngoingActivityType
- *
- * Defines the ongoing activity notification type.
- *
- * @since 2.0
- */
-enum OngoingActivityType
-{
- ONGOING_ACTIVITY_TYPE_TEXT = 1, /**< The text type */
- ONGOING_ACTIVITY_TYPE_PROGRESS_BYTE, /**< The progress type in byte */
- ONGOING_ACTIVITY_TYPE_PROGRESS_PERCENTAGE /**< The progress type in percentage */
-};
-
-
/**
* @if OSPDEPREC
* @class NotificationManager
*
* The %NotificationManager class provides methods to alert the user about a notification.
* @n
- * For more information about the class features, see <a href="../org.tizen.native.appprogramming/html/guide/app/notifications.htm">Notifications</a>.
+ * For more information about the class features, see <a href="../org.tizen.native.appprogramming/html/guide/shell/notifications.htm">Notifications</a>.
*
* The following example demonstrates how to use the %NotificationManager class.
*
* @if OSPDEPREC
* Notifies the user using a message and badge number. @n
* If the user checks the message, @c launchArguments is delivered to the application. @n
- * @c launchArguments is delivered as the value of the http://tizen.org/appcontrol/data/notification key
+ * @c launchArguments is delivered as the value of the %http://tizen.org/appcontrol/data/notification key
* for IAppControlProviderEventListener::OnAppControlRequestReceived().
*
* @brief <i> [Deprecated] </i>
/**
* @if OSPDEPREC
* Notifies the user about the ongoing activity using a message. @n
- * @c launchArguments is delivered as the value of the http://tizen.org/appcontrol/data/notification key
+ * @c launchArguments is delivered as the value of the %http://tizen.org/appcontrol/data/notification key
* for IAppControlProviderEventListener::OnAppControlRequestReceived().
*
* @brief <i> [Deprecated] </i>
* @exception E_SUCCESS The method is successful.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
- * @remarks The method returns @c E_SUCCESS when there is no outstanding notification.
+ * @remarks This method returns @c E_SUCCESS when there is no outstanding notification.
* @endif
*/
result RemoveOngoingActivityNotification(void);
/**
* @if OSPDEPREC
- * @if VISPARTNER
* Notifies the user using a badge number on behalf of the specified application.
*
* @brief <i> [Deprecated] </i>
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
*
- * @visibility partner
- * @privilege %http://tizen.org/privilege/notificationmanager
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/notification @n
+ * (%http://tizen.org/privilege/notificationmanager is deprecated.)
*
* @return An error code
* @param[in] appId The application ID
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
* @endif
- * @endif
*/
result NotifyOnBehalf(const AppId& appId, int badgeNumber);
/**
* @if OSPDEPREC
- * @if VISPARTNER
* Notifies the user using a message on behalf of the specified application.
*
* @brief <i> [Deprecated] </i>
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
*
- * @visibility partner
- * @privilege %http://tizen.org/privilege/notificationmanager
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/notification @n
+ * (%http://tizen.org/privilege/notificationmanager is deprecated.)
*
* @return An error code
* @param[in] appId The application ID
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
* @endif
- * @endif
*/
result NotifyOnBehalf(const AppId& appId, const Tizen::Base::String& messageText);
/**
* @if OSPDEPREC
- * @if VISPARTNER
* Notifies the user using a message and badge number on behalf of the specified application.
*
* @brief <i> [Deprecated] </i>
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
*
- * @visibility partner
- * @privilege %http://tizen.org/privilege/notificationmanager
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/notification @n
+ * (%http://tizen.org/privilege/notificationmanager is deprecated.)
*
* @return An error code
* @param[in] appId The application ID
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
* @endif
- * @endif
*/
result NotifyOnBehalf(const AppId& appId, const Tizen::Base::String& messageText, int badgeNumber);
/**
* @if OSPDEPREC
- * @if VISPARTNER
* Notifies the user using a message and badge number on behalf of the specified application. @n
* If the user checks the message, the @c launchArguments is delivered to the application.
*
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
*
- * @visibility partner
- * @privilege %http://tizen.org/privilege/notificationmanager
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/notification @n
+ * (%http://tizen.org/privilege/notificationmanager is deprecated.)
*
* @return An error code
* @param[in] appId The application ID
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
* @endif
- * @endif
*/
result NotifyOnBehalf(const AppId& appId, const Tizen::Base::String& messageText, const Tizen::Base::String& launchArguments);
/**
* @if OSPDEPREC
- * @if VISPARTNER
* Notifies the user about the ongoing activity using a message on behalf of the specified application.
*
* @brief <i> [Deprecated] </i>
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
*
- * @visibility partner
- * @privilege %http://tizen.org/privilege/notificationmanager
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/notification @n
+ * (%http://tizen.org/privilege/notificationmanager is deprecated.)
*
* @return An error code
* @param[in] appId The application ID
* @exception E_INVALID_OPERATION The type of application calling this method is invalid as per the %Tizen platform policy.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
* @endif
- * @endif
*/
result NotifyOngoingActivityOnBehalf(const AppId& appId, const Tizen::Base::String& messageText);
/**
* @if OSPDEPREC
- * @if VISPARTNER
* Notifies the user about the ongoing activity using a message on behalf of the specified application.
*
* @brief <i> [Deprecated] </i>
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
*
- * @visibility partner
- * @privilege %http://tizen.org/privilege/notificationmanager
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/notification @n
+ * (%http://tizen.org/privilege/notificationmanager is deprecated.)
*
* @return An error code
* @param[in] appId The application ID
* @exception E_INVALID_OPERATION The type of application calling this method is invalid as per the %Tizen platform policy.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
* @endif
- * @endif
*/
result NotifyOngoingActivityOnBehalf(const AppId& appId, const Tizen::Base::String& messageText, const Tizen::Base::String& launchArguments);
/**
* @if OSPDEPREC
- * @if VISPARTNER
- * Removes the notification message for ongoing activity on behalf of the specified application.
+ * Removes the notification message for the ongoing activity on behalf of the specified application.
*
* @brief <i> [Deprecated] </i>
*
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
*
- * @visibility partner
- * @privilege %http://tizen.org/privilege/notificationmanager
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/notification @n
+ * (%http://tizen.org/privilege/notificationmanager is deprecated.)
*
* @return An error code
* @param[in] appId The application ID
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
* @remarks Although there is no outstanding notification for the calling application, this method returns @c E_SUCCESS.
* @endif
- * @endif
*/
result RemoveOngoingActivityNotificationOnBehalf(const AppId& appId);
/**
* @if OSPDEPREC
- * @if VISPARTNER
* Removes the notification message on behalf of the specified application.
*
* @brief <i> [Deprecated] </i>
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
*
- * @visibility partner
- * @privilege %http://tizen.org/privilege/notificationmanager
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/notification @n
+ * (%http://tizen.org/privilege/notificationmanager is deprecated.)
*
* @return An error code
* @param[in] appId The application ID
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
* @remarks Although there is no outstanding notification for the calling application, this method returns @c E_SUCCESS.
* @endif
- * @endif
*/
result RemoveNotificationOnBehalf(const AppId& appId);