X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=inc%2FFCntContentSearch.h;h=cd75221455b4d778b4c3a146e5ab8ceaf79af8de;hb=HEAD;hp=a79a874c0cfbbff478d87cdcbbe8702962747472;hpb=1bf783640104a7f52172b4a7097a801c7c9a77c0;p=platform%2Fframework%2Fnative%2Fcontent.git diff --git a/inc/FCntContentSearch.h b/inc/FCntContentSearch.h index a79a874..cd75221 100644 --- a/inc/FCntContentSearch.h +++ b/inc/FCntContentSearch.h @@ -50,38 +50,27 @@ class _ContentSearchImpl; * The following example demonstrates how to use the %ContentSearch class. * * @code + * #include * #include * - * 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