TestMount Class Reference

[kfstab Index] [kfstab Hierarchy]


This is class TestMount More...

#include <testmount.h>

Inherits: KDialog

Public Members

Public Slots

Protected Members

Protected Slots

Private Members


Detailed Description

This is class TestMount.This class makes it possible to test if a filesystem can be mounted.


TestMount( QString cmd2, QString cmd3, QString cmd5, QString cmd7, QWidget *parent=0, const char *name=0 )

This is the Constructor of class TestMount. It draws the widget we need and calls the mount and umount programs.

~TestMount()

This is the destructor of class TestMount.

It cleans up if neccassary by killing a running mount or umount process. If a filesystem is mounted it unmounts it.

void executeMount()

This method executeMount is called whenever a mount is to be done.

void executeUmount()

This method executeUmount is called whenever a umount is to be done.

void doTestMount()

This method calls executeMount and afterwards executeUmount and does some testing if everything went ok.

void doPermanentMount()

This method calls executeMount and does some testing if everything went ok. Afterwards the selected partition is mounted.

void doPermanentUmount()

This method calls executeUmount and does some testing if everything went ok. Afterwards the selected partition is unmounted.

QMultiLineEdit *QMLEmount

This MultiLineEdit is used to display the output of mount and umount.

virtual void slotProcessDead( KProcess * )

This slot is responsable when a KProcess is finished or killed.

virtual void slotCmdStdout( KProcess *, char *, int )

This slot is called whenever a output of a KProcess is send using stdout or stderr.

void unstableCondition()

This method gives out a KMsgBox as an unstable condition has appeared.

KShellProcess mountProc

mountProc holds the KProcess which calls mount / umount.

QString cmd2

This variable stores the 2nd argument for mount. This is usualy the device.

QString cmd3

This variable stores the 3rd argument for mount. This is usualy the moint point.

QString cmd5

This variable stores the 5th argument for mount. This is usualy the filesystemtype.

QString cmd7

This vaiable stores the 7th argument for mount. This are usualy the options.

int mounting

This variable indicates if weare doing a mount or unmount process. So only one combined method for the stdout and stderr can be used.

int mountSuccess

This variable stores if a mount process was successful.


  • Author: Andreas Reuter
  • Documentation generated by areuter@vaio on Tue Jul 20 21:36:01 MEST 1999
Kdoc