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 );
64KPIMUTILS_EXPORT
bool kByteArrayToFile(
const QByteArray & buffer,
65 const QString & fileName,
66 bool askIfExists =
false,
67 bool createBackup =
true,
68 bool withDialogs =
true );
89KPIMUTILS_EXPORT QString checkAndCorrectPermissionsIfPossible(
const QString &toCheck,
91 const bool wantItReadable,
92 const bool wantItWritable );
120KPIMUTILS_DEPRECATED_EXPORT
bool checkAndCorrectPermissionsIfPossibleWithErrorHandling( QWidget *parent,
121 const QString &toCheck,
122 const bool recursive,
123 const bool wantItReadable,
124 const bool wantItWritable );
135KPIMUTILS_EXPORT
bool removeDirAndContentsRecursively(
const QString & path );
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.