File: inc\MyAppApplication.h
File: src\MyAppApplication.cpp
Our class application inherits from CAknApplication and is
located in inc\MyAppApplication.h and
src\MyAppApplication.cpp. It overwrites two functions.
The AppDllUid() returns the UID of our application. Note
that if this UID is diferent that the one in the MMP file the application
won't work. Thrus if you change the UID you should change it also here (as
well as in the AIF and PKG files if you have such. They will be discussed
later).
The second function is CreateDocumentL. This will be called by
the framework to obtain a document class. As the prototype suggests it should
return a class that inherits from CApaDocument. Under
Series 60 the document is expected to inherit from CAknDocument.
We return a CMyAppDocument class. Note that we use the
NewL static function. As it was mentioned in the previous chapter
this function does both stages of construction and leaves if the creation fails.