kodi
PosixMountProvider.h
1 /*
2  * Copyright (C) 2005-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "storage/IStorageProvider.h"
12 
13 #include <string>
14 #include <vector>
15 
17 {
18 public:
20  ~CPosixMountProvider() override = default;
21 
22  void Initialize() override;
23  void Stop() override { }
24 
25  void GetLocalDrives(VECSOURCES &localDrives) override { GetDrives(localDrives); }
26  void GetRemovableDrives(VECSOURCES &removableDrives) override { /*GetDrives(removableDrives);*/ }
27 
28  std::vector<std::string> GetDiskUsage() override;
29 
30  bool Eject(const std::string& mountpath) override;
31 
32  bool PumpDriveChangeEvents(IStorageEventsCallback *callback) override;
33 private:
34  void GetDrives(VECSOURCES &drives);
35 
36  unsigned int m_removableLength;
37 };
Definition: PosixMountProvider.h:16
Definition: IStorageProvider.h:65
Definition: IStorageProvider.h:44