Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/s60framework/qs60mainapplication.cpp

    r769 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    4848#include <bautils.h>
    4949#include <coemain.h>
     50#ifndef Q_WS_S60
     51# include <eikserverapp.h>
     52#endif
    5053
    5154QT_BEGIN_NAMESPACE
     
    5962}
    6063
    61 _LIT(KQtWrapperResourceFile, "\\resource\\apps\\s60main" QT_LIBINFIX_UNICODE L".rsc");
    6264
    6365/*!
     
    7274  The QS60MainApplication provides a helper class for use in migrating
    7375  from existing S60 based applications to Qt based applications. It is
    74   used in the exact same way as the \c CAknApplication class from
     76  used in the exact same way as the \c CEikApplication class from
    7577  Symbian, but internally provides extensions used by Qt.
    7678
    7779  When modifying old S60 applications that rely on implementing
    78   functions in \c CAknApplication, the class should be modified to
    79   inherit from this class instead of \c CAknApplication. Then the
     80  functions in \c CEikApplication, the class should be modified to
     81  inherit from this class instead of \c CEikApplication. Then the
    8082  application can choose to override only certain functions. To make
    8183  Qt use the custom application objects, pass a factory function to
    8284  \c{QApplication::QApplication(QApplication::QS60MainApplicationFactory, int &, char **)}.
    8385
    84   For more information on \c CAknApplication, please see the S60 documentation.
     86  For more information on \c CEikApplication, please see the S60 documentation.
    8587
    8688  Unlike other Qt classes, QS60MainApplication behaves like an S60 class, and can throw Symbian
     
    130132TFileName QS60MainApplication::ResourceFileName() const
    131133{
    132     TFindFile finder(iCoeEnv->FsSession());
    133     TInt err = finder.FindByDir(KQtWrapperResourceFile, KNullDesC);
    134     if (err == KErrNone)
    135         return finder.File();
    136134    return KNullDesC();
    137135}
    138136
     137/*!
     138  \internal
     139*/
     140void QS60MainApplication::PreDocConstructL()
     141{
     142    QS60MainApplicationBase::PreDocConstructL();
     143}
     144
     145/*!
     146  \internal
     147*/
     148CDictionaryStore *QS60MainApplication::OpenIniFileLC(RFs &aFs) const
     149{
     150    return QS60MainApplicationBase::OpenIniFileLC(aFs);
     151}
     152
     153/*!
     154  \internal
     155*/
     156void 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
    139165QT_END_NAMESPACE
Note: See TracChangeset for help on using the changeset viewer.