From 977638104d091dd8780f4d1bee79bf014d6a2fe9 Mon Sep 17 00:00:00 2001 From: mread Date: Fri, 5 Nov 2010 13:23:38 +0000 Subject: Added a file handle to QFileOpenEvent on Symbian QFileOpenEvent needs to tell the recipient what file to open. Normally that is by filename. But on Symbian, some files can only be opened from an already-open file handle that has been passed in. For example data caged files in c:\private or z:\sys. So QFileOpenEvent needs to be able to hold a Symbian file handle so that the recipient can access any file requested of it. Coming soon... a method by which the reciever can access the file without knowing about all this messy file handle stuff going on behind the scenes. Task-number: QTBUG-15015 Reviewed-by: Shane Kearns --- src/gui/kernel/qevent.h | 4 ++++ src/gui/s60framework/qs60maindocument.cpp | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/kernel/qevent.h b/src/gui/kernel/qevent.h index 0499a6d..88a7a8a 100644 --- a/src/gui/kernel/qevent.h +++ b/src/gui/kernel/qevent.h @@ -60,6 +60,10 @@ class RFile; #endif +#ifdef Q_OS_SYMBIAN +class RFile; +#endif + QT_BEGIN_HEADER QT_BEGIN_NAMESPACE diff --git a/src/gui/s60framework/qs60maindocument.cpp b/src/gui/s60framework/qs60maindocument.cpp index 51a6ac9..d53aac1 100644 --- a/src/gui/s60framework/qs60maindocument.cpp +++ b/src/gui/s60framework/qs60maindocument.cpp @@ -127,10 +127,6 @@ void QS60MainDocument::OpenFileL(CFileStore *&aFileStore, RFile &aFile) { QCoreApplication* app = QCoreApplication::instance(); QFileOpenEvent* event = new QFileOpenEvent(aFile); - TFileName name; - aFile.FullName(name); - QString qname = qt_TDesC2QString(name); - QFileOpenEvent* event = new QFileOpenEvent(qname); } QT_END_NAMESPACE -- cgit v0.12