YaST2 Developers Documentation: Read/Write files from floppy with dialog support.

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();

This module has an unstable interface.

Imports

  • Label
  • OSRModuleLoading
  • Report
  • Storage
  • 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_use_ui
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:
label
steps
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:
label
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:
use_ui
count_io_files
global Close () -> boolean

Close Floppy Dialog and unmount floppy device. You must call OSRFloppy::Open(.. ) before.