|
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 __CMDPERSISTHALATTRIBUTES_H__ |
|
17 #define __CMDPERSISTHALATTRIBUTES_H__ |
|
18 |
|
19 #include "ssmcommandbase.h" |
|
20 |
|
21 class TSsmCommandParameters; |
|
22 class RReadStream; |
|
23 |
|
24 /** |
|
25 Built-in command for persisting the HAL attributes |
|
26 @internalComponent |
|
27 @released |
|
28 @see BaflUtils |
|
29 */ |
|
30 NONSHARABLE_CLASS (CCmdPersistHalAttributes) : public CSsmCommandBase |
|
31 { |
|
32 public: |
|
33 static CCmdPersistHalAttributes* NewL(RReadStream& aReadStream); |
|
34 static CCmdPersistHalAttributes* NewL(TCmdErrorSeverity aSeverity); |
|
35 static CCmdPersistHalAttributes* NewL(TSsmCommandParameters& aCommandParameters); |
|
36 //Must be used only by CLE to reconstruct the command |
|
37 static CCmdPersistHalAttributes* NewLC(const CCmdPersistHalAttributes& aCmdPersistHalAttributes); |
|
38 ~CCmdPersistHalAttributes(); |
|
39 |
|
40 // from MSsmCommand |
|
41 TSsmCommandType Type() const; |
|
42 void ExternalizeL(RWriteStream& aWriteStream) const; |
|
43 void Execute(TRequestStatus& aStatus); |
|
44 void ExecuteCancel(); |
|
45 void Release(); |
|
46 |
|
47 protected: |
|
48 // from CActive |
|
49 void RunL(); |
|
50 void DoCancel(); |
|
51 TInt RunError(TInt aError); |
|
52 |
|
53 private: |
|
54 CCmdPersistHalAttributes(); |
|
55 CCmdPersistHalAttributes(TCmdErrorSeverity aSeverity); |
|
56 void InternalizeL(RReadStream& aReadStream); |
|
57 void ConstructL(RReadStream& aReadStream); |
|
58 void ConstructL(TSsmCommandParameters& aCommandParameters); |
|
59 void ConstructL(const CCmdPersistHalAttributes& aCmdPersistHalAttributes); |
|
60 static TInt MaxSupportedVersion(); |
|
61 }; |
|
62 |
|
63 #endif // __CMDPERSISTHALATTRIBUTES_H__ |