xbmc
AudioBookFileDirectory.h
1 /*
2  * Copyright (C) 2014 Arne Morten Kvarving
3  *
4  * SPDX-License-Identifier: GPL-2.0-or-later
5  * See LICENSES/README.md for more information.
6  */
7 
8 #pragma once
9 
10 #include "IFileDirectory.h"
11 extern "C" {
12 #include <libavformat/avformat.h>
13 }
14 
15 namespace XFILE
16 {
18  {
19  public:
20  ~CAudioBookFileDirectory(void) override;
21  bool GetDirectory(const CURL& url, CFileItemList &items) override;
22  bool Exists(const CURL& url) override;
23  bool ContainsFiles(const CURL& url) override;
24  bool IsAllowed(const CURL& url) const override { return true; }
25 
26  protected:
27  AVIOContext* m_ioctx = nullptr;
28  AVFormatContext* m_fctx = nullptr;
29  };
30 }
Definition: Scraper.h:41
Represents a list of files.
Definition: FileItem.h:713
Definition: URL.h:20
Definition: AudioBookFileDirectory.h:17
bool IsAllowed(const CURL &url) const override
Whether this file should be listed.
Definition: AudioBookFileDirectory.h:24
bool GetDirectory(const CURL &url, CFileItemList &items) override
Get the items of the directory strPath.
Definition: AudioBookFileDirectory.cpp:48
bool Exists(const CURL &url) override
Check for directory existence.
Definition: AudioBookFileDirectory.cpp:130
Definition: IFileDirectory.h:15