kpimutils
21 #ifndef KPIMUTILS_KFILEIO_H
22 #define KPIMUTILS_KFILEIO_H
24 #include "kpimutils_export.h"
44 KPIMUTILS_EXPORT QByteArray kFileToByteArray(
const QString & fileName,
45 bool ensureNewline =
true,
46 bool withDialogs =
true );
64 KPIMUTILS_EXPORT
bool kByteArrayToFile(
const QByteArray & buffer,
65 const QString & fileName,
66 bool askIfExists =
false,
67 bool createBackup =
true,
68 bool withDialogs =
true );
89 KPIMUTILS_EXPORT QString checkAndCorrectPermissionsIfPossible(
const QString &toCheck,
91 const bool wantItReadable,
92 const bool wantItWritable );
118 KPIMUTILS_EXPORT
bool checkAndCorrectPermissionsIfPossibleWithErrorHandling( QWidget *parent,
119 const QString &toCheck,
120 const bool recursive,
121 const bool wantItReadable,
122 const bool wantItWritable );
133 KPIMUTILS_EXPORT
bool removeDirAndContentsRecursively(
const QString & path );
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Nov 26 2013 09:02:35 by
doxygen 1.8.5 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.