Exemplo n.º 1
0
        public void Process(NodeRoot aNode)
        {
            container metadata = new container();

            try
            {
                metadata.AlbumArtUri.Add(iSupport.VirtualFileSystem.Uri(Path.Combine(iInstallPath, "Itunes.png")));
            }
            catch (HttpServerException) { }
            SetContainerMetadata(metadata, aNode);
            iMetadata = metadata;
        }
Exemplo n.º 2
0
        public Database()
        {
            iNextId = 0;
            iTopLevelContainerList = new List <TopLevelContainer>();

            iRoot = new NodeRoot("iTunes", iNextId, null);
            iNextId++;

            iPlaylistBuilder = new NodePlaylistBuilder();

            AddTopLevelContainer("All Tracks", new NodeItemBuilder(new OriginalItemFactory()));
            AddTopLevelContainer("Playlists", iPlaylistBuilder);
            iPlaylistContainer = iTopLevelContainerList[iTopLevelContainerList.Count - 1].Container;
        }
Exemplo n.º 3
0
        public ContainerDataMessage(string aText, IContentDirectorySupportV2 aSupport, ContainerItunes.InsertDelegate aInserter, string aInstallPath)
        {
            // create a root node
            NodeRoot root = new NodeRoot("iTunes", 0, null);

            // create the metadata for it
            MetadataFactory factory = new MetadataFactory(null, aSupport, aInstallPath);

            iMetadata = factory.Create(root, null);

            // create the child metadata
            iChildMetadata             = new item();
            iChildMetadata.Id          = "1";
            iChildMetadata.ParentId    = "0";
            iChildMetadata.Restricted  = true;
            iChildMetadata.Title       = aText;
            iChildMetadata.WriteStatus = "PROTECTED";
            try
            {
                iChildMetadata.ArtworkUri.Add(aSupport.VirtualFileSystem.Uri(Path.Combine(aInstallPath, "Itunes.png")));
            }
            catch (HttpServerException) { }
            iInserter = aInserter;
        }
Exemplo n.º 4
0
 public void Process(NodeRoot aNode)
 {
 }