The QS60MainApplication class provides support for migration from S60. 更多...
| 头: | #include <QS60MainApplication> |
| Since: | Qt 4.6 |
| 继承: |
| QS60MainApplication () | |
| virtual | ~QS60MainApplication () |
| virtual TUid | AppDllUid () const |
| virtual TFileName | ResourceFileName () const |
| virtual CApaDocument * | CreateDocumentL () |
The QS60MainApplication class provides support for migration from S60.
警告: 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.
另请参阅 QS60MainDocument , QS60MainAppUi ,和 QApplication::QS60MainApplicationFactory .
Contructs an instance of QS60MainApplication .
[虚拟]
QS60MainApplication::
~QS60MainApplication
()
销毁 QS60MainApplication .
[虚拟]
TUid
QS60MainApplication::
AppDllUid
() const
Returns the UID of the application.
[virtual protected]
CApaDocument
* QS60MainApplication::
CreateDocumentL
()
Creates an instance of QS60MainDocument .
另请参阅 QS60MainDocument .
[虚拟]
TFileName
QS60MainApplication::
ResourceFileName
() const
Returns the resource file name.