public NetworkCatalogItem libraryItem() {
   final UrlInfoCollection<UrlInfo> urlMap = new UrlInfoCollection<UrlInfo>();
   urlMap.addInfo(getUrlInfo(UrlInfo.Type.Catalog));
   urlMap.addInfo(getUrlInfo(UrlInfo.Type.Image));
   urlMap.addInfo(getUrlInfo(UrlInfo.Type.Thumbnail));
   return new OPDSCatalogItem(
       this,
       getTitle(),
       getSummary(),
       urlMap,
       OPDSCatalogItem.Accessibility.ALWAYS,
       OPDSCatalogItem.FLAGS_DEFAULT | OPDSCatalogItem.FLAG_ADD_SEARCH_ITEM,
       myExtraData);
 }
Beispiel #2
0
 private static UrlInfoCollection<UrlInfo> createSimpleCollection(String url) {
   final UrlInfoCollection<UrlInfo> collection = new UrlInfoCollection<UrlInfo>();
   collection.addInfo(new UrlInfo(UrlInfo.Type.Catalog, url, MimeType.APP_ATOM_XML));
   return collection;
 }