diff options
author | David Kocik <kocikdav@gmail.com> | 2019-11-27 13:33:36 +0300 |
---|---|---|
committer | David Kocik <kocikdav@gmail.com> | 2019-12-13 17:05:01 +0300 |
commit | 72f1adbb443a37cd2ffc9f005e63549f032085c0 (patch) | |
tree | 3bdd52484926fa1ae4841b1dc3a32b701965a145 /src/slic3r/GUI/RemovableDriveManager.hpp | |
parent | 4bf8a0ef24ea0a2212d6c8cf2661d2617c4af773 (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 157f670b3..c00164446 100644 --- a/src/slic3r/GUI/RemovableDriveManager.hpp +++ b/src/slic3r/GUI/RemovableDriveManager.hpp @@ -112,18 +112,17 @@ protected: //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 }; }} |