| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
scm.dev.nokia.troll.no:qt/qt-file-engines-refactor into master-integration
* 'earth/file-engine-refactor' of scm.dev.nokia.troll.no:qt/qt-file-engines-refactor: (218 commits)
Fix compile error in tst_qfileinfo on Mac/Linux
Fix tst_QFileInfo owner() & group() failure on Windows.
Fix tst_QFileInfo::canonicalFilePath failure on Windows
Fix QDir::relativeFilePath
Fix spelling in comments
Add missing license header to test case
Define _WIN32_WINNT before any includes
New attempt at fixing compilation failure
Removing unused duplicate definitions
No symbolic links in Windows CE
Set minimum target Windows version to 2000
More missing includes
Add missing include
Fix compile error
Update def files
Fix tst_QFile::caseSensitivity test on Mac
Fix typo in QFile test
Add test generated files to .gitignore
Fix compile error for qdir autotest on symbian3
QtDeclarative: make autotests compile on symbian
...
|
| |\
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
scm.dev.nokia.troll.no:qt/qt-file-engines-refactor into master-integration
* 'earth/file-engine-refactor' of scm.dev.nokia.troll.no:qt/qt-file-engines-refactor: (218 commits)
Fix compile error in tst_qfileinfo on Mac/Linux
Fix tst_QFileInfo owner() & group() failure on Windows.
Fix tst_QFileInfo::canonicalFilePath failure on Windows
Fix QDir::relativeFilePath
Fix spelling in comments
Add missing license header to test case
Define _WIN32_WINNT before any includes
New attempt at fixing compilation failure
Removing unused duplicate definitions
No symbolic links in Windows CE
Set minimum target Windows version to 2000
More missing includes
Add missing include
Fix compile error
Update def files
Fix tst_QFile::caseSensitivity test on Mac
Fix typo in QFile test
Add test generated files to .gitignore
Fix compile error for qdir autotest on symbian3
QtDeclarative: make autotests compile on symbian
...
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We used to call cleanPath on the result of absolutePath, before
returning it to the user, but stopped doing that. relativeFilePath
actually depended on that and broke.
Fixed now.
Reviewed-by: Prasanth Ullattil
|
| | | |
|
| | |
| | |
| | |
| | | |
... to ensure it's properly defined before <windows.h> is ever included.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Including windows.h and defining _WIN32_WINNT didn't cut it. Instead,
fall back to explicitly #defining IO_REPARSE_TAG_SYMLINK in metadata
header, since it's all that's needed there. In windows-specific iterator
implementation ensure _WIN32_WINNT >= 0x0500.
|
| | |
| | |
| | |
| | |
| | | |
These functions have been forked in qfilesystemengine_win.cpp and are no
longer used in this file. Cleaning up.
|
| | | |
|
| | |
| | |
| | |
| | | |
Required for FindFirstFileEx.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Missing QT_BEGIN_NAMESPACE caused error when the namespace macros
are defined.
Reviewed-by: mread
|
| | |
| | |
| | |
| | |
| | |
| | | |
refreeze on top of master def files (we have added some exports to QtCore)
Reviewed-by: Trust Me
|
| | |\
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
master's version of conflicting def files picked.
Conflicts:
src/s60installs/bwins/QtCoreu.def
src/s60installs/bwins/QtGuiu.def
src/s60installs/bwins/QtNetworku.def
src/s60installs/eabi/QtCoreu.def
src/s60installs/eabi/QtGuiu.def
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Move tests for private classes inside private_tests scope
Add missing libraries
Add QT_NO_CONCURRENT ifdef around a test case
Define Q_DECLARATIVE_PRIVATE_EXPORT as Q_AUTOTEST_EXPORT,
so the classes are exported for autotests, previously
they were exported on every OS except symbian.
(this doesn't affect exports for production builds)
Reviewed-by: Miikka Heikkinen
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Due to a bug in the symbian file server, files in /resource can't be
opened for unbuffered read, only for default mode read. (it doesn't mask
the cache control flags when doing the security check)
So read will always be done in default mode.
Symptom of this was that QML plugin loading failed as the plugin description
in /resource could not be read.
Buffered or unbuffered writes (i.e. whether the cache should be write
through or write behind) are controlled by the QIODevice::Unbuffered
flag, therefore it needs to be passed through to the file engine.
An optimisation for unix and windows to force unbuffered mode in the file
engine is inappropriate (as that is referring to buffering in the standard
library, which is bypassed entirely by using the low level RFile to open
files on symbian)
Reviewed-by: joao
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This set of def files is good to merge back, if the merge is done soon.
Reviewed-by: Trust Me
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Symbian doesn't have file owners, the resolveUserName / resolveGroupName
functions have been correctly moved to unix only scope which caused a
compile error.
This change makes the QFSFileEngine::owner[Id] return -2 / QString()
for symbian directly.
Reviewed-by: Markus Goetz
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
As much as I'd like to have the definition of "relative" be independent
of custom engines, the current architecture prevents us from doing that
without introducing knowledge about them in QFileSystemEntry. Fixing
this specifically for resource files would be possible, but let's not
break custom engines... just yet.
Reviewed-by: Prasanth Ullattil
|
| | | |
| | | |
| | | |
| | | | |
Reviewed-by: Joao
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The file-engine-refactor moved a lot of code around. So simple merge
conflict resolution didn't cut it to finish the merge.
Lighthouse on OS X adds Q_WS_QPA, where we were already using QWS. Also
introduced QT_NO_CORESERVICES.
|
| | |\ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Conflicts:
demos/declarative/minehunt/minehunt.pro
src/corelib/io/io.pri
src/corelib/io/qfsfileengine.cpp
src/corelib/io/qfsfileengine_unix.cpp
src/corelib/io/qfsfileengine_win.cpp
src/s60installs/bwins/QtCoreu.def
src/s60installs/bwins/QtDeclarativeu.def
src/s60installs/bwins/QtGuiu.def
src/s60installs/eabi/QtCoreu.def
src/s60installs/eabi/QtDeclarativeu.def
src/s60installs/eabi/QtGuiu.def
tests/auto/qapplication/test/test.pro
tests/auto/qaudioinput/qaudioinput.pro
tests/auto/qaudiooutput/qaudiooutput.pro
tests/auto/qchar/qchar.pro
tests/auto/qdiriterator/qdiriterator.pro
tests/auto/qsound/qsound.pro
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Symbian is not serviced by this code, anyway. So it's just dead code.
Reviewed-by: Shane Kearns
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
resolveUser/GroupName(id) only make sense on Unix platforms, there's no
point in replicating them elsewhere.
bundleName is a Mac-only feature, so we can otherwise merge the default
implementation for other platforms.
Reviewed-by: Shane Kearns
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Missing return statement
Reviewed-by: joao
|
| | | | |
| | | | |
| | | | |
| | | | | |
Reviewed-By: joao
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
EACCES was not defined at this point, but it is also not needed, since
we know exactly why unmap is failing.
Reviewed-by: Shane Kearns
|
| | | | |
| | | | |
| | | | |
| | | | | |
Reviewed-by: Shane Kearns
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Memory mapping of RFile handles is not supported in current symbian OS
versions. However the "open C" libraries provide an emulated mmap()
implementation which was used by QFile::map in Qt 4.6 release.
To avoid breaking applications which rely on this function, QFile::map
will now open the file with open C as well in order to use that handle
to call mmap().
When symbian implements a file mapping API, we can switch the implementation
to use that for RFile handles.
Reviewed-By: joao
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Since windows doesn't have the concept of user and group IDs, the name
resolution has to be done differently. If the qt_ntfs_permission_lookup
flag is set (default = 0), the user information is retrieved through the
NTFS object security information.
Reviewed-by: Joao
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Symbian now follows the same convention as windows, where "c:" means the
working directory on the C: drive. As a result, the path "c:/" needs to be
passed to QFileInfoGatherer when getting info for the root directory.
This code already existed but only enabled for windows - now enabled for
symbian as well.
Reviewed-By: Markus Goetz
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The m_filePath should always have / as the separator, while m_nativeFilePath
should always have the native separator.
Almost every place the constructor is used, the path could be one passed
into an API from code outside our control.
So it's easier to do the path conversion in the constructor than to have to
remember to call fromNativeSeparators in every place a QFileSystemEntry is
constructed (especially since unix tests won't reveal any error)
Reviewed-By: joao
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
On Symbian, the Seek() function clamps to the end of file position if a
position beyond the end of file is given. Also the write functions which
take a position silently append at the end of file position if asked to
write to a start position beyond EOF.
To avoid this behaviour, we don't use seek but rather maintain our own
cursor position. When writing, we check if the cursor is beyond EOF and if
so extend the file using SetSize() before writing.
Reviewed-By: joao
|
| | | | |
| | | | |
| | | | |
| | | | | |
Reviewed-By: joao
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Because RFs::Entry("") gets the entry for the current directory, we
need to explicitly check for empty strings and treat as a non existant file.
Reviewed-By: joao
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The pointer is lazily initialised by QWidget, but becomes invalid after
the application is destroyed.
In the QApplication autotest, QApplication is created and destroyed many times
in the same thread (while in normal use it is created at startup and destroyed
on exit)
As a result, the pointer which is stored in global data became stale and
caused a crash due to calling functions on a deleted object.
Reviewed-By: Jason Barron
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Files in /sys/bin/ on any drive can be assumed to be executable.
So the executable flag is set in the metadata for this path, even though
RFs::Entry fails due to permissions (so we don't know if the file exists or not)
Reviewed-By: joao
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
CFileMan doesn't support . and .. in relative paths.
Therefore, paths are converted to absolute first.
Also, the error was being ignored which has been fixed.
Reviewed-By: joao
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
In 4.7 and before a QDir::exists() always stats and a refresh() call would
flush metadata, restore this behavior again.
Reviewed-by: Prasanth Ullattil
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Qt 4.7 behaviour was to return false when directory already exists for mkdir
but true when directory already exists for mkpath.
This change makes symbian do that in master, even though it's inconsistent.
Reviewed-By: Thomas Zander
|
| | | | |
| | | | |
| | | | |
| | | | | |
Reviewed-By: Thomas Zander
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Testing done:
win32-msvc2008 and Mac OS X - qfile, qfileinfo, qdir, qdiriterator,
qtemporaryfile autotests
symbian-sbsv2 - qtcore, qtgui, qtxml autotests
win32-g++ - compilation test for qmake
Reviewed-By: Thomas Zander
|
| | | | |
| | | | |
| | | | |
| | | | | |
Reviewed-By: Trust Me
|
| | |\ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Conflicts:
src/s60installs/bwins/QtGuiu.def
src/s60installs/eabi/QtGuiu.def
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This class is for holding errors returned from system calls, which can
be later converted to a string when a string is needed.
This will eventually replace the setError(int,string) used in file
engines so that strings are only created on demand.
The scope of an error is used to distinguish error codes from the C standard
library vs error codes from native calls. On some OS (e.g.windows) these
error ranges overlap.
Reviewed-By: joao
|
| | | | | | |
|
| | |\ \ \ \ |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Qt autotests require the same error code on all platforms, and the OS
specific error to be in text format in the errorString.
Tests were failing due to QFile::error returning more detailed information
than was wanted.
Reviewed-By: Thomas Zander
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
The path created by the _gettemp function is not a native path, as it
contains the wrong slashes. So convert it back to a QString first.
Check for symbian file handle in the isReallyOpen function so that
reopening temp files works correctly.
Reviewed-By: Thomas Zander
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Reviewed-By: Thomas Zander
|