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 );
120 KPIMUTILS_DEPRECATED_EXPORT
bool checkAndCorrectPermissionsIfPossibleWithErrorHandling( QWidget *parent,
121 const QString &toCheck,
122 const bool recursive,
123 const bool wantItReadable,
124 const bool wantItWritable );
135 KPIMUTILS_EXPORT
bool removeDirAndContentsRecursively(
const QString & path );
This file is part of the KDE documentation.
Documentation copyright © 1996-2018 The KDE developers.
Generated on Fri Jun 15 2018 09:16:35 by
doxygen 1.8.5 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.