libkdepim Library API Documentation

kfileio.h

00001 /* Load / save entire (local) files with nice diagnostics dialog messages. 00002 * These functions load/save the whole buffer in one i/o call, so they 00003 * should be pretty efficient. 00004 * 00005 * Author: Stefan Taferner <taferner@kde.org> 00006 * This code is under GPL. 00007 */ 00008 #ifndef kpim_kfileio_h 00009 #define kpim_kfileio_h 00010 00011 #include <qcstring.h> 00012 00013 class QString; 00014 00015 namespace KPIM { 00016 00025 QCString kFileToString(const QString &fileName, bool ensureNewline=true, 00026 bool withDialogs=true); 00027 00028 // unused 00029 //QByteArray kFileToBytes(const QString &fileName, bool withDialogs=true); 00030 00031 00037 bool kBytesToFile(const char* aBuffer, int len, 00038 const QString &aFileName, 00039 bool aAskIfExists, bool aBackup, bool aVerbose); 00040 00041 bool kCStringToFile(const QCString& buffer, const QString &fileName, 00042 bool askIfExists=false, bool createBackup=true, 00043 bool withDialogs=true); 00045 bool kByteArrayToFile(const QByteArray& buffer, const QString &fileName, 00046 bool askIfExists=false, bool createBackup=true, 00047 bool withDialogs=true); 00048 00049 } 00050 00051 #endif /*kpim_kfileio_h*/
KDE Logo
This file is part of the documentation for libkdepim Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Oct 1 15:18:55 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003