|
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 __SSMCOMMANDLIST_H__ |
|
17 #define __SSMCOMMANDLIST_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <ssm/ssmcmd.hrh> |
|
21 |
|
22 class CSsmCommandUtilProvider; |
|
23 class CSsmCommandListImpl; |
|
24 class RWriteStream; |
|
25 class RReadStream; |
|
26 class MSsmCommand; |
|
27 |
|
28 /** |
|
29 @publishedPartner |
|
30 @released |
|
31 */ |
|
32 NONSHARABLE_CLASS (CSsmCommandList) : public CBase |
|
33 { |
|
34 public: |
|
35 IMPORT_C static CSsmCommandList* NewL(); |
|
36 IMPORT_C static CSsmCommandList* NewLC(); |
|
37 IMPORT_C ~CSsmCommandList(); |
|
38 |
|
39 operator class MSsmCommandList&(); |
|
40 |
|
41 IMPORT_C void AppendL(MSsmCommand* aCmd); |
|
42 IMPORT_C void SetDelayBetweenCommands(TInt aDelayBetweenCommands); |
|
43 IMPORT_C const MSsmCommand* operator[](TInt aIndex) const; |
|
44 |
|
45 /** |
|
46 @internalTechnology |
|
47 */ |
|
48 IMPORT_C static CSsmCommandList* NewLC(const CSsmCommandList* aSsmCommandList, CSsmCommandUtilProvider* aUtilProvider); |
|
49 IMPORT_C TInt DelayBetweenCommands() const; |
|
50 |
|
51 IMPORT_C void InternalizeL(RReadStream& aReadStream, CSsmCommandUtilProvider& aUtilProvider); |
|
52 IMPORT_C void ExternalizeL(RWriteStream& aWriteStream) const; |
|
53 |
|
54 IMPORT_C void Execute(TInt aIndex, TRequestStatus& aStatus); |
|
55 IMPORT_C void ExecuteCancel( TInt aIndex ); |
|
56 IMPORT_C TInt Count() const; |
|
57 IMPORT_C void DeferredDelete(); |
|
58 |
|
59 IMPORT_C TCmdErrorSeverity Severity(TInt aCommandIndex) const; |
|
60 IMPORT_C void InternalizeL(RReadStream& aReadStream); |
|
61 IMPORT_C void GetDataToValidateCommandlist(TInt& aPublishSysStateCmdCount, TInt& aPublishSwpCmdCount) const; |
|
62 CSsmCommandListImpl* Impl() const; |
|
63 private: |
|
64 CSsmCommandList(); |
|
65 void ConstructL(); |
|
66 void ConstructL(const CSsmCommandList* aSsmCommandList, CSsmCommandUtilProvider* aUtilProvider); |
|
67 |
|
68 private: |
|
69 CSsmCommandListImpl* iImpl; |
|
70 }; |
|
71 |
|
72 #endif // __SSMCOMMANDLIST_H__ |