32 #ifndef SIGNON_CRYPTSETUP_HANDLER_H
33 #define SIGNON_CRYPTSETUP_HANDLER_H
67 bool makeCall(
const QString &appPath,
68 const QStringList &args,
69 bool readOutput =
false);
75 QByteArray
output()
const {
return m_output; }
78 void error(QProcess::ProcessError err);
104 const quint32 fileSize);
114 const quint32 fileSystemType);
137 static bool mount(
const QString &source,
138 const QString &target,
139 const QString &fileSystemType = QLatin1String(
"ext2"));
145 static bool umount(
const QString &target);
169 const QString &blockDevice);
206 static bool formatFile(
const QByteArray &key,
const QString &deviceName);
214 static bool openFile(
const QByteArray &key,
215 const QString &deviceName,
216 const QString &deviceMap);
222 static bool closeFile(
const QString &deviceName);
229 static bool removeFile(
const QString &deviceName);
240 static bool addKeySlot(
const QString &deviceName,
241 const QByteArray &key,
242 const QByteArray &existingKey);
252 const QByteArray &key,
253 const QByteArray &remainingKey);
264 static QString
error();
274 #endif // SIGNON_CRYPTSETUP_HANDLER_H