|
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 __SSMCOMMANDPARAMETERS_H__ |
|
17 #define __SSMCOMMANDPARAMETERS_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <f32file.h> |
|
21 |
|
22 #include <ssm/ssmstate.h> |
|
23 #include <ssm/ssmswp.h> |
|
24 #include <ssm/ssmcmd.hrh> |
|
25 #include <barsread2.h> |
|
26 |
|
27 class CResourceFile; |
|
28 |
|
29 class TSsmCommandParameters |
|
30 { |
|
31 public: |
|
32 TSsmCommandParameters(RResourceReader& aMainReader, CResourceFile* aResourceFile, TInt aConditionalInfoResourceId); |
|
33 TSsmCommandParameters(RResourceReader& aMainReader, CResourceFile* aResourceFile, TInt aConditionalInfoResourceId, const TSsmState& aState); |
|
34 TSsmCommandParameters(RResourceReader& aMainReader, CResourceFile* aResourceFile, TInt aConditionalInfoResourceId, const TSsmSwp& aSwp); |
|
35 |
|
36 RResourceReader& MainReader(); |
|
37 void OpenReaderForResourceIdL(RResourceReader& aReader, TInt aResourceId); |
|
38 HBufC8* AllocBufferForResourceIdL(TInt aResourceId); |
|
39 TSsmState StateL(); |
|
40 TSsmSwp SwpL(); |
|
41 CResourceFile* ResourceFile(); |
|
42 TInt ConditionalInformation(); |
|
43 private: |
|
44 enum TOptions |
|
45 { |
|
46 ENoOptionalValuesSupplied, |
|
47 EStateSupplied, |
|
48 ESwpSupplied |
|
49 }; |
|
50 RResourceReader& iMainReader; |
|
51 CResourceFile* iResourceFile; |
|
52 TOptions iOptions; |
|
53 TInt iConditionalInfoResourceId; |
|
54 TSsmState iState; |
|
55 TSsmSwp iSwp; |
|
56 }; |
|
57 |
|
58 #endif // __SSMCOMMANDPARAMETERS_H__ |