1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Async command handling for AppMngr2 Runtime API STIF tests |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_APPMNGR2TESTCOMMAND_H |
|
20 #define C_APPMNGR2TESTCOMMAND_H |
|
21 |
|
22 #include <e32base.h> // CActive |
|
23 |
|
24 class CAppMngr2InfoBase; |
|
25 class MAppMngr2TestCommandObserver; |
|
26 |
|
27 class CAppMngr2TestCommand : public CActive |
|
28 { |
|
29 public: // constructor and destructor |
|
30 static CAppMngr2TestCommand* NewL( CAppMngr2InfoBase& aInfo, |
|
31 MAppMngr2TestCommandObserver& aObs ); |
|
32 ~CAppMngr2TestCommand(); |
|
33 |
|
34 public: // from CActive |
|
35 void DoCancel(); |
|
36 void RunL(); |
|
37 TInt RunError( TInt aError ); |
|
38 |
|
39 public: // new functions |
|
40 void HandleCommandL( TInt aCommand ); |
|
41 |
|
42 private: // new functions |
|
43 CAppMngr2TestCommand( CAppMngr2InfoBase& aInfo, |
|
44 MAppMngr2TestCommandObserver& aObs ); |
|
45 |
|
46 private: // data |
|
47 CAppMngr2InfoBase& iInfo; |
|
48 MAppMngr2TestCommandObserver& iObs; |
|
49 }; |
|
50 |
|
51 #endif // C_APPMNGR2TESTCOMMAND_H |
|
52 |
|