Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kocik <kocikdav@gmail.com>2019-11-27 16:30:10 +0300
committerDavid Kocik <kocikdav@gmail.com>2019-12-13 17:12:20 +0300
commit9c79c7f644d0e2155cb7bd1c50bcc4b7b6e03d47 (patch)
tree64e4c45a57018197760807f9d97ea71b84e7d31b /src/slic3r/GUI/RemovableDriveManager.hpp
parent1ec7fc23e24b7d981b513d52a039201f2cac506f (diff)
prev commit linux part
Diffstat (limited to 'src/slic3r/GUI/RemovableDriveManager.hpp')
-rw-r--r--src/slic3r/GUI/RemovableDriveManager.hpp37
1 files changed, 1 insertions, 36 deletions
diff --git a/src/slic3r/GUI/RemovableDriveManager.hpp b/src/slic3r/GUI/RemovableDriveManager.hpp
index 1e5d240f0..fa42f5e73 100644
--- a/src/slic3r/GUI/RemovableDriveManager.hpp
+++ b/src/slic3r/GUI/RemovableDriveManager.hpp
@@ -6,7 +6,6 @@
namespace Slic3r {
namespace GUI {
-<<<<<<< HEAD
#if __APPLE__
class RDMMMWrapper;
#endif
@@ -24,25 +23,12 @@ friend class RDMMMWrapper;
#endif
public:
static RemovableDriveManager& get_instance()
-=======
-struct DriveData
-{
- std::string name;
- std::string path;
- DriveData(std::string n, std::string p):name(n),path(p){}
-};
-class RemovableDriveManager
-{
-public:
- static RemovableDriveManager& getInstance()
->>>>>>> removable drive manager - Windows part
{
static RemovableDriveManager instance;
return instance;
}
RemovableDriveManager(RemovableDriveManager const&) = delete;
void operator=(RemovableDriveManager const&) = delete;
-<<<<<<< HEAD
//call only once. on apple register for unmnount callbacks. on windows register for device notification is prepared but not called (eject usb drive on widnows doesnt trigger the callback, sdc ard does), also enumerates devices for first time so init shoud be called on linux too.
void init();
//update() searches for removable devices, returns false if empty. /time = 0 is forced update, time expects wxGetLocalTime()
@@ -107,25 +93,4 @@ protected:
};
#endif
}}
-#endif
-=======
-
- //update() searches for removable devices, returns false if empty.
- static bool update();
- 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();
- static bool is_path_on_removable_drive(const std::string &path);
-private:
- RemovableDriveManager(){}
- static void search_for_drives();
- static std::vector<DriveData> m_current_drives;
-#if _WIN32
-#else
- static void search_path(const std::string &path, const dev_t &parentDevID);
-#endif
-};
-}}
-#endif
->>>>>>> removable drive manager - Windows part
+#endif \ No newline at end of file