12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- /*****************************************************************************
- * MediaCategory.swift
- * VLC for iOS
- *****************************************************************************
- * Copyright (c) 2018 VideoLAN. All rights reserved.
- * $Id$
- *
- * Authors: Soomin Lee <bubu@mikan.io>
- *
- * Refer to the COPYING file of the official project for license.
- *****************************************************************************/
- class VLCMovieCategoryViewController: VLCMediaCategoryViewController {
- init(_ services: Services) {
- let model = VideoModel(medialibrary: services.medialibraryManager)
- super.init(services: services, category: model)
- category.updateView = { [weak self] in
- self?.reloadData()
- }
- }
- }
- class VLCShowEpisodeCategoryViewController: VLCMediaCategoryViewController {
- init(_ services: Services) {
- let model = ShowEpisodeModel(medialibrary: services.medialibraryManager)
- super.init(services: services, category: model)
- category.updateView = { [weak self] in
- self?.reloadData()
- }
- }
- }
- class VLCPlaylistCategoryViewController: VLCMediaCategoryViewController {
- init(_ services: Services) {
- let model = PlaylistModel(medialibrary: services.medialibraryManager)
- super.init(services: services, category: model)
- category.updateView = { [weak self] in
- self?.reloadData()
- }
- }
- }
- class VLCTrackCategoryViewController: VLCMediaCategoryViewController {
- init(_ services: Services) {
- let model = AudioModel(medialibrary: services.medialibraryManager)
- super.init(services: services, category: model)
- category.updateView = { [weak self] in
- self?.reloadData()
- }
- }
- }
- class VLCGenreCategoryViewController: VLCMediaCategoryViewController {
- init(_ services: Services) {
- let model = GenreModel(medialibrary: services.medialibraryManager)
- super.init(services: services, category: model)
- category.updateView = { [weak self] in
- self?.reloadData()
- }
- }
- }
- class VLCArtistCategoryViewController: VLCMediaCategoryViewController {
- init(_ services: Services) {
- let model = ArtistModel(medialibrary: services.medialibraryManager)
- super.init(services: services, category: model)
- category.updateView = { [weak self] in
- self?.reloadData()
- }
- }
- }
- class VLCAlbumCategoryViewController: VLCMediaCategoryViewController {
- init(_ services: Services) {
- let model = AlbumModel(medialibrary: services.medialibraryManager)
- super.init(services: services, category: model)
- category.updateView = { [weak self] in
- self?.reloadData()
- }
- }
- }
|