X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=inc%2FFCntVideoContentInfo.h;h=f6fbc0fea8bf9e07cac68343aa6a674811a8250e;hb=HEAD;hp=588c61ad37cc56839cb2da1e01d56072f437ee2b;hpb=1bf783640104a7f52172b4a7097a801c7c9a77c0;p=platform%2Fframework%2Fnative%2Fcontent.git diff --git a/inc/FCntVideoContentInfo.h b/inc/FCntVideoContentInfo.h index 588c61a..f6fbc0f 100644 --- a/inc/FCntVideoContentInfo.h +++ b/inc/FCntVideoContentInfo.h @@ -50,25 +50,27 @@ class _VideoContentData; * The following example demonstrates how to use the %VideoContentInfo class. * * @code + * #include + * #include + * #include + * #include + * + * using namespace Tizen::Content; + * * result * MyClass::TestVideoContentInfo(void) * { - * result r = E_SUCCESS; - * - * ContentId contentId; * ContentManager contentManager; - * r = contentManager.Construct(); - * TryReturn(!IsFailed(r), r, "Construct failed."); + * result r = contentManager.Construct(); * * VideoContentInfo videoContentInfo; * r = videoContentInfo.Construct(null); - * TryReturn(!IsFailed(r), r, "Construct failed."); * * Tizen::Base::String sourcePath = Tizen::App::App::GetInstance()->GetAppRootPath() + L"data/flower.wmv"; * Tizen::Base::String destPath = Tizen::System::Environment::GetMediaPath() + L"Videos/flower.wmv"; * - * contentId = contentManager.CreateContent(sourcePath, destPath, false, &videoContentInfo); - * TryReturn(Tizen::Base::UuId::GetInvalidUuId() != contentId, GetLastResult(), "CreateContent failed."); + * ContentId contentId = contentManager.CreateContent(sourcePath, destPath, false, &videoContentInfo); + * r = GetLastResult(); * * return r; * }