public:
/**
* This is the default constructor for this class.
- *
- * @since 1.0
*/
_NotificationManagerImpl(void);
/**
* This is the destructor for this class.
- *
- * @since 1.0
*/
virtual ~_NotificationManagerImpl(void);
/**
* Initializes this instance of %_NotificationManagerImpl.
*
- * @since 1.0
* @return An error code
* @exception E_SUCCESS The method is successful.
* @exception E_SYSTEM A system error has occurred.
- * @exception E_OUT_OF_MEMORY The memory is insufficient.
*/
result Construct(void);
/**
* Gets the badge number of the application icon.
*
- * @since 1.0
- *
* @return The current badge number
* @exception E_SUCCESS The method is successful.
* @exception E_SYSTEM A system error has occurred.
/**
* Notifies the user using a badge number.
*
- * @since 1.0
- *
* @return An error code
* @param[in] badgeNumber The badge number
* @exception E_SUCCESS The method is successful.
/**
* Notifies the user using a message.
*
- * @since 1.0
- *
* @return An error code
* @param[in] messageText The notification message
* @exception E_SUCCESS The method is successful.
/**
* Notifies the user using a message and badge number.
*
- * @since 1.0
- *
* @return An error code
* @param[in] messageText The notification message
* @param[in] badgeNumber The badge number
* @c launchArguments is specified as input parameter for Application::OnUserEventReceivedN() or can be obtained by
* invoking Application::GetAppArgumentListN(), especially within Application::OnAppInitializing().
*
- * @since 1.0
- *
* @return An error code
* @param[in] messageText The notification message
* @param[in] badgeNumber The badge number
* Notifies the user using a message. @n
* The message may have various information like alert text, title text, launch arguments, and so on.
*
- * @since 2.1
- *
* @return An error code
* @param[in] message The notification message
* @param[in] isOngoing Ongoing Notification
* Notifies the user using a message. @n
* The message may have various information like alert text, title text, launch arguments, and so on.
*
- * @since 2.1
- *
* @return An error code
* @param[in] appId The Application ID
* @param[in] message The notification message
/**
* Removes the notification message.
*
- * @since 2.0
- *
* @return An error code
* @exception E_SUCCESS The method was successful.
* @exception E_SYSTEM A system error occurred.
/**
* Notifies the user about the ongoing activity using a message.
*
- * @since 2.0
- *
* @return An error code
* @param[in] messageText The notification message
* @exception E_SUCCESS The method is successful.
* @c launchArguments is specified as input parameter for Application::OnUserEventReceivedN() or can be obtained by
* invoking Application::GetAppArgumentListN(), especially within Application::OnAppInitializing().
*
- * @since 2.0
- *
* @return An error code
* @param[in] messageText The notification message
* @param[in] launchArguments The launch arguments for the application
/**
* Removes the notification message for the ongoing activity.
*
- * @since 2.0
- *
* @return An error code
* @exception E_SUCCESS The method is successful.
* @exception E_SYSTEM A system error has occurred.
/**
* Gets the badge number of the application icon.
*
- * @since 1.0
- *
* @return The current badge number
* @param[in] appId The application ID
* @exception E_SUCCESS The method is successful.
/**
* Notifies the user using a badge number on behalf of the specified application.
*
- * @since 1.0
- *
* @return An error code
* @param[in] appId The application ID
* @param[in] badgeNumber The badge number
/**
* Notifies the user using a message on behalf of the specified application.
*
- * @since 1.0
- *
* @return An error code
* @param[in] appId The application ID
* @param[in] messageText The notification message
/**
* Notifies the user using a message and badge number on behalf of the specified application.
*
- * @since 1.0
- *
* @return An error code
* @param[in] appId The application ID
* @param[in] messageText The notification message
* 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.
*
- * @since 2.0
- *
* @return An error code
* @param[in] appId The application ID
* @param[in] messageText The notification message
* 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.
*
- * @since 2.0
- *
* @return An error code
* @param[in] appId The application ID
* @param[in] messageText The notification message
/**
* Notifies the user about the ongoing activity using a message on behalf of the specified application.
*
- * @since 2.0
- *
* @return An error code
* @param[in] appId The application ID
* @param[in] messageText The notification message
/**
* Notifies the user about the ongoing activity using a message on behalf of the specified application.
*
- * @since 2.0
- *
* @return An error code
* @param[in] appId The application ID
* @param[in] messageText The notification message
/**
* Removes the notification message for ongoing activity on behalf of the specified application.
*
- * @since 2.0
- *
* @return An error code
* @param[in] appId The application ID
* @exception E_SUCCESS The method is successful.
/**
* Removes the notification message on behalf of the specified application.
*
- * @since 2.0
- *
* @return An error code
* @param[in] appId The application ID
* @exception E_SUCCESS The method was successful.
*/
result RemoveNotificationByAppId(const Tizen::App::AppId& appId);
+ /**
+ * Notifies the user using a message.
+ *
+ * @return An error code
+ * @param[in] messageText The notification message
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_ARG The specified input parameter is invalid, or
+ * the length of @c messageText is greater than Shell::MAX_NOTIFICATION_MESSAGE_LENGTH.
+ * @exception E_SYSTEM A system error has occurred.
+ * @exception E_INVALID_OPERATION The type of application calling this method is invalid as per the Tizen platform policy.
+ * @exception E_INVALID_STATE This instance is in an invalid state. @n
+ * The Construct() method is not called.
+ */
+ result NotifyTextMessage(const Tizen::Base::String& messageText) const;
+
static const _NotificationManagerImpl* GetInstance(const NotificationManager& notiMgr);
static _NotificationManagerImpl* GetInstance(NotificationManager& notiMgr);