Location:
eikapp.h
Link against:
eikcore.lib
CEikApplication
Supported from 6.0
The root 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.
Each Uikon application class is derived from CEikApplication
. Application writers must provide at least an implementation of the form of CreateDocumentL()
that has no parameters.
The application’s resource file can be changed from the default by overriding ResourceFileName()
.
|
Defined in CEikApplication
:
AllWindowsMustBeBackedUpWindows()
, AppCaption()
, BitmapStoreName()
, CEikApplication()
, Capability()
, CreateDocumentL()
, GetDefaultDocumentFileName()
, OpenAppInfoFileLC()
, OpenIniFileLC()
, PreDocConstructL()
, Process()
, ResourceFileName()
, ResourceFileOffset()
, SetAllWindowsMustBeBackedUpWindowsL()
, SetToIniFileNameL()
, ~CEikApplication()
Inherited from CApaApplication
:
AppDllUid()
,
AppFullName()
,
DllName()
,
GenerateFileName()
,
OpenAppInfoFileL()
,
OpenIniFileL()
Inherited from CBase
:
operator new()
protected: 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.
~CEikApplication();
Destructor.
Deletes any resources acquired by this CEikApplication
during its construction phases.
virtual TFileName ResourceFileName() const;
Gets the name of the resource file used by this application. By default, this file has an extension of .rsc with the same basename as the application file located in the same directory. Language variants are supported through BaflUtils::NearestLanguageFile()
.
|
CDictionaryStore* OpenIniFileLC(RFs& aFs) const;
Opens the application’s ini file if it exists. If an ini file does not exist for this application, or if it is corrupt, this function creates a new ini file and opens that. ini files are located on KIniFileDrive
(by default, c:), in the same directory as the application DLL.
|
|
protected: CApaDocument* CreateDocumentL (CApaProcess* aProcess);
Creates a new document. Called by the application DLL framework to create a new instance of the document associated with this application. The Uikon implementation of this CApaApplication
member function makes a record of the CApaProcess
argument, and returns a document created by the un-parameterised, private, form of CEikApplication::CreateDocumentL()
.
protected: void PreDocConstructL();
Prepares for document creation. 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.
This function’s leaving should be treated as if construction had failed, and the object should be destroyed by the caller.
CApaAppInfoFileReader* OpenAppInfoFileLC() const;
Reader for the default application information file. Creates a CApaAppInfoFileReader
object for reading the application information file associated with this Uikon application, and returns a pointer to it.
|
void SetToIniFileNameL(TParse& aParser) const;
Makes a parser for this application’s ini file. Sets the fields of a supplied file name parser object, allowing it to find this application’s .ini file.
|
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 const TApaAppCaption& AppCaption() const;
Gets the caption for this application. Captions are displayed in the task list.
|
virtual TFileName BitmapStoreName() const;
Gets the default bitmap store’s name. By default, this file is a .mbm with the same basename as the application file in the same directory. Language variants are supported using BaflUtils::NearestLanguageFile()
.
|
virtual void GetDefaultDocumentFileName(TFileName& aFileName) const;
Gets the default document name for this application.
|
void SetAllWindowsMustBeBackedUpWindowsL(TBool aAllWindowsMustBeBackedUpWindows);
Sets the global backup store flag.
Sets the EFlagAllWindowsMustBeBackedUp
flag in CEikApplication::CExtra
. OPL requires this extension flag to be set to ETrue
.
|
TBool AllWindowsMustBeBackedUpWindows() const;
Tests whether all windows for the application must have a backing store.
This is set with the EFlagAllWindowsMustBeBackedUp
flag in CEikApplication::CExtra
. By default, this flag is set to EFalse
.
|
CApaProcess* Process() const;
Gets the managing process.
|
void Capability(TDes8&) const;
Gets the application’s capabilities. This is an implementation of the pure virtual CApaApplication::Capability()
. Uikon application developers should not need to override this function.