Changeset 846 for trunk/src/gui/s60framework/qs60mainapplication.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/s60framework/qs60mainapplication.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 48 48 #include <bautils.h> 49 49 #include <coemain.h> 50 #ifndef Q_WS_S60 51 # include <eikserverapp.h> 52 #endif 50 53 51 54 QT_BEGIN_NAMESPACE … … 59 62 } 60 63 61 _LIT(KQtWrapperResourceFile, "\\resource\\apps\\s60main" QT_LIBINFIX_UNICODE L".rsc");62 64 63 65 /*! … … 72 74 The QS60MainApplication provides a helper class for use in migrating 73 75 from existing S60 based applications to Qt based applications. It is 74 used in the exact same way as the \c C AknApplication class from76 used in the exact same way as the \c CEikApplication class from 75 77 Symbian, but internally provides extensions used by Qt. 76 78 77 79 When modifying old S60 applications that rely on implementing 78 functions in \c C AknApplication, the class should be modified to79 inherit from this class instead of \c C AknApplication. Then the80 functions in \c CEikApplication, the class should be modified to 81 inherit from this class instead of \c CEikApplication. Then the 80 82 application can choose to override only certain functions. To make 81 83 Qt use the custom application objects, pass a factory function to 82 84 \c{QApplication::QApplication(QApplication::QS60MainApplicationFactory, int &, char **)}. 83 85 84 For more information on \c C AknApplication, please see the S60 documentation.86 For more information on \c CEikApplication, please see the S60 documentation. 85 87 86 88 Unlike other Qt classes, QS60MainApplication behaves like an S60 class, and can throw Symbian … … 130 132 TFileName QS60MainApplication::ResourceFileName() const 131 133 { 132 TFindFile finder(iCoeEnv->FsSession());133 TInt err = finder.FindByDir(KQtWrapperResourceFile, KNullDesC);134 if (err == KErrNone)135 return finder.File();136 134 return KNullDesC(); 137 135 } 138 136 137 /*! 138 \internal 139 */ 140 void QS60MainApplication::PreDocConstructL() 141 { 142 QS60MainApplicationBase::PreDocConstructL(); 143 } 144 145 /*! 146 \internal 147 */ 148 CDictionaryStore *QS60MainApplication::OpenIniFileLC(RFs &aFs) const 149 { 150 return QS60MainApplicationBase::OpenIniFileLC(aFs); 151 } 152 153 /*! 154 \internal 155 */ 156 void QS60MainApplication::NewAppServerL(CApaAppServer *&aAppServer) 157 { 158 #ifdef Q_WS_S60 159 QS60MainApplicationBase::NewAppServerL(aAppServer); 160 #else 161 aAppServer = new(ELeave) CEikAppServer; 162 #endif 163 } 164 139 165 QT_END_NAMESPACE
Note:
See TracChangeset
for help on using the changeset viewer.