CRvObserver Class Reference
class CRvObserver : public CActive
|
Constructor & Destructor Documentation
CRvObserver(RProcess &, MRvObserverNotification &, CApaStarter *)
Member Functions Documentation
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
DoCancel()
void
|
DoCancel
|
(
|
)
|
[protected, virtual]
|
Implements cancellation of an outstanding request.
This function is called as part of the active object's
Cancel()
.
It must call the appropriate cancel function offered by the active object's asynchronous service provider. The asynchronous service provider's cancel is expected to act immediately.
DoCancel()
must not wait for event completion; this is handled by
Cancel()
.
CActive::Cancel
GetProcessHandle(RProcess &, const TThreadId &)
Calls here are only relevant in the case of StartApp.
GoodStart()
TBool
|
GoodStart
|
(
|
)
|
[private]
|
Has the process rv'd with an error? If so terminate it. Has the process been panicked with KErrNone? If so translate that error to KErrGeneral; If the process has panicked or been killed, the Exit reason should be conveyed via iStatus. Any leave here occurs in the context of RunL, therefore any such notifications are performed via
RunError()
. An error code of KErrAlreadyExists is presumed to imply that an attempt has been made to start a pre-existing server. This is translated to KErrNone which allows
CSsmStartSafe::StartAndMonitorL()
to apply monitoring to the running server.
InvokeL()
void
|
InvokeL
|
(
|
)
|
[private]
|
Leaves here occur in the context of RunL, therefore error notification is performed via
RunError()
NewL(RProcess &, MRvObserverNotification &, CApaStarter *)
NewLC(RProcess &, MRvObserverNotification &, CApaStarter *)
NotifyOrRetryL()
void
|
NotifyOrRetryL
|
(
|
)
|
[private]
|
Leaves here occur in the context of RunL, therefore error notification is performed via
RunError()
RunError(TInt)
TInt
|
RunError
|
(
|
TInt
|
aError
|
)
|
[protected, virtual]
|
RunL()
void
|
RunL
|
(
|
)
|
[protected, virtual]
|
We are either starting for the first time, or an app or process has rendezvouzed. If the latter, check if it has done so without error and behave as appropriate.
RvAndObserveL(CSsmStartupProperties *)
Member Data Documentation
CApaStarter * iApaStarter
TInt
iHandleNumber
TInt
|
iHandleNumber
|
[private]
|
TRvObserverState
iObserverState
MRvObserverNotification & iStarter
CSsmStartupProperties * iStartupProperties
CTimeoutWaiter * iTimeoutWaiter
CTimeoutWaiter *
|
iTimeoutWaiter
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.