1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- /*****************************************************************************
- * 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 VLCVideoPlaylistCategoryViewController: VLCMediaCategoryViewController {
- init(_ services: Services) {
- let model = VideoModel(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()
- }
- }
- }
- class VLCAudioPlaylistCategoryViewController: VLCMediaCategoryViewController {
- init(_ services: Services) {
- let model = VideoModel(medialibrary: services.medialibraryManager)
- super.init(services: services, category: model)
- category.updateView = { [weak self] in
- self?.reloadData()
- }
- }
- }
|