|
||
Minimal
: A minimal UI application
Found in examples\AppFramework\Apparc\Minimal\
.
This example demonstrates a minimal UI application without the use of resource files. It implements the standard classes required by the UI framework of any application; application, document, application UI and view, all of which are implemented minimally.
The application class implements the following required functions:
CApaApplication::AppDllUid()
Because the application does not use a resource file, it also needs to
override CEikApplication::ResourceFileName()
, to return an
empty resource filename.
The document class must implement
CEikDocument::CreateAppUiL()
.
The app UI class implements the following required functions:
A ConstructL()
. This must call
CEikAppUi::BaseConstructL()
. The
ENoAppResourceFile
flag is used to indicate that it has no
resource file, and ENoScreenFurniture
indicates that it does not
require any resource independent 'screen furniture', for example status bars.
ConstructL()
is also used to create any views owned by the app UI.
A destructor, to delete the view.
A HandleCommandL()
This app UI only handles a single
command, to exit the application.
Views are controls, derived from CCoeControl
.
Their main purpose is to display the application's data and to handle input.
This view overrides CCoeControl::Draw()
, to display a
message in the centre of the screen rectangle. It does not handle any key or
pen input.
CEikApplication
CEikDocument
CEikAppUi
CCoeControl
Control base class from which all other controls are derived.The Symbian OS build process describes how to build an application.
The Minimal
example builds an executable called
Minimal.exe
in the standard location
(\epoc32\release\winscw\
<build_variant> for
CodeWarrior). Either launch the executable itself, or launch the emulator and
then select the Minimal
application from the Emulator's extras
bar.