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 <vector> 14 15 class CLinuxStorageProvider : public IStorageProvider 16 { 17 public: 18 CLinuxStorageProvider(); 19 ~CLinuxStorageProvider() override; 20 21 void Initialize() override; 22 void Stop() override; 23 void GetLocalDrives(VECSOURCES &localDrives) override; 24 void GetRemovableDrives(VECSOURCES &removableDrives) override; 25 bool Eject(const std::string& mountpath) override; 26 std::vector<std::string> GetDiskUsage() override; 27 bool PumpDriveChangeEvents(IStorageEventsCallback *callback) override; 28 29 private: 30 IStorageProvider *m_instance; 31 }; 32