* @param[in] listener The listener to receive the sent result asynchronously
* @exception E_SUCCESS The method is successful.
* @exception E_OUT_OF_MEMORY The memory is insufficient.
- * @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature. @b Since: @b 2.1
+ * @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature.
* For more information, see <a href="../org.tizen.gettingstarted/html/tizen_overview/application_filtering.htm">Application Filtering</a>.
* @remarks Before calling this method, check whether the feature is supported by
* Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
* - The message is empty.
* @exception E_MAX_EXCEEDED The number of recipients has crossed the maximum limit (Maximum 10).
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
- * @exception E_USER_NOT_CONSENTED The user has blocked the application from calling this method. @b Since: @b 2.1
- * @remarks
+ * @exception E_USER_NOT_CONSENTED The user has blocked the application from calling this method.
+ * @remarks
* - Some service providers may not support sending MMS messages with an empty subject or body. @n
* In this case, the result of the status report is the @c E_FAILURE exception.
* - The CC and BCC recipients in the @c recipientList are merged with the TO recipients when sending an MMS message.
*/
result Send(const MmsMessage& message, const RecipientList& recipientList, bool saveToSentbox);
+ /**
+ * Gets the total number of MMS messages in the specified message box.
+ *
+ * @since 3.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/messaging.read @n
+ *
+ * @return The total number of MMS messages in the specified message box
+ * @param[in] type The message box type
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_ARG The specified @c type is invalid.
+ * @exception E_SYSTEM A system error has occurred.
+ * @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user has blocked the application from calling this method.
+ * @remarks
+ * - In case of an error, this method returns a negative value. For example, @c -1.
+ * - The specific error code can be accessed using the GetLastResult() method.
+ */
+ int GetTotalMessageCount(MmsMessageBoxType type) const;
+
+ /**
+ * Searches the MMS messages by keyword in the specified message box.
+ *
+ * @since 3.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/messaging.read @n
+ *
+ * @return A pointer to the list of MmsMessage instances
+ * @param[in] type The type of message box
+ * @param[in] pKeyword A part of the body text as a keyword (partial match) @n
+ * In case of @c null or an empty string, this method searches all the MMS messages in the specified message box.
+ * @param[in] offset The offset of the searched results (base 0)
+ * @param[in] maxCount The maximum count of SMS messages to search
+ * @param[out] totalResultCount The total count of the searched result
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_ARG Either of the following conditions has occurred:
+ * - The specified @c type is invalid.
+ * - The specified @c pKeyword string length is less than @c 2.
+ * - The specified @c pKeyword string length is greater than @c 30.
+ * - The specified @c offset value is less than @c 0.
+ * - The specified @c maxCount value is less than @c 0.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
+ * @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user has blocked the application from calling this method.
+ * @remarks
+ * - The specific error code can be accessed using the GetLastResult() method.
+ * - The search with the specified keywords uses only the first 50 characters of the body text.
+ */
+ Tizen::Base::Collection::IList* SearchMessageBoxN(MmsMessageBoxType type, const Tizen::Base::String* pKeyword, int offset, int maxCount, int& totalResultCount) const;
+
+ /**
+ * Searches all the MMS messages by keyword in the specified message box.
+ *
+ * @since 3.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/messaging.read @n
+ *
+ * @return A pointer to the IEnumerator object, which contains list of searched MmsMessage instances
+ * @param[in] type The type of message box
+ * @param[in] pKeyword A part of the body text as a keyword (partial match) @n
+ * In case of @c null or an empty string, this method searches all the MMS messages in the specified message box.
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_ARG Either of the following conditions has occurred:
+ * - The specified @c type is invalid.
+ * - The specified @c pKeyword string length is less than @c 2.
+ * - The specified @c pKeyword string length is greater than @c 30.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
+ * @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user has blocked the application from calling this method.
+ * @remarks
+ * - The specific error code can be accessed using the GetLastResult() method.
+ * - The search with the specified keywords uses only the first 50 characters of the body text.
+ */
+ Tizen::Base::Collection::IEnumerator* SearchMessageBoxN(MmsMessageBoxType type, const Tizen::Base::String* pKeyword) const;
+
private:
_MmsManagerImpl* __pImpl;
* @param[in] listener The listener to receive a sent result asynchronously
* @exception E_SUCCESS The method is successful.
* @exception E_OUT_OF_MEMORY The memory is insufficient.
- * @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature. @b Since: @b 2.1
+ * @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature.
* For more information, see <a href="../org.tizen.gettingstarted/html/tizen_overview/application_filtering.htm">Application Filtering</a>.
* @remarks Before calling this method, check whether the feature is supported by
* Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_OBJ_ALREADY_EXIST The listener already exists.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
- * @exception E_USER_NOT_CONSENTED The user has blocked the application from calling this method. @b Since: @b 2.1
+ * @exception E_USER_NOT_CONSENTED The user has blocked the application from calling this method.
* @see RemoveSmsMessageEventListener()
*/
result AddSmsMessageEventListener(ISmsMessageEventListener& eventListener);
* @exception E_OBJ_NOT_FOUND The listener is not found.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
- * @exception E_USER_NOT_CONSENTED The user has blocked the application from calling this method. @b Since: @b 2.1
+ * @exception E_USER_NOT_CONSENTED The user has blocked the application from calling this method.
* @see AddSmsMessageEventListener()
*/
result RemoveSmsMessageEventListener(ISmsMessageEventListener& eventListener);
* @exception E_INVALID_ARG The number of recipients is @c 0.
* @exception E_MAX_EXCEEDED The number of recipients has crossed the maximum limit (Maximum 10).
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
- * @exception E_USER_NOT_CONSENTED The user has blocked the application from calling this method. @b Since: @b 2.1
+ * @exception E_USER_NOT_CONSENTED The user has blocked the application from calling this method.
* @remarks The CC and BCC recipients in the @c recipientList are ignored while sending an SMS message.
* @see ISmsListener::OnSmsMessageSent()
*/
* @exception E_INVALID_ARG The specified @c type is invalid.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
- * @exception E_USER_NOT_CONSENTED The user has blocked the application from calling this method. @b Since: @b 2.1
- * @remarks
+ * @exception E_USER_NOT_CONSENTED The user has blocked the application from calling this method.
+ * @remarks
* - In case of an error, this method returns a negative value. For example, @c -1.
* - The specific error code can be accessed using the GetLastResult() method.
*/
* In case of @c null or an empty string, this method searches all the SMS messages in the Inbox regardless of the keyword.
* @param[in] pSenderAddress A telephone number as a sender address (exact match) @n
* In case of @c null or an empty string, this method searches all the SMS messages in the Inbox regardless of the sender address.
- * @param[in] startIndex The starting index (base 0)
- * @param[in] count The count of SMS messages to search
+ * @param[in] offset The offset of the searched results (base 0)
+ * @param[in] maxCount The maximum count of SMS messages to search
* @param[out] totalResultCount The total count of the searched result
* @exception E_SUCCESS The method is successful.
* @exception E_INVALID_ARG Either of the following conditions has occurred:
* - The specified @c pKeyword string length is greater than @c 30.
* - The specified @c pSenderAddress string length is less than @c 3.
* - The specified @c pSenderAddress string length is greater than @c 41.
- * - The specified @c startIndex value is less than @c 0.
- * - The specified @c count value is less than @c 0.
- * - The specified @c count value is greater than @c 20.
+ * - The specified @c offset value is less than @c 0.
+ * - The specified @c maxCount value is less than @c 0.
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
- * @exception E_USER_NOT_CONSENTED The user has blocked the application from calling this method. @b Since: @b 2.1
- * @remarks
+ * @exception E_USER_NOT_CONSENTED The user has blocked the application from calling this method.
+ * @remarks
* - The specific error code can be accessed using the GetLastResult() method.
* - The search with the specified keywords uses only the first 50 characters of the body text.
* - The SMS messages in the searched result contain only @c 160 bytes for the body text.
* - To get the full body text, use GetFullText() with its message ID.
* @see GetFullText()
*/
- Tizen::Base::Collection::IList* SearchInboxN(const Tizen::Base::String* pKeyword, const Tizen::Base::String* pSenderAddress, int startIndex, int count, int& totalResultCount) const;
+ Tizen::Base::Collection::IList* SearchInboxN(const Tizen::Base::String* pKeyword, const Tizen::Base::String* pSenderAddress, int offset, int maxCount, int& totalResultCount) const;
/**
* Searches the SMS messages by keyword in the specified message box.
* @param[in] type The type of message box
* @param[in] pKeyword A part of the body text as a keyword (partial match) @n
* In case of @c null or an empty string, this method searches all the SMS messages in the specified message box.
- * @param[in] startIndex The start index (base 0)
- * @param[in] count The count of SMS messages to search
+ * @param[in] offset The offset of the searched results
+ * @param[in] maxCount The maximum count of SMS messages to search
* @param[out] totalResultCount The total count of the searched result
* @exception E_SUCCESS The method is successful.
* @exception E_INVALID_ARG Either of the following conditions has occurred:
* - The specified @c type is invalid.
* - The specified @c pKeyword string length is less than @c 2.
* - The specified @c pKeyword string length is greater than @c 30.
- * - The specified @c startIndex value is less than @c 0.
- * - The specified @c count value is less than @c 0.
- * - The specified @c count value is greater than @c 20.
+ * - The specified @c offset value is less than @c 0.
+ * - The specified @c maxCount value is less than @c 0.
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
- * @exception E_USER_NOT_CONSENTED The user has blocked the application from calling this method. @b Since: @b 2.1
- * @remarks
+ * @exception E_USER_NOT_CONSENTED The user has blocked the application from calling this method.
+ * @remarks
* - The specific error code can be accessed using the GetLastResult() method.
* - The search with the specified keywords uses only the first 50 characters of the body text.
* - The SMS messages in the searched result contain only @c 160 bytes for the body text.
* - To get the full body text, use the GetFullText() method with the message ID.
* @see GetFullText()
*/
- Tizen::Base::Collection::IList* SearchMessageBoxN(SmsMessageBoxType type, const Tizen::Base::String* pKeyword, int startIndex, int count, int& totalResultCount) const;
+ Tizen::Base::Collection::IList* SearchMessageBoxN(SmsMessageBoxType type, const Tizen::Base::String* pKeyword, int offset, int maxCount, int& totalResultCount) const;
/**
* Gets the full text of the SMS message in the message box using the message ID.
* @exception E_OBJ_NOT_FOUND The SMS message with the specified @c messageId is not found.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
- * @exception E_USER_NOT_CONSENTED The user has blocked the application from calling this method. @b Since: @b 2.1
+ * @exception E_USER_NOT_CONSENTED The user has blocked the application from calling this method.
* @remarks The specific error code can be accessed using the GetLastResult() method.
* @see SmsMessage::HasMoreText()
*/
* @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.
- * @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature. @b Since: @b 2.1
+ * @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature.
* For more information, see <a href="../org.tizen.gettingstarted/html/tizen_overview/application_filtering.htm">Application Filtering</a>.
* @remarks Before calling this method, check whether the feature is supported by
* Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
* @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.
- * @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature. @b Since: @b 2.1
+ * @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature.
* For more information, see <a href="../org.tizen.gettingstarted/html/tizen_overview/application_filtering.htm">Application Filtering</a>.
* @remarks Before calling this method, check whether the feature is supported by
* Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
* @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.
- * @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature. @b Since: @b 2.1
+ * @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature.
* For more information, see <a href="../org.tizen.gettingstarted/html/tizen_overview/application_filtering.htm">Application Filtering</a>.
* @remarks Before calling this method, check whether the feature is supported by
* Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
* @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.
- * @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature. @b Since: @b 2.1
+ * @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature.
* For more information, see <a href="../org.tizen.gettingstarted/html/tizen_overview/application_filtering.htm">Application Filtering</a>.
* @remarks Before calling this method, check whether the feature is supported by
* Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
* @exception E_ILLEGAL_ACCESS The application does not have the permission to add the CBS channel.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
- * @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature. @b Since: @b 2.1
+ * @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature.
* For more information, see <a href="../org.tizen.gettingstarted/html/tizen_overview/application_filtering.htm">Application Filtering</a>.
* @remarks Before calling this method, check whether the feature is supported by
* Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
* @exception E_ILLEGAL_ACCESS The application does not have the permission to remove the CBS channel.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
- * @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature. @b Since: @b 2.1
+ * @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature.
* For more information, see <a href="../org.tizen.gettingstarted/html/tizen_overview/application_filtering.htm">Application Filtering</a>.
* @remarks Before calling this method, check whether the feature is supported by
* Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
* - The range (@c to - @c from) exceeds the limit (0xFFFF).
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
- * @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature. @b Since: @b 2.1
+ * @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature.
* For more information, see <a href="../org.tizen.gettingstarted/html/tizen_overview/application_filtering.htm">Application Filtering</a>.
* @remarks
* - Before calling this method, check whether the feature is supported by
* @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.
- * @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature. @b Since: @b 2.1
+ * @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature.
* For more information, see <a href="../org.tizen.gettingstarted/html/tizen_overview/application_filtering.htm">Application Filtering</a>.
* @remarks
* - Before calling this method, check whether the feature is supported by
*/
Tizen::Base::Collection::IList* GetCbsChannelListN(void);
+ /**
+ * Searches all the SMS messages by keyword in the specified message box.
+ *
+ * @since 3.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/messaging.read @n
+ *
+ * @return A pointer to the IEnumerator object, which contains list of searched SmsMessage instances
+ * @param[in] type The type of message box
+ * @param[in] pKeyword A part of the body text as a keyword (partial match) @n
+ * In case of @c null or an empty string, this method searches all the SMS messages in the specified message box.
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_ARG Either of the following conditions has occurred:
+ * - The specified @c type is invalid.
+ * - The specified @c pKeyword string length is less than @c 2.
+ * - The specified @c pKeyword string length is greater than @c 30.
+ * @exception E_OUT_OF_MEMORY The memory is insufficient.
+ * @exception E_SYSTEM A system error has occurred.
+ * @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user has blocked the application from calling this method.
+ * @remarks
+ * - The specific error code can be accessed using the GetLastResult() method.
+ * - The search with the specified keywords uses only the first 50 characters of the body text.
+ * - The SMS messages in the searched result contain only @c 160 bytes for the body text.
+ * - To check whether there is additional text, use the SmsMessage::HasMoreText() method.
+ * - To get the full body text, use the GetFullText() method with the message ID.
+ * @see GetFullText()
+ */
+ Tizen::Base::Collection::IEnumerator* SearchMessageBoxN(SmsMessageBoxType type, const Tizen::Base::String* pKeyword) const;
+
private:
_SmsManagerImpl* __pImpl;