X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=inc%2FFCntContentDirectory.h;h=2e25dd1f3766dea7ccfd06643f436a321292bd61;hb=HEAD;hp=2e246b3d7f54d1cfc02b4dfe2bc7137497b628b8;hpb=1bf783640104a7f52172b4a7097a801c7c9a77c0;p=platform%2Fframework%2Fnative%2Fcontent.git diff --git a/inc/FCntContentDirectory.h b/inc/FCntContentDirectory.h index 2e246b3..2e25dd1 100644 --- a/inc/FCntContentDirectory.h +++ b/inc/FCntContentDirectory.h @@ -55,39 +55,27 @@ class _ContentDirectoryImpl; * The following example demonstrates how to use the %ContentDirectory class. * * @code + * #include * #include * - * using namespace Tizen::Base; - * using namespace Tizen::Base::Collection; * using namespace Tizen::Content; * * void * MyClass::Test(void) * { - * // Call Construct() of ContentDirectory - * ContentDirectory directory; - * const Tizen::Base::String contentDirectoryPath = L""; - * result r = directory.Construct(CONTENT_TYPE_AUDIO); - * if (IsFailed(r)) - * { - * // Do something for an error - * } + * ContentDirectory contentDirectory; + * const Tizen::Base::String contentDirectoryPath = L""; + * result r = contentDirectory.Construct(CONTENT_TYPE_AUDIO); * - * // Call GetContentDirectoryItemListN() of ContentDirectory as the first page - * int pageNo = 1; - * int countPerPage = 5; - * int totalPage = 0; - * int totalCount = 0; - * IList* pContentInfoList = directory.GetContentDirectoryItemListN(contentDirectoryPath, pageNo, countPerPage, L"Title", SORT_ORDER_ASCENDING); - * - * if (IsFailed(GetLastResult())) - * { - * // Do something for an error - * } + * int pageNo = 1; + * int countPerPage = 5; + * int totalPage = 0; + * int totalCount = 0; + * Tizen::Base::Collection::IList* pContentInfoList = contentDirectory.GetContentDirectoryItemListN(contentDirectoryPath, pageNo, countPerPage, L"Title", SORT_ORDER_ASCENDING); + * r = GetLastResult(); * - * // Delete resource - * pContentInfoList->RemoveAll(true); - * delete pContentInfoList; + * pContentInfoList->RemoveAll(true); + * delete pContentInfoList; * } * * @endcode