* The following example demonstrates how to use the %ContentDirectory 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 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