Browse Source

generalize a config option

pull/186/head
mhogomchungu 8 months ago
parent
commit
350e2b3572
  1. 4
      custom backends/archivemount.json
  2. 4
      custom backends/fuseiso.json
  3. 4
      custom backends/google-drive-ocamlfuse.json
  4. 4
      custom backends/utahfs.json
  5. 12
      src/createbackendwindow.cpp
  6. 4
      src/engines/custom.cpp

4
custom backends/archivemount.json

@ -12,7 +12,6 @@
"createControlStructure": "",
"displayName":"",
"executableName": "archivemount",
"failedToMountTextList": [],
"fileExtensions": [
".tar.xz",".tar.gz"
],
@ -32,6 +31,8 @@
"reverseString": "",
"runsInBackGround": true,
"setsCipherPath": true,
"stringsToCheckForFailedMount": [],
"stringsToCheckForSuccessfulMount": [],
"defaultFavoritesMountOptions": "",
"sirikaliMinimumVersion":"",
"takesTooLongToUnlock": false,
@ -45,7 +46,6 @@
"windowsExecutableFolderPath": "",
"windowsInstallPathRegistryKey": "",
"windowsInstallPathRegistryValue": "",
"windowsSuccessfullyMountedList": [],
"windowsSupportsMountPointPaths": false,
"windowsUnMountCommand": [],
"wrongPasswordErrorCode": "",

4
custom backends/fuseiso.json

@ -12,7 +12,8 @@
"createControlStructure": "",
"displayName":"",
"executableName": "fuseiso",
"failedToMountTextList": [],
"stringsToCheckForFailedMount": [],
"stringsToCheckForSuccessfulMount": [],
"fileExtensions": [
".iso"," .nrg"," .bin"," .mdf",".img"
],
@ -44,7 +45,6 @@
"windowsExecutableFolderPath": "",
"windowsInstallPathRegistryKey": "",
"windowsInstallPathRegistryValue": "",
"windowsSuccessfullyMountedList": [],
"windowsSupportsMountPointPaths": false,
"windowsUnMountCommand": [],
"wrongPasswordErrorCode": "",

4
custom backends/google-drive-ocamlfuse.json

@ -12,7 +12,8 @@
"createControlStructure": "",
"displayName":"",
"executableName": "google-drive-ocamlfuse",
"failedToMountTextList": [],
"stringsToCheckForFailedMount": [],
"stringsToCheckForSuccessfulMount": [],
"fileExtensions": [],
"fuseNames": [
"fuse.google-drive-ocamlfuse"
@ -42,7 +43,6 @@
"windowsExecutableFolderPath": "",
"windowsInstallPathRegistryKey": "",
"windowsInstallPathRegistryValue": "",
"windowsSuccessfullyMountedList": [],
"windowsSupportsMountPointPaths": false,
"windowsUnMountCommand": [],
"wrongPasswordErrorCode": "",

4
custom backends/utahfs.json

@ -14,7 +14,8 @@
"createControlStructure": "",
"displayName":"",
"executableName": "utahfs-client",
"failedToMountTextList": [],
"stringsToCheckForFailedMount": [],
"stringsToCheckForSuccessfulMount": ["filesystem successfully mounted"],
"fileExtensions": [],
"fuseNames": [
"fuse.utahfs"
@ -44,7 +45,6 @@
"windowsExecutableFolderPath": "",
"windowsInstallPathRegistryKey": "",
"windowsInstallPathRegistryValue": "",
"windowsSuccessfullyMountedList": ["filesystem successfully mounted"],
"windowsSupportsMountPointPaths": false,
"windowsUnMountCommand": [],
"wrongPasswordErrorCode": "",

12
src/createbackendwindow.cpp

@ -155,17 +155,17 @@ void createBackendWIndow::save()
config[ "displayName" ] = "" ;
config[ "sirikaliMinimumVersion" ] = "" ;
config[ "windowsSupportsMountPointPaths" ] = m_ui->cbSupportsMountPointPaths->isChecked() ;
config[ "windowsSuccessfullyMountedList" ] = _addList( m_ui->lineEditSuccessfullyMountedText->text() ) ;
config[ "executableName" ] = executable ;
config[ "configFileNames" ] = _addList( configFileNames ) ;
config[ "fuseNames" ] = _addList( fusenames ) ;
config[ "names" ] = _addList( names ) ;
config[ "failedToMountTextList" ] = _addList( m_ui->lineEditFailedToMountText->text() ) ;
config[ "configFileNames" ] = _addList( configFileNames ) ;
config[ "fuseNames" ] = _addList( fusenames ) ;
config[ "names" ] = _addList( names ) ;
config[ "stringsToCheckForFailedMount" ] = _addList( m_ui->lineEditFailedToMountText->text() ) ;
config[ "stringsToCheckForSuccessfulMount" ] = _addList( m_ui->lineEditSuccessfullyMountedText->text() ) ;
config[ "configFileArgument" ] = m_ui->lineEditConfigFileArgument->text() ;
config[ "wrongPasswordText" ] = password ;
config[ "wrongPasswordErrorCode" ] = m_ui->lineEditWrongPasswordErrorCode->text() ;
config[ "requiresAPassword" ] = m_ui->cbRequiresAPassword->isChecked() ;
config[ "autoMountsOnVolumeCreation" ] = m_ui->cbAutoMountsOnVolumeCreation->isChecked() ;
config[ "executableName" ] = executable ;
config[ "backendRequireMountPath" ] = true ;
config[ "autorefreshOnMountUnMount" ] = true ;
config[ "backendTimeout" ] = 0 ;

4
src/engines/custom.cpp

@ -70,8 +70,8 @@ static void _parse( engines::engine::BaseOptions& s,const SirikaliJson& json )
s.windowsUnMountCommand = json.getStringList( "windowsUnMountCommand" ) ;
s.unMountCommand = json.getStringList( "unMountCommand" ) ;
s.failedToMountList = json.getStringList( "failedToMountTextList" ) ;
s.successfulMountedList = json.getStringList( "windowsSuccessfullyMountedList" ) ;
s.failedToMountList = json.getStringList( "stringsToCheckForFailedMount" ) ;
s.successfulMountedList = json.getStringList( "stringsToCheckForSuccessfulMount" ) ;
s.configFileNames = json.getStringList( "configFileNames" ) ;
s.names = json.getStringList( "names" ) ;
s.fuseNames = json.getStringList( "fuseNames" ) ;

Loading…
Cancel
Save