|
1 // Copyright (c) 2008-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 /** |
|
17 @file |
|
18 @internalComponent |
|
19 @released |
|
20 */ |
|
21 |
|
22 #ifndef __CMDPUBLISHSTARTUPMODE_H__ |
|
23 #define __CMDPUBLISHSTARTUPMODE_H__ |
|
24 |
|
25 #include <ssm/ssmcustomcommand.h> |
|
26 #include <ssm/ssmadaptationcli.h> |
|
27 |
|
28 class CRepository; |
|
29 |
|
30 NONSHARABLE_CLASS (CCustomCmdPublishStartupMode) : public CActive, public MSsmCustomCommand |
|
31 { |
|
32 public: |
|
33 static CCustomCmdPublishStartupMode* NewL(); |
|
34 |
|
35 // from MSsmcustomCommand |
|
36 TInt Initialize(CSsmCustomCommandEnv* aCmdEnv); |
|
37 void Execute(const TDesC8& aParams, TRequestStatus& aStatus); |
|
38 void Close(); |
|
39 void Release(); |
|
40 void ExecuteCancel(); |
|
41 |
|
42 protected: |
|
43 virtual void RunL(); |
|
44 virtual void DoCancel(); |
|
45 virtual TInt RunError(TInt aError); |
|
46 |
|
47 private: |
|
48 CCustomCmdPublishStartupMode(); |
|
49 ~CCustomCmdPublishStartupMode(); |
|
50 |
|
51 void PublishStartupModeL(); |
|
52 void PublishHiddenResetL(); |
|
53 |
|
54 private: |
|
55 enum TCmdPublishStartupModeState |
|
56 { |
|
57 EInitial = 1, |
|
58 ERequestingStartupMode, |
|
59 ERequestingHiddenReset |
|
60 }; |
|
61 |
|
62 RSsmMiscAdaptation iSsmMiscAdaptation; |
|
63 TRequestStatus* iReturnStatus; |
|
64 CRepository* iRepository; |
|
65 TPckgBuf<TInt> iStartupModePckg; |
|
66 |
|
67 //Return package to fetch Hidden reset indication from adaptation |
|
68 TPckgBuf<TBool> iHiddenResetPckg; |
|
69 |
|
70 // Internal state of the command |
|
71 TCmdPublishStartupModeState iState; |
|
72 }; |
|
73 |
|
74 #endif // __CMDPUBLISHSTARTUPMODE_H__ |