src/gui/s60framework/qs60mainapplication.cpp
changeset 33 3e2da88830cd
parent 19 fcece45ef507
child 37 758a864f9613
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
    69   functionality in the application framework classes. It is not
    69   functionality in the application framework classes. It is not
    70   portable. We strongly recommend against using it in new applications.
    70   portable. We strongly recommend against using it in new applications.
    71 
    71 
    72   The QS60MainApplication provides a helper class for use in migrating
    72   The QS60MainApplication provides a helper class for use in migrating
    73   from existing S60 based applications to Qt based applications. It is
    73   from existing S60 based applications to Qt based applications. It is
    74   used in the exact same way as the \c CAknApplication class from
    74   used in the exact same way as the \c CEikApplication class from
    75   Symbian, but internally provides extensions used by Qt.
    75   Symbian, but internally provides extensions used by Qt.
    76 
    76 
    77   When modifying old S60 applications that rely on implementing
    77   When modifying old S60 applications that rely on implementing
    78   functions in \c CAknApplication, the class should be modified to
    78   functions in \c CEikApplication, the class should be modified to
    79   inherit from this class instead of \c CAknApplication. Then the
    79   inherit from this class instead of \c CEikApplication. Then the
    80   application can choose to override only certain functions. To make
    80   application can choose to override only certain functions. To make
    81   Qt use the custom application objects, pass a factory function to
    81   Qt use the custom application objects, pass a factory function to
    82   \c{QApplication::QApplication(QApplication::QS60MainApplicationFactory, int &, char **)}.
    82   \c{QApplication::QApplication(QApplication::QS60MainApplicationFactory, int &, char **)}.
    83 
    83 
    84   For more information on \c CAknApplication, please see the S60 documentation.
    84   For more information on \c CEikApplication, please see the S60 documentation.
    85 
    85 
    86   Unlike other Qt classes, QS60MainApplication behaves like an S60 class, and can throw Symbian
    86   Unlike other Qt classes, QS60MainApplication behaves like an S60 class, and can throw Symbian
    87   leaves.
    87   leaves.
    88 
    88 
    89   \sa QS60MainDocument, QS60MainAppUi, QApplication::QS60MainApplicationFactory
    89   \sa QS60MainDocument, QS60MainAppUi, QApplication::QS60MainApplicationFactory
   134     if (err == KErrNone)
   134     if (err == KErrNone)
   135         return finder.File();
   135         return finder.File();
   136     return KNullDesC();
   136     return KNullDesC();
   137 }
   137 }
   138 
   138 
       
   139 void QS60MainApplication::PreDocConstructL()
       
   140 {
       
   141     QS60MainApplicationBase::PreDocConstructL();
       
   142 }
       
   143 
       
   144 CDictionaryStore *QS60MainApplication::OpenIniFileLC(RFs &aFs) const
       
   145 {
       
   146     return QS60MainApplicationBase::OpenIniFileLC(aFs);
       
   147 }
       
   148 
       
   149 void QS60MainApplication::NewAppServerL(CApaAppServer *&aAppServer)
       
   150 {
       
   151     QS60MainApplicationBase::NewAppServerL(aAppServer);
       
   152 }
       
   153 
   139 QT_END_NAMESPACE
   154 QT_END_NAMESPACE