Merge pull request #25808 from CastagnaIT/fix_url_parse
[xbmc.git] / xbmc / filesystem / AudioBookFileDirectory.h
blobccc01cd3bd287404f7750e1f8f3135076f8bdfd4
1 /*
2 * Copyright (C) 2014 Arne Morten Kvarving
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 * See LICENSES/README.md for more information.
6 */
8 #pragma once
10 #include "IFileDirectory.h"
11 extern "C" {
12 #include <libavformat/avformat.h>
15 namespace XFILE
17 class CAudioBookFileDirectory : public IFileDirectory
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; }
26 protected:
27 AVIOContext* m_ioctx = nullptr;
28 AVFormatContext* m_fctx = nullptr;