kfloppy
format.cpp
Go to the documentation of this file.
165 const char * const fd0H1440[] = { "/dev/fd0u1440", "/dev/floppy/0u1440", "/dev/fd0h1440", "/dev/fd0H1440", 0L } ;
166 const char * const fd0D720[] = { "/dev/fd0u720", "/dev/floppy/0u720", "/dev/fd0D720", "/dev/fd0h720", 0L };
168 const char * const fd0h360[] = { "/dev/fd0u360", "/dev/floppy/0u360", "/dev/fd0h360", "/dev/fd0d360", 0L };
170 const char * const fd1H1440[] = { "/dev/fd1u1440", "/dev/floppy/1u1440","/dev/fd1h1440", "/dev/fd1H1440", 0L } ;
171 const char * const fd1D720[] = { "/dev/fd1u720", "/dev/floppy/1u720", "/dev/fd1D720", "/dev/fd1h720", 0L };
173 const char * const fd1h360[] = { "/dev/fd1u360", "/dev/floppy/1u360","/dev/fd1h360", "/dev/fd1d360", 0L };
377 theProcess->setEnvironment( QLatin1String( "LC_ALL" ), QLatin1String( "C" ) ); // We need the untranslated output of the tool
502 if ( s.startsWith( QLatin1String( "bad data at cyl" ) ) || s.contains( QLatin1String( "Problem reading cylinder" ) ) )
720 if (s.contains(QLatin1String( "mounted file system" ))) // "/dev/fd0 contains a mounted file system
883 if (s.contains(QLatin1String( "mounted" ))) // "/dev/fd0 is mounted; will not make a filesystem here!"
974 if (s.contains(QLatin1String( "mounted" ))) // "mkfs.minix: /dev/fd0 is mounted; will not make a filesystem here!"
virtual void processStdOut(K3Process *, char *, int)
Provide handling of stdout.
Definition: format.cpp:354
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
QString cap(int nth) const
QString & append(QChar ch)
void done(KFAction *me, bool success)
done() should always be emitted with this as first parameter, to avoid sender() magic and the like...
virtual void processDone(K3Process *)
Provide handling of the exit of the external program.
Definition: format.cpp:324
virtual void processDone(K3Process *)
Provide handling of the exit of the external program.
Definition: format.cpp:601
virtual void processStdOut(K3Process *, char *, int)
Provide handling of stdout.
Definition: format.cpp:464
bool configure(bool verify, bool label, const QString &l)
newfs_msdos(1) doesn't support an additional verify, but Linux mkdosfs(1) does.
Definition: format.cpp:648
QString simplified() const
void clear()
virtual void processStdErr(K3Process *, char *, int)
Provide handling stderr.
Definition: format.cpp:361
This file defines a hierarchy of classes that can run a sequence of external programs (like fdformat...
int indexIn(const QString &str, int offset, CaretMode caretMode) const
QString number(int n, int base)
virtual void exec()
Exec() should return quickly to ensire that the GUI thread stays alive.
Definition: format.cpp:103
int toInt(bool *ok, int base) const
objectName
bool isEmpty() const
QString trimmed() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
bool configure(bool verify)
verify instructs fdformat(1) to verify the medium as well.
Definition: format.cpp:400
QString findExecutable(const QString &e)
Utility function that looks for executables in $PATH and in /sbin and /usr/sbin.
Definition: format.cpp:38
void status(const QString &msg, int progress)
Emit this signal to inform the user of interesting changes; setting msg to an empty string doesn't ch...
bool configureDevice(int driveno, int density)
ConfigureDevice() needs to be called prior to exec() or exec() will fail; this indicates which drive ...
Definition: format.cpp:256
bool contains(QChar ch, Qt::CaseSensitivity cs) const
const fdinfo * deviceInfo
Configuration info (Pointer into list of "/dev/..." entries)
Definition: format.h:212
virtual void exec()
Exec() should return quickly to ensire that the GUI thread stays alive.
Definition: format.cpp:69
virtual void exec()
Exec() should return quickly to ensire that the GUI thread stays alive.
Definition: format.cpp:660
bool configure(bool verify, bool label, const QString &l)
Same args as FATFilesystem::configure.
Definition: format.cpp:821
QString fromLatin1(const char *str, int size)
virtual void exec()
Exec() should return quickly to ensire that the GUI thread stays alive.
Definition: format.cpp:837
int find(QChar c, int i, bool cs) const
virtual void exec()
Exec() should return quickly to ensire that the GUI thread stays alive.
Definition: format.cpp:567
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
virtual void exec()
Exec() should return quickly to ensire that the GUI thread stays alive.
Definition: format.cpp:406
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
static bool runtimeCheck()
Concrete classes can provide a runtimeCheck function (heck, this is static, so the name is up to you)...
Definition: format.cpp:394
static bool runtimeCheck()
Concrete classes can provide a runtimeCheck function (heck, this is static, so the name is up to you)...
Definition: format.cpp:561
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.