Read/Write files from floppy with dialog support.
|
OSRFloppy.ycp
|
How to use OSRFloppy module:
1. OSRFloppy::Open( with ui support, count of files to read/wirte );
2. optional: OSRFloppy::NextStep(_(Copy the file .. ));
WFM::Execute(.local.bash, "/bin/cp ... "); or
OSRFloppy::ReadMap( .. ) or
OSRFloppy::SaveMap( .. )
3. OSRFloppy::Close();
|
|
|
Imports
- Label
- OSRModuleLoading
- Partitions
- Report
- StorageDevices
Global Variables
Global Functions
Local Variables
Local Functions
|
|
|
global mount_point -> string
|
|
Default mount point
global floppy_device -> string
|
|
Default floppy device
local needed_fs_kernel_modules -> list<string>
|
|
Supported file systems
local dialog_open -> boolean
|
|
Only for internal use.
local Reset (boolean local_use_ui) -> void
|
|
Reset the internal values.
- Parameters:
local CheckPresent () -> boolean
|
|
Check if a floppy device exists.
local LoadFsModules () -> boolean
|
|
Load needed fs modules.
local CheckMountPoint () -> boolean
|
|
Check the mount point! If the mount point does not exist
CheckMountPoint create it.
local Mount () -> boolean
|
|
Mount default floppy device
local Umount () -> boolean
|
|
Unmount floppy device
local OpenFloppyDialog (string label, integer steps) -> boolean
|
|
Open the floppy dialog
- Parameters:
global NextStep (string label) -> void
|
|
Change the text in the floppy dialog and increase the progress bar.
If not dialog is opened, write the test to the YaST2 log file (y2log).
- Parameters:
local CloseFloppyDialog () -> boolean
|
|
Close the floppy dialog if the dialog is opened.
global Open (boolean use_ui, integer count_io_files) -> boolean
|
|
Open floppy for IO.
Afterwards you must call OSRFloppy::Close().
- Parameters:
global Close () -> boolean
|
|
Close Floppy Dialog and unmount floppy device.
You must call OSRFloppy::Open(.. ) before.
|