* The following example demonstrates how to use the %ContentSearch class.
*
* @code
+ * #include <FBase.h>
* #include <FContent.h>
*
- * using namespace Tizen::Base;
- * using namespace Tizen::Base::Collection;
* using namespace Tizen::Content;
*
* void
* MyClass::Test(void)
* {
- * // Call Construct() of ContentSearch
- * ContentSearch search;
- * result r = search.Construct(CONTENT_TYPE_AUDIO);
- * if (IsFailed(r))
- * {
- * // Do something for an error
- * }
+ * ContentSearch search;
+ * result r = search.Construct(CONTENT_TYPE_AUDIO);
*
- * // Call SearchN() of ContentSearch as the first page
- * int pageNo = 1;
- * int countPerPage = 5;
- * int totalPage = 0;
- * int totalCount = 0;
- * IList* pContentInfoList = search.SearchN(pageNo, countPerPage, totalPage, totalCount,
+ * int pageNo = 1;
+ * int countPerPage = 5;
+ * int totalPage = 0;
+ * int totalCount = 0;
+ * Tizen::Base::Collection::IList* pContentInfoList = search.SearchN(pageNo, countPerPage, totalPage, totalCount,
* L"Artist='rain'", L"Title", SORT_ORDER_ASCENDING);
- * if (IsFailed(GetLastResult()))
- * {
- * // Do something for an error
- * }
+ * r = GetLastResult();
*
- * // Delete resource
- * pContentInfoList->RemoveAll(true);
- * delete pContentInfoList;
+ * pContentInfoList->RemoveAll(true);
+ * delete pContentInfoList;
* }
*
* @endcode