Location:
eikproc.h
Link against: eikcore.lib
class CEikProcess : public CApaProcess;
The controlling process for an application.
An instance of this class is created by the Uikon environment. This instance calls CApaProcess::AddNewDocumentL()
to load the application DLL and construct the new application which runs in this environment.
It also provides services related to an application's main (non-embedded) document, including:
saving the main document to a direct file store
providing the name of the most recently accessed file
getting the name of the application DLL associated with a document.
CBase
- Base class for all classes to be instantiated on the heap
CApaProcess
- Maintains a list of documents and all of the potentially shared resources used by documents
CEikProcess
- The controlling process for an application
Defined in CEikProcess
:
AppFromDocL()
, CommandTailEnd()
, ELastCreatedFile
, ELastOpenFile
, LastUsedFileL()
, MainDocFolder()
, MainStore()
, SaveToDirectFileStoreL()
, SaveToDirectFileStoreL()
, SetLastUsedFileL()
, SetMainStore()
, TLastUsedFile
, ~CEikProcess()
Inherited from CApaProcess
:
AddNewDocumentL()
,
CApaProcess_Reserved1()
,
CApaProcess_Reserved2()
,
ConstructL()
,
DestroyDocument()
,
FsSession()
,
MainDocFileName()
,
MainDocument()
,
NewL()
,
OpenNewDocumentL()
,
ReadAppIdentifierL()
,
ReadRootStreamLC()
,
ResetL()
,
SetMainDocFileName()
,
SetMainDocFileNameL()
,
SetMainDocument()
,
WriteAppIdentifierL()
,
WriteRootStreamL()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
IMPORT_C TPtrC CommandTailEnd() const;
Returns the command tail end - i.e. command line parameters
|
IMPORT_C TFileName MainDocFolder() const;
Returns the drive and path of the main document.
|
IMPORT_C void SetLastUsedFileL(TLastUsedFile aType, const TDesC &aFileName) const;
Sets the name of either the last opened or the last created file.
The information is written to the .ini file of the application associated with the main document. It attempts to create an .ini file if one does not exist.
|
IMPORT_C TFileName LastUsedFileL(TLastUsedFile aType) const;
Gets the name of either the last opened or last created file.
The information is read from the .ini file of the application associated with the main document. The function cannot leave. If an error occurs, the function returns an empty filename.
|
|
IMPORT_C void SetMainStore(CFileStore *aMainStore);
Sets the file store that stores the main document.
A main store must have been set before you can call SaveToDirectFileStoreL()
.
|
IMPORT_C CFileStore *MainStore() const;
Gets a pointer to the main store. This is the file store that holds the main document.
|
IMPORT_C void AppFromDocL(TDes &aLibraryName, const TDesC &aDocumentName) const;
Gets the name of the application DLL associated with the specified document.
|
|
IMPORT_C void SaveToDirectFileStoreL(CEikDocument *aDoc, const TFileName *aNewFileName=0);
Saves the main document optionally to a new file.
If aNewFileName is specified, a new file with that name is created, and the main document is saved to it. This file is opened for writing.
If aNewFileName is NULL, the main document is saved and is opened for writing.
|
|
IMPORT_C void SaveToDirectFileStoreL(CEikDocument *aDoc, const TFileName *aNewFileName, TBool aReopen, TFileName *aTempFile=0);
Saves the main document optionally to a new file, and optionally opens it.
|
|
TLastUsedFile
Used as a parameter by CEikProcess::SetLastUsedFileL()
and LastUsedFileL()
to indicate whether the function relates to the last opened or last created file.
|