|
1 /* |
|
2 * Copyright (c) 2009 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: mpxvideoplayerappui stub for STIF testing |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: ou1cpsw#4 % |
|
19 |
|
20 |
|
21 #include <avkon.hrh> |
|
22 |
|
23 #include "mpxvideoplayer_appuienginetester.h" |
|
24 #include "mpxvideoplayerappui_stub.h" |
|
25 #include "mpxvideo_debug.h" |
|
26 |
|
27 |
|
28 // ======== MEMBER FUNCTIONS ======== |
|
29 // ----------------------------------------------------------------------------- |
|
30 // CMpxVideoPlayerAppUi::CMpxVideoPlayerAppUi |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 CMpxVideoPlayerAppUi::CMpxVideoPlayerAppUi( TBool aEmbedded, |
|
34 MAppUiEngineStifTestObserver* aObserver ) |
|
35 : iEmbedded( aEmbedded ), |
|
36 iStifObserver( aObserver ) |
|
37 { |
|
38 MPX_DEBUG(_L("CMpxVideoPlayerAppUi::CMpxVideoPlayerAppUi(%d)"), aEmbedded); |
|
39 } |
|
40 |
|
41 // ----------------------------------------------------------------------------- |
|
42 // CMpxVideoPlayerAppUi::~CMpxVideoPlayerAppUi |
|
43 // Destructor. Frees reserved resources |
|
44 // ----------------------------------------------------------------------------- |
|
45 // |
|
46 CMpxVideoPlayerAppUi::~CMpxVideoPlayerAppUi() |
|
47 { |
|
48 MPX_ENTER_EXIT(_L("CMpxVideoPlayerAppUi::~CMpxVideoPlayerAppUi()")); |
|
49 } |
|
50 |
|
51 // ----------------------------------------------------------------------------- |
|
52 // CMpxVideoPlayerAppUi::HandleCommandL |
|
53 // ----------------------------------------------------------------------------- |
|
54 // |
|
55 void CMpxVideoPlayerAppUi::HandleCommandL( TInt aCommand ) |
|
56 { |
|
57 MPX_ENTER_EXIT(_L("CMpxVideoPlayerAppUi::HandleCommandL()"), |
|
58 _L("aCommand = %d"), aCommand ); |
|
59 |
|
60 switch ( aCommand ) |
|
61 { |
|
62 case EEikCmdExit: // fall through |
|
63 case EAknCmdExit: |
|
64 { |
|
65 TCallbackEvent* event = new TCallbackEvent; |
|
66 |
|
67 event->iEvent = EAppUiCmdExit; |
|
68 |
|
69 iStifObserver->HandleUtilityEvent( event ); |
|
70 |
|
71 break; |
|
72 } |
|
73 case EAknSoftkeyBack: |
|
74 { |
|
75 break; |
|
76 } |
|
77 case EAknCmdHelp: |
|
78 { |
|
79 break; |
|
80 } |
|
81 default: |
|
82 { |
|
83 break; |
|
84 } |
|
85 } |
|
86 } |
|
87 |
|
88 // --------------------------------------------------------------------------- |
|
89 // Querying whether the application is launched in embedded mode or not. |
|
90 // --------------------------------------------------------------------------- |
|
91 // |
|
92 TBool CMpxVideoPlayerAppUi::IsEmbedded() const |
|
93 { |
|
94 MPX_DEBUG(_L("CMpxVideoPlayerAppUi::IsEmbedded(%d)"), iEmbedded ); |
|
95 |
|
96 return iEmbedded; |
|
97 } |
|
98 |
|
99 // --------------------------------------------------------------------------- |
|
100 // Return active view. |
|
101 // --------------------------------------------------------------------------- |
|
102 CAknView* CMpxVideoPlayerAppUi::View() |
|
103 { |
|
104 return NULL; |
|
105 } |