libkdepim
kfileio.h00001
00002
00003
00004
00005
00006
00007
00008 #ifndef kpim_kfileio_h
00009 #define kpim_kfileio_h
00010
00011 #include <qcstring.h>
00012 #include <qwidget.h>
00013
00014 #include <kdepimmacros.h>
00015
00016 class QString;
00017
00018 namespace KPIM {
00019
00028 QCString kFileToString(const QString &fileName, bool ensureNewline=true,
00029 bool withDialogs=true) KDE_EXPORT;
00030
00031
00032
00033
00034
00040 bool kBytesToFile(const char* aBuffer, int len,
00041 const QString &aFileName,
00042 bool aAskIfExists, bool aBackup, bool aVerbose) KDE_EXPORT;
00043
00044 bool kCStringToFile(const QCString& buffer, const QString &fileName,
00045 bool askIfExists=false, bool createBackup=true,
00046 bool withDialogs=true) KDE_EXPORT;
00048 KDE_EXPORT bool kByteArrayToFile(const QByteArray& buffer, const QString &fileName,
00049 bool askIfExists=false, bool createBackup=true,
00050 bool withDialogs=true) KDE_EXPORT;
00051
00052
00072 QString checkAndCorrectPermissionsIfPossible( const QString &toCheck,
00073 const bool recursive, const bool wantItReadable,
00074 const bool wantItWritable );
00075
00100 bool checkAndCorrectPermissionsIfPossibleWithErrorHandling( QWidget *parent,
00101 const QString &toCheck, const bool recursive, const bool wantItReadable,
00102 const bool wantItWritable );
00103 }
00104
00105 #endif
|