author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Fri, 19 Feb 2010 23:40:16 +0200 | |
branch | RCL_3 |
changeset 4 | 3b1da2848fc7 |
parent 0 | 1918ee327afb |
permissions | -rw-r--r-- |
0 | 1 |
/**************************************************************************** |
2 |
** |
|
4
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
3 |
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
0 | 4 |
** All rights reserved. |
5 |
** Contact: Nokia Corporation (qt-info@nokia.com) |
|
6 |
** |
|
7 |
** This file is part of the QtCore module of the Qt Toolkit. |
|
8 |
** |
|
9 |
** $QT_BEGIN_LICENSE:LGPL$ |
|
10 |
** No Commercial Usage |
|
11 |
** This file contains pre-release code and may not be distributed. |
|
12 |
** You may use this file in accordance with the terms and conditions |
|
13 |
** contained in the Technology Preview License Agreement accompanying |
|
14 |
** this package. |
|
15 |
** |
|
16 |
** GNU Lesser General Public License Usage |
|
17 |
** Alternatively, this file may be used under the terms of the GNU Lesser |
|
18 |
** General Public License version 2.1 as published by the Free Software |
|
19 |
** Foundation and appearing in the file LICENSE.LGPL included in the |
|
20 |
** packaging of this file. Please review the following information to |
|
21 |
** ensure the GNU Lesser General Public License version 2.1 requirements |
|
22 |
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
|
23 |
** |
|
24 |
** In addition, as a special exception, Nokia gives you certain additional |
|
25 |
** rights. These rights are described in the Nokia Qt LGPL Exception |
|
26 |
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
|
27 |
** |
|
28 |
** If you have questions regarding the use of this file, please contact |
|
29 |
** Nokia at qt-info@nokia.com. |
|
30 |
** |
|
31 |
** |
|
32 |
** |
|
33 |
** |
|
34 |
** |
|
35 |
** |
|
36 |
** |
|
37 |
** |
|
38 |
** $QT_END_LICENSE$ |
|
39 |
** |
|
40 |
****************************************************************************/ |
|
41 |
||
42 |
#ifndef QRESOURCE_P_H |
|
43 |
#define QRESOURCE_P_H |
|
44 |
||
45 |
// |
|
46 |
// W A R N I N G |
|
47 |
// ------------- |
|
48 |
// |
|
49 |
// This file is not part of the Qt API. It exists purely as an |
|
50 |
// implementation detail. This header file may change from version to |
|
51 |
// version without notice, or even be removed. |
|
52 |
// |
|
53 |
// We mean it. |
|
54 |
// |
|
55 |
||
56 |
#include "QtCore/qabstractfileengine.h" |
|
57 |
||
58 |
QT_BEGIN_NAMESPACE |
|
59 |
||
60 |
class QResourceFileEnginePrivate; |
|
61 |
class QResourceFileEngine : public QAbstractFileEngine |
|
62 |
{ |
|
63 |
private: |
|
64 |
Q_DECLARE_PRIVATE(QResourceFileEngine) |
|
65 |
public: |
|
66 |
explicit QResourceFileEngine(const QString &path); |
|
67 |
~QResourceFileEngine(); |
|
68 |
||
69 |
virtual void setFileName(const QString &file); |
|
70 |
||
71 |
virtual bool open(QIODevice::OpenMode flags) ; |
|
72 |
virtual bool close(); |
|
73 |
virtual bool flush(); |
|
74 |
virtual qint64 size() const; |
|
75 |
virtual qint64 pos() const; |
|
76 |
virtual bool atEnd() const; |
|
77 |
virtual bool seek(qint64); |
|
78 |
virtual qint64 read(char *data, qint64 maxlen); |
|
79 |
virtual qint64 write(const char *data, qint64 len); |
|
80 |
||
81 |
virtual bool remove(); |
|
82 |
virtual bool copy(const QString &newName); |
|
83 |
virtual bool rename(const QString &newName); |
|
84 |
virtual bool link(const QString &newName); |
|
85 |
||
86 |
virtual bool isSequential() const; |
|
87 |
||
88 |
virtual bool isRelativePath() const; |
|
89 |
||
90 |
virtual bool mkdir(const QString &dirName, bool createParentDirectories) const; |
|
91 |
virtual bool rmdir(const QString &dirName, bool recurseParentDirectories) const; |
|
92 |
||
93 |
virtual bool setSize(qint64 size); |
|
94 |
||
95 |
virtual QStringList entryList(QDir::Filters filters, const QStringList &filterNames) const; |
|
96 |
||
97 |
virtual bool caseSensitive() const; |
|
98 |
||
99 |
virtual FileFlags fileFlags(FileFlags type) const; |
|
100 |
||
101 |
virtual bool setPermissions(uint perms); |
|
102 |
||
103 |
virtual QString fileName(QAbstractFileEngine::FileName file) const; |
|
104 |
||
105 |
virtual uint ownerId(FileOwner) const; |
|
106 |
virtual QString owner(FileOwner) const; |
|
107 |
||
108 |
virtual QDateTime fileTime(FileTime time) const; |
|
109 |
||
110 |
virtual Iterator *beginEntryList(QDir::Filters filters, const QStringList &filterNames); |
|
111 |
virtual Iterator *endEntryList(); |
|
112 |
||
113 |
bool extension(Extension extension, const ExtensionOption *option = 0, ExtensionReturn *output = 0); |
|
114 |
bool supportsExtension(Extension extension) const; |
|
115 |
}; |
|
116 |
||
117 |
QT_END_NAMESPACE |
|
118 |
||
119 |
#endif // QRESOURCE_P_H |