std::string WebDavSyncServiceAddin::get_fuse_mount_exe_args_for_display(const std::string & mountPath, bool fromStoredValues) { /*std::string url, username, password; if(fromStoredValues) { get_config_settings(url, username, password); } else { get_pref_widget_settings(url, username, password); } // Mask password std::string acceptSsl; if(accept_ssl_cert()) { acceptSsl = "-ac"; } return str(boost::format("%1% -a %2% -u %3% -p %4% %5% -o fsname=gnotewdfs") % mountPath % url % username % password % acceptSsl);*/ std::vector<std::string> args = get_fuse_mount_exe_args(mountPath, fromStoredValues); std::string result; for(std::vector<std::string>::iterator iter = args.begin(); iter != args.end(); ++iter) { result += *iter + " "; } return result; }
Glib::ustring WebDavSyncServiceAddin::get_fuse_mount_exe_args_for_display(const Glib::ustring & mountPath, bool fromStoredValues) { std::vector<Glib::ustring> args = get_fuse_mount_exe_args(mountPath, fromStoredValues); Glib::ustring result; for(auto iter : args) { result += iter + " "; } return result; }
std::vector<Glib::ustring> WebDavSyncServiceAddin::get_fuse_mount_exe_args(const Glib::ustring & mountPath, bool fromStoredValues) { Glib::ustring url, username, password; if(fromStoredValues) { get_config_settings(url, username, password); } else { get_pref_widget_settings(url, username, password); } return get_fuse_mount_exe_args(mountPath, url, username, password, accept_ssl_cert()); }