class CApaProcess : public CBase |
Maintains a list of documents and all of the potentially shared resources used by documents.
This includes the application DLLs. The class also supplies utility functions that provide the basic structure for persisted document files.
The class deals with the loading of application DLLs and manages the creation and destruction of application (CApaApplication) objects and document (CApaDocument) objects.
The class is derived from by the UI framework and further derivation by the UI application is not necessary unless it needs to add extra utility functions for the use of applications.
Protected Member Functions | |
---|---|
CApaProcess() | |
CApaProcess(const RFs &) | |
IMPORT_C void | CApaProcess_Reserved1() |
IMPORT_C void | CApaProcess_Reserved2() |
IMPORT_C void | ConstructL() |
IMPORT_C void | ConstructL(TProcessId) |
Private Member Functions | |
---|---|
RApaApplication * | AddAppL(TApaApplicationFactory) |
CApaDocument * | CreateDocL(CApaApplication *) |
void | DeleteAllDocs() |
void | DoReadRootStreamL(CStreamDictionary &, const CFileStore &) |
RApaApplication * | FindAppInListL(const TDesC &, TUid) |
TInt | IdleRemoveApplications(TAny *) |
void | MarkApplicationForAsyncRemoval(const CApaApplication *) |
void | RemoveApp(RApaApplication *) |
void | RemoveMarkedApplications() |
Private Attributes | |
---|---|
CArrayPtrFlat< RApaApplication > * | iAppList |
CIdle * | iAsyncAppRemover |
TInt | iCApaProcess_Reserved1 |
CArrayPtrFlat< CApaDocument > * | iDocList |
RFs | iFsSession |
CApaDocument * | iMainDoc |
HBufC * | iMainDocFileName |
CApaParentProcessMonitor * | iMonitor |
RApaApplication * | AddAppL | ( | TApaApplicationFactory | aApplicationFactory | ) | [private] |
TApaApplicationFactory aApplicationFactory |
IMPORT_C CApaDocument * | AddNewDocumentL | ( | TApaApplicationFactory | aApplicationFactory | ) |
TApaApplicationFactory aApplicationFactory |
IMPORT_C void | ConstructL | ( | TProcessId | aParentProcessId | ) | [protected] |
TProcessId aParentProcessId |
CApaDocument * | CreateDocL | ( | CApaApplication * | aApp | ) | [private] |
CApaApplication * aApp |
IMPORT_C void | DestroyDocument | ( | CApaDocument * | aDoc | ) |
CApaDocument * aDoc |
void | DoReadRootStreamL | ( | CStreamDictionary & | aStreamDictionary, |
const CFileStore & | aStore | |||
) | [private, static] |
CStreamDictionary & aStreamDictionary | |
const CFileStore & aStore |
RApaApplication * | FindAppInListL | ( | const TDesC & | aAppFileName, |
TUid | aUid | |||
) | const [private] |
RFs & | FsSession | ( | ) | const [inline] |
Returns a handle to the file server session used by this application process. The file server session.
TInt | IdleRemoveApplications | ( | TAny * | aApaProcess | ) | [private, static] |
TAny * aApaProcess |
CApaDocument * | MainDocument | ( | ) | const [inline] |
Returns a pointer to the main document. A pointer to the main document.
void | MarkApplicationForAsyncRemoval | ( | const CApaApplication * | aApp | ) | [private] |
const CApaApplication * aApp |
IMPORT_C CApaDocument * | OpenNewDocumentL | ( | CFileStore *& | aStore, |
CStreamDictionary *& | aStreamDic, | |||
const TDesC & | aDocFullFileName, | |||
TUint | aFileMode | |||
) |
CFileStore *& aStore | |
CStreamDictionary *& aStreamDic | |
const TDesC & aDocFullFileName | |
TUint aFileMode |
IMPORT_C TApaAppIdentifier | ReadAppIdentifierL | ( | const CStreamStore & | aStore, |
const CStreamDictionary & | aStreamDic | |||
) | [static] |
const CStreamStore & aStore | |
const CStreamDictionary & aStreamDic |
IMPORT_C CStreamDictionary * | ReadRootStreamLC | ( | RFs & | aFs, |
CFileStore *& | aStore, | |||
const TDesC & | aDocFullFileName, | |||
TUint | aFileMode | |||
) | [static] |
RFs & aFs | |
CFileStore *& aStore | |
const TDesC & aDocFullFileName | |
TUint aFileMode |
IMPORT_C CStreamDictionary * | ReadRootStreamLC | ( | CFileStore *& | aStore, |
const RFile & | aFile | |||
) | [static] |
CFileStore *& aStore | |
const RFile & aFile |
void | RemoveApp | ( | RApaApplication * | aApp | ) | [private] |
RApaApplication * aApp |
IMPORT_C void | SetMainDocFileName | ( | const TDesC & | aMainDocFileName | ) |
const TDesC & aMainDocFileName |
IMPORT_C void | SetMainDocFileNameL | ( | const TDesC & | aMainDocFileName | ) |
const TDesC & aMainDocFileName |
IMPORT_C void | SetMainDocument | ( | CApaDocument * | aDocument | ) |
CApaDocument * aDocument |
IMPORT_C void | WriteAppIdentifierL | ( | CStreamStore & | aStore, |
CStreamDictionary & | aStreamDic, | |||
const TApaAppIdentifier & | aAppId | |||
) | [static] |
CStreamStore & aStore | |
CStreamDictionary & aStreamDic | |
const TApaAppIdentifier & aAppId |
IMPORT_C void | WriteRootStreamL | ( | CPersistentStore & | aStore, |
CStreamDictionary & | aStreamDic, | |||
const CApaApplication & | aApp | |||
) | [static] |
CPersistentStore & aStore | |
CStreamDictionary & aStreamDic | |
const CApaApplication & aApp |
IMPORT_C void | WriteRootStreamL | ( | CPersistentStore & | aStore, |
CStreamDictionary & | aStreamDic, | |||
const TApaAppIdentifier & | aAppId | |||
) | [static] |
CPersistentStore & aStore | |
CStreamDictionary & aStreamDic | |
const TApaAppIdentifier & aAppId |