|
||
class CEikApplication : public CApaApplication;
The base of all Uikon applications.
CEikApplication builds on CApaApplication
, providing a basis for applications working within the framework provided by Uikon. It also contains an interface to the
resource file and the document object belonging to the application.
Each Uikon application class is derived from CEikApplication. Application writers must provide at least an implementation
of the pure virtual function CEikApplication::CreateDocumentL()
.
The application's resource file can be changed from the default by overriding CEikApplication::ResourceFileName()const
.
CBase
-
Base class for all classes to be instantiated on the heap.
CApaApplication
- Defines the basic behaviour for applications.
CEikApplication
- The base of all Uikon applications.
Defined in CEikApplication
:
AppCaption()const
Gets the caption for this application.BitmapStoreName()const
Gets the localized name of the bitmap file used by this application.CEikApplication()
Default constructor.CEikApplication_Reserved1()
CEikApplication_Reserved2()
Capability(TDes8 &)const
Gets the application's capabilities.CreateDocumentL()
CreateDocumentL(CApaProcess *)
Creates a new document.EnsureCaptionIsLocalisedL(const TDesC &)
Calling this method will ensure that the application Caption has been localized....GetDefaultDocumentFileName(TFileName &)const
Gets the default document name for this application.NewAppServerL(CApaAppServer *&)
Virtual function called by the framework when the application has been launched ...OpenIniFileLC(RFs &)const
Opens the application's .ini file, if one exists.PreDocConstructL()
Prepares for document creation.Process()const
Gets the managing process.ResourceFileName()const
Gets the localized name of the resource file used by this application.ResourceFileOffset()const
Gets the offset value defined for this application's default resource file.SetToIniFileNameL(TParse &)const
Sets a supplied file name parser to contain the path of this application's .ini ...iCoeEnv
iResourceFileOffset
~CEikApplication()
Destructor.Inherited from CApaApplication
:
AppDllUid()const
Gets the application specific UID.AppFullName()const
Returns the full name and path of the application.CApaApplication_Reserved1()
Reserved for future use CApaApplication_Reserved2()
Reserved for future use DllName()const
Returns the full name and path of the loaded application DLL.GenerateFileName(RFs &,TFileName &)
Generates a unique filename based on the file name contained within the specifie...OpenIniFileL(RFs &)const
Opens the .ini file associated with the application, constructs the dictionary s...Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...CEikDocument
The base class for all GUI applications' documents.IMPORT_C ~CEikApplication();
Destructor.
Deletes any resources acquired by this CEikApplication during its construction phases.
protected: IMPORT_C CEikApplication();
Default constructor.
The default constructor is empty, and there are no NewL() or NewLC() functions as Uikon applications are created automatically by the application DLL framework when applications are started.
inline TInt ResourceFileOffset() const;
Gets the offset value defined for this application's default resource file.
As the resource file offset can also be accessed through iResourceFileOffset, this function should not be needed by any apps.
|
inline CApaProcess* Process() const;
Gets the managing process.
|
inline const TApaAppCaption& AppCaption() const;
Gets the caption for this application.
Captions are displayed in the task list.
|
IMPORT_C virtual void GetDefaultDocumentFileName(TFileName &aDocumentName) const;
Gets the default document name for this application.
|
IMPORT_C virtual TFileName BitmapStoreName() const;
Gets the localized name of the bitmap file used by this application.
By default, this file has an extension of .mbm and uses the same name as the application file in the same directory. Language
variants are supported using BaflUtils::NearestLanguageFile(const RFs &,TFileName &)
.
|
IMPORT_C virtual CDictionaryStore* OpenIniFileLC(RFs &aFs) const;
Opens the application's .ini file, if one exists.
If a .ini file does not exist for this application, or if it is corrupt, this function creates one and opens that. .ini files are located on system drive, in the same directory as the application EXE.
|
|
IMPORT_C virtual void Capability(TDes8 &aInfo) const;
Gets the application's capabilities.
Application developers should not need to override this function.
|
IMPORT_C void SetToIniFileNameL(TParse &aParser) const;
Sets a supplied file name parser to contain the path of this application's .ini file.
|
protected: IMPORT_C virtual void PreDocConstructL();
Prepares for document creation.
This function is called by the application DLL framework to complete construction and initialise the new application object. After this function has been called, the CEikApplication can create document objects. If there is a default resource file for this app, then it is added to the control environment.
If this function leaves, this should be treated as if construction had failed, and the object should be destroyed by the caller.
protected: IMPORT_C virtual CApaDocument* CreateDocumentL(CApaProcess *aProcess);
Creates a new document.
This function is called by the application DLL framework during application startup to create a new instance of the document
associated with this application. This implementation of the function makes a record of the CApaProcess
argument, and returns a document created by the un-parameterised, private, overload.
|
|
protected: IMPORT_C virtual void NewAppServerL(CApaAppServer *&aAppServer);
Virtual function called by the framework when the application has been launched as a server application. Applications that wish to be used as server applications must override this function to return their implementation of the server.
Base class implementation of this function leaves with KErrNotSupported, to prevent non-server applications from being launched as server applications.
|
protected: IMPORT_C void EnsureCaptionIsLocalisedL(const TDesC &aLocalisableResourceFile);
Calling this method will ensure that the application Caption has been localized. This is called at the start of applications override of CEikApplication's CreateDocumentL, when application needs to started in Critical phase of Start-Up.
|
IMPORT_C virtual TFileName ResourceFileName() const;
Gets the localized name of the resource file used by this application.
By default, this file has an extension of .rsc and uses the same name as the application file located in the same directory.
Language variants are supported through BaflUtils::NearestLanguageFile(const RFs &,TFileName &)
.
|
protected: TInt iResourceFileOffset;