File: inc\MyAppDocument.h
File: src\MyAppDocument.cpp
As we've seen the application class creates a document class which is used
by the framework as the next step to start the application. The New Project
Wizard created out CMyAppDocument class in
inc\MyAppDocument.h and src\MyAppDocument.cpp.
There are two noteworthy things in this class. The first is the implementation
of NewL and NewLC functions. The implementation in
other classes can be nearly allways done with Copy&Paste and changing the
class name and paramters list. Note that during the ConstructL
call the object is on the Cleanup Stack so even if this class leaves, the
object will be deleted. Also note that we have hidden the constructor and
ConstructL from the user. That is sometimes done by Symbian OS
classes to avoid using objects with after only the first phase of construction
by a distracted programmer.
The other noteworthy thing is the CreateAppUiL method. It
returns an AppUi class which will bring us another step closer to device
screen