|
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: Implementation of VideoPlayerEngine |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 1 % |
|
19 |
|
20 |
|
21 #include <hbinstance.h> |
|
22 #include "videoplayerapp.h" |
|
23 #include "mpxvideo_debug.h" |
|
24 |
|
25 // ------------------------------------------------------------------------------------------------- |
|
26 // VideoPlayerApp() |
|
27 // ------------------------------------------------------------------------------------------------- |
|
28 // |
|
29 VideoPlayerApp::VideoPlayerApp(int &argc, char *argv[], Hb::ApplicationFlags flags) |
|
30 : HbApplication(argc, argv, flags) |
|
31 { |
|
32 MPX_DEBUG(_L("VideoPlayerApp::VideoPlayerApp()")); |
|
33 } |
|
34 |
|
35 // ------------------------------------------------------------------------------------------------- |
|
36 // ~VideoPlayerApp() |
|
37 // ------------------------------------------------------------------------------------------------- |
|
38 // |
|
39 VideoPlayerApp::~VideoPlayerApp() |
|
40 { |
|
41 MPX_DEBUG(_L("VideoPlayerApp::~VideoPlayerApp()")); |
|
42 } |
|
43 |
|
44 // ------------------------------------------------------------------------------------------------- |
|
45 // viewReadySlot() |
|
46 // ------------------------------------------------------------------------------------------------- |
|
47 // |
|
48 void VideoPlayerApp::viewReadySlot() |
|
49 { |
|
50 MPX_ENTER_EXIT(_L("VideoPlayerApp::viewReadySlot()")); |
|
51 |
|
52 // applicationReady signal should be emitted only once, so disconnect the viewReady signal. |
|
53 disconnect(hbInstance->allMainWindows().value(0), SIGNAL(viewReady()), |
|
54 this, SLOT(viewReadySlot())); |
|
55 |
|
56 emit applicationReady(); |
|
57 } |
|
58 |
|
59 // End of file |