• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

kpimutils

  • sources
  • kde-4.14
  • kdepimlibs
  • kpimutils
kfileio.h
1 /*
2  Copyright (c) 2005 Tom Albers <tomalbers@kde.nl>
3  Copyright (c) 1997-1999 Stefan Taferner <taferner@kde.org>
4 
5  This library is free software; you can redistribute it and/or modify it
6  under the terms of the GNU Library General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or (at your
8  option) any later version.
9 
10  This library is distributed in the hope that it will be useful, but WITHOUT
11  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13  License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to the
17  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18  02110-1301, USA.
19 */
20 
21 #ifndef KPIMUTILS_KFILEIO_H
22 #define KPIMUTILS_KFILEIO_H
23 
24 #include "kpimutils_export.h"
25 
26 class QByteArray;
27 class QString;
28 class QWidget;
29 
30 namespace KPIMUtils {
31 
44  KPIMUTILS_EXPORT QByteArray kFileToByteArray( const QString & fileName,
45  bool ensureNewline = true,
46  bool withDialogs = true );
47 
64 KPIMUTILS_EXPORT bool kByteArrayToFile( const QByteArray & buffer,
65  const QString & fileName,
66  bool askIfExists = false,
67  bool createBackup = true,
68  bool withDialogs = true );
69 
89 KPIMUTILS_EXPORT QString checkAndCorrectPermissionsIfPossible( const QString &toCheck,
90  const bool recursive,
91  const bool wantItReadable,
92  const bool wantItWritable );
93 
120 KPIMUTILS_DEPRECATED_EXPORT bool checkAndCorrectPermissionsIfPossibleWithErrorHandling( QWidget *parent,
121  const QString &toCheck,
122  const bool recursive,
123  const bool wantItReadable,
124  const bool wantItWritable );
125 
135 KPIMUTILS_EXPORT bool removeDirAndContentsRecursively( const QString & path );
136 
137 }
138 
139 #endif
QWidget
QByteArray
QString
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kpimutils

Skip menu "kpimutils"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal