|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __SSMCOMMAND_H__ |
|
17 #define __SSMCOMMAND_H__ |
|
18 |
|
19 #include <ssm/ssmcmd.hrh> |
|
20 class RWriteStream; |
|
21 class MSsmConditionalCallback; |
|
22 class CResourceFile; |
|
23 |
|
24 const TInt KSsmCommandPending = KRequestPending; |
|
25 |
|
26 /** Interface to a command. |
|
27 @publishedPartner |
|
28 @released |
|
29 */ |
|
30 class MSsmCommand |
|
31 { |
|
32 public: |
|
33 virtual void Execute(TRequestStatus& aStatus) = 0; |
|
34 virtual void Release() = 0; |
|
35 virtual void ExecuteCancel() = 0; |
|
36 virtual TSsmCommandType Type() const = 0; |
|
37 virtual void ExternalizeL(RWriteStream& aWriteStream) const = 0; |
|
38 virtual TBool IsDeferred() const = 0; |
|
39 virtual TCmdErrorSeverity Severity() const = 0; |
|
40 virtual TInt CompletionStatus() const = 0; |
|
41 virtual void RegisterCompletionObserver(TRequestStatus& aStatus) = 0; |
|
42 virtual void RegisterCompletionObserverCancel() = 0; |
|
43 virtual TSsmExecutionBehaviour ExecutionBehaviour() const = 0; |
|
44 virtual void SetConditionalInformation(TInt aConditionalInformation) = 0; |
|
45 virtual TInt ConditionalInformation() const = 0; |
|
46 virtual TBool EvaluateCondition(MSsmConditionalCallback* aCallback, CResourceFile* aResourceFile) = 0; |
|
47 }; |
|
48 |
|
49 #endif // __SSMCOMMAND_H__ |