videoplayerapp/videoplayer/src/videoplayerapp.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 17 Sep 2010 08:30:05 +0300
changeset 62 0e1e938beb1a
permissions -rw-r--r--
Revision: 201035 Kit: 201037

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Implementation of VideoPlayerEngine
*
*/

// Version : %version: 1 %


#include <hbinstance.h>
#include "videoplayerapp.h"
#include "mpxvideo_debug.h"

// -------------------------------------------------------------------------------------------------
// VideoPlayerApp()
// -------------------------------------------------------------------------------------------------
//
VideoPlayerApp::VideoPlayerApp(int &argc, char *argv[], Hb::ApplicationFlags flags)
    : HbApplication(argc, argv, flags)
{
    MPX_DEBUG(_L("VideoPlayerApp::VideoPlayerApp()"));
}

// -------------------------------------------------------------------------------------------------
// ~VideoPlayerApp()
// -------------------------------------------------------------------------------------------------
//
VideoPlayerApp::~VideoPlayerApp()
{
    MPX_DEBUG(_L("VideoPlayerApp::~VideoPlayerApp()"));
}

// -------------------------------------------------------------------------------------------------
// viewReadySlot()
// -------------------------------------------------------------------------------------------------
//
void VideoPlayerApp::viewReadySlot()
{
    MPX_ENTER_EXIT(_L("VideoPlayerApp::viewReadySlot()"));
    
    // applicationReady signal should be emitted only once, so disconnect the viewReady signal.
    disconnect(hbInstance->allMainWindows().value(0), SIGNAL(viewReady()), 
               this, SLOT(viewReadySlot()));
    
    emit applicationReady();
}

// End of file