本文整理汇总了C++中MetadataLookup::GetCountries方法的典型用法代码示例。如果您正苦于以下问题:C++ MetadataLookup::GetCountries方法的具体用法?C++ MetadataLookup::GetCountries怎么用?C++ MetadataLookup::GetCountries使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MetadataLookup
的用法示例。
在下文中一共展示了MetadataLookup::GetCountries方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: LookupVideo
DTC::VideoLookupList* Video::LookupVideo( const QString &Title,
const QString &Subtitle,
const QString &Inetref,
int Season,
int Episode,
const QString &GrabberType )
{
DTC::VideoLookupList *pVideoLookups = new DTC::VideoLookupList();
MetadataLookupList list;
MetadataFactory *factory = new MetadataFactory(NULL);
if (factory)
list = factory->SynchronousLookup(Title, Subtitle,
Inetref, Season, Episode, GrabberType);
if ( !list.size() )
return pVideoLookups;
for( int n = 0; n < list.size(); n++ )
{
DTC::VideoLookup *pVideoLookup = pVideoLookups->AddNewVideoLookup();
MetadataLookup *lookup = list[n];
if (lookup)
{
pVideoLookup->setTitle(lookup->GetTitle());
pVideoLookup->setSubTitle(lookup->GetSubtitle());
pVideoLookup->setSeason(lookup->GetSeason());
pVideoLookup->setEpisode(lookup->GetEpisode());
pVideoLookup->setYear(lookup->GetYear());
pVideoLookup->setTagline(lookup->GetTagline());
pVideoLookup->setDescription(lookup->GetDescription());
pVideoLookup->setCertification(lookup->GetCertification());
pVideoLookup->setInetref(lookup->GetInetref());
pVideoLookup->setHomePage(lookup->GetHomepage());
pVideoLookup->setReleaseDate(QDateTime(lookup->GetReleaseDate()));
pVideoLookup->setUserRating(lookup->GetUserRating());
pVideoLookup->setLength(lookup->GetRuntime());
pVideoLookup->setLanguage(lookup->GetLanguage());
pVideoLookup->setCountries(lookup->GetCountries());
pVideoLookup->setPopularity(lookup->GetPopularity());
pVideoLookup->setBudget(lookup->GetBudget());
pVideoLookup->setRevenue(lookup->GetRevenue());
pVideoLookup->setIMDB(lookup->GetIMDB());
pVideoLookup->setTMSRef(lookup->GetTMSref());
ArtworkList coverartlist = lookup->GetArtwork(kArtworkCoverart);
ArtworkList::iterator c;
for (c = coverartlist.begin(); c != coverartlist.end(); ++c)
{
DTC::ArtworkItem *art = pVideoLookup->AddNewArtwork();
art->setType("coverart");
art->setUrl((*c).url);
art->setThumbnail((*c).thumbnail);
art->setWidth((*c).width);
art->setHeight((*c).height);
}
ArtworkList fanartlist = lookup->GetArtwork(kArtworkFanart);
ArtworkList::iterator f;
for (f = fanartlist.begin(); f != fanartlist.end(); ++f)
{
DTC::ArtworkItem *art = pVideoLookup->AddNewArtwork();
art->setType("fanart");
art->setUrl((*f).url);
art->setThumbnail((*f).thumbnail);
art->setWidth((*f).width);
art->setHeight((*f).height);
}
ArtworkList bannerlist = lookup->GetArtwork(kArtworkBanner);
ArtworkList::iterator b;
for (b = bannerlist.begin(); b != bannerlist.end(); ++b)
{
DTC::ArtworkItem *art = pVideoLookup->AddNewArtwork();
art->setType("banner");
art->setUrl((*b).url);
art->setThumbnail((*b).thumbnail);
art->setWidth((*b).width);
art->setHeight((*b).height);
}
ArtworkList screenshotlist = lookup->GetArtwork(kArtworkScreenshot);
ArtworkList::iterator s;
for (s = screenshotlist.begin(); s != screenshotlist.end(); ++s)
{
DTC::ArtworkItem *art = pVideoLookup->AddNewArtwork();
art->setType("screenshot");
art->setUrl((*s).url);
art->setThumbnail((*s).thumbnail);
art->setWidth((*s).width);
art->setHeight((*s).height);
}
delete lookup;
}
}
pVideoLookups->setCount ( list.count() );
pVideoLookups->setAsOf ( QDateTime::currentDateTime() );
//.........这里部分代码省略.........