diff options
author | David Kocik <kocikdav@gmail.com> | 2019-11-27 13:33:36 +0300 |
---|---|---|
committer | David Kocik <kocikdav@gmail.com> | 2019-12-13 15:51:45 +0300 |
commit | b8b4b1dd42953ceedf7a5a4e36433a7d01e2d28a (patch) | |
tree | bf6839ccd4130f4567343b2727b02f9180167dab /src/slic3r/GUI/RemovableDriveManager.hpp | |
parent | 04ef585124bfc65c745ccbeada994dc7c6ac7bb0 (diff) |
refactoring
Diffstat (limited to 'src/slic3r/GUI/RemovableDriveManager.hpp')
-rw-r--r-- | src/slic3r/GUI/RemovableDriveManager.hpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/slic3r/GUI/RemovableDriveManager.hpp b/src/slic3r/GUI/RemovableDriveManager.hpp index c503fdf18..8270c0f0f 100644 --- a/src/slic3r/GUI/RemovableDriveManager.hpp +++ b/src/slic3r/GUI/RemovableDriveManager.hpp @@ -25,18 +25,17 @@ public: //update() searches for removable devices, returns false if empty. static bool update(); - static bool isDriveMounted(std::string path); - static void ejectDrive(std::string path); - static std::string getLastDrivePath(); - static void getAllDrives(std::vector<DriveData>& drives); + static bool is_drive_mounted(const std::string &path); + static void eject_drive(const std::string &path); + static std::string get_last_drive_path(); + static std::vector<DriveData> get_all_drives(); private: RemovableDriveManager(){} - static void searchForDrives(std::vector<DriveData>& newDrives); - static void updateCurrentDrives(const std::vector<DriveData>& newDrives); - static std::vector<DriveData> currentDrives; + static void search_for_drives(); + static std::vector<DriveData> m_current_drives; #if _WIN32 #else - static void searchPath(std::vector<DriveData>& newDrives,const std::string path, const dev_t parentDevID); + static void search_path(const std::string &path, const dev_t &parentDevID); #endif }; }} |