-rw-r--r-- | library/filemanager.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/library/filemanager.h b/library/filemanager.h index f8d9425..61a3341 100644 --- a/library/filemanager.h +++ b/library/filemanager.h | |||
@@ -1,56 +1,58 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qtopia Environment. | 4 | ** This file is part of Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #ifndef FILEMANAGER_H | 20 | #ifndef FILEMANAGER_H |
21 | #define FILEMANAGER_H | 21 | #define FILEMANAGER_H |
22 | 22 | ||
23 | #include <qstring.h> | 23 | #include <qstring.h> |
24 | #include <qstringlist.h> | 24 | #include <qstringlist.h> |
25 | 25 | ||
26 | class AppLnk; | 26 | class AppLnk; |
27 | class DocLnk; | 27 | class DocLnk; |
28 | class FileManagerPrivate; | 28 | class FileManagerPrivate; |
29 | 29 | ||
30 | class FileManager | 30 | class FileManager |
31 | { | 31 | { |
32 | public: | 32 | public: |
33 | FileManager(); | 33 | FileManager(); |
34 | ~FileManager(); | 34 | ~FileManager(); |
35 | 35 | ||
36 | bool saveFile( const DocLnk&, const QByteArray &data ); | 36 | bool saveFile( const DocLnk&, const QByteArray &data ); |
37 | bool saveFile( const DocLnk&, const QString &text ); | 37 | bool saveFile( const DocLnk&, const QString &text ); |
38 | bool loadFile( const DocLnk&, QByteArray &data ); | 38 | bool loadFile( const DocLnk&, QByteArray &data ); |
39 | bool loadFile( const DocLnk&, QString &text ); | 39 | bool loadFile( const DocLnk&, QString &text ); |
40 | bool copyFile( const AppLnk &src, const AppLnk &dest ); | 40 | bool copyFile( const AppLnk &src, const AppLnk &dest ); |
41 | 41 | bool copyFile( const QString & src, const QString & dest ); | |
42 | // The caller must delete the return values. | 42 | bool renameFile( const QString &, const QString &); |
43 | |||
44 | // The caller must delete the return values. | ||
43 | QIODevice* openFile( const DocLnk& ); | 45 | QIODevice* openFile( const DocLnk& ); |
44 | QIODevice* saveFile( const DocLnk& ); | 46 | QIODevice* saveFile( const DocLnk& ); |
45 | 47 | ||
46 | bool exists( const DocLnk& ); | 48 | bool exists( const DocLnk& ); |
47 | 49 | ||
48 | protected: | 50 | protected: |
49 | bool ensurePathExists( const QString &fn ); | 51 | bool ensurePathExists( const QString &fn ); |
50 | 52 | ||
51 | private: | 53 | private: |
52 | FileManagerPrivate *d; | 54 | FileManagerPrivate *d; |
53 | }; | 55 | }; |
54 | 56 | ||
55 | 57 | ||
56 | #endif | 58 | #endif |