class MDiagTestPlugin : public MDiagPlugin |
Diagnostics test plug-in abstract interface.
Public Member Functions | |
---|---|
MDiagResultDetail * | CreateDetailL (const CDiagResultsDatabaseItem &) |
CDiagResultsDatabaseItem * | ExecutionStopL ( TStopReason ) |
void | ResumeL () |
TRunMode | RunMode () |
void | RunTestL (TDiagTestExecParam *, TBool , TBool , TAny *) |
void | SuspendL () |
TUint | TotalSteps () |
Public Member Enumerations | |
---|---|
enum | TRunMode { EInteractiveView , EInteractiveDialog , EAutomatic } |
enum | TStopReason { ESkip , ECancelAll , EWatchdog } |
Inherited Enumerations | |
---|---|
MDiagPlugin:TNameLayoutType | |
MDiagPlugin:TPluginType |
MDiagResultDetail * | CreateDetailL | ( | const CDiagResultsDatabaseItem & | aResult | ) | const [pure virtual] |
Create detailed information object from test result. Ownership is transferred to caller.
const CDiagResultsDatabaseItem & aResult |
CDiagResultsDatabaseItem * | ExecutionStopL | ( | TStopReason | aReason | ) | [pure virtual] |
Cancels testing. Cancellation is expected to be synchronous. Test plug-in must return the result immediately, and it must not call TestExecutionCompletedL(). Ownership of the CDiagResultsDatabaseItem is transferred to the caller.
TStopReason aReason | - Reason why ExecutionStopL() is being called. |
void | ResumeL | ( | ) | [pure virtual] |
Resume test. If test cannot be resumed, it will leave with KErrNotSupported.
TRunMode | RunMode | ( | ) | const [pure virtual] |
Describes the run mode of the test plug-in.
TDiagRunMode.
void | RunTestL | ( | TDiagTestExecParam * | aExecParam, |
TBool | aSkipDependencyCheck, | |||
TBool | aDependencyExecution, | |||
TAny * | aCustomParams | |||
) | [pure virtual] |
Execute a diagnostics test. This is an asynchronous method. The plug-in must call MDiagTestObserver :TestExecutionCompletedL when test has finished.
TDiagTestExecParam * aExecParam | |
TBool aSkipDependencyCheck | - If ETrue, plug-in should execute even if dependencies are not executed. |
TBool aDependencyExecution | - If ETrue, this is being executed to satisfy dependency. |
TAny * aCustomParams | Custom parameters for plug-ins. These should be used if TDiagTestExecParam is not enough. It can used to pass arbitrary data from application to the plug-ins. Owership is not transferred and plug-in must not delete this parameter. Ownership is not transferred since client does not always know the type of pointer. |
void | SuspendL | ( | ) | [pure virtual] |
Suspend test. If test cannot be suspended, it will leave with KErrNotSupported.
TUint | TotalSteps | ( | ) | const [pure virtual] |
Get the number of steps that is needed to execute tests. This can be used to calculate progress information.
Run mode defines what kind of behaviour is expected from this plug-in.
EInteractiveView | |
EInteractiveDialog | |
EAutomatic |
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.