QS60MainApplication Class

The QS60MainApplication class provides support for migration from S60. More...

Header: #include <QS60MainApplication>
Since: Qt 4.6

Public Functions

virtual ~QS60MainApplication()
virtual TUid AppDllUid() const
virtual TFileName ResourceFileName() const

Protected Functions

virtual CApaDocument * CreateDocumentL()

Detailed Description

The QS60MainApplication class provides support for migration from S60.

Warning: This class is provided only to get access to S60 specific functionality in the application framework classes. It is not portable. We strongly recommend against using it in new applications.

The QS60MainApplication provides a helper class for use in migrating from existing S60 based applications to Qt based applications. It is used in the exact same way as the CEikApplication class from Symbian, but internally provides extensions used by Qt.

When modifying old S60 applications that rely on implementing functions in CEikApplication, the class should be modified to inherit from this class instead of CEikApplication. Then the application can choose to override only certain functions. To make Qt use the custom application objects, pass a factory function to QApplication::QApplication(QApplication::QS60MainApplicationFactory, int &, char **).

For more information on CEikApplication, please see the S60 documentation.

Unlike other Qt classes, QS60MainApplication behaves like an S60 class, and can throw Symbian leaves.

See also QS60MainDocument, QS60MainAppUi, and QApplication::QS60MainApplicationFactory.

Member Function Documentation


Contructs an instance of QS60MainApplication.

[virtual] QS60MainApplication::~QS60MainApplication()

Destroys the QS60MainApplication.

[virtual] TUid QS60MainApplication::AppDllUid() const

Returns the UID of the application.

[virtual protected] CApaDocument * QS60MainApplication::CreateDocumentL()

Creates an instance of QS60MainDocument.

See also QS60MainDocument.

[virtual] TFileName QS60MainApplication::ResourceFileName() const

Returns the resource file name.

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.