messagingapp/msgui/msgapp/src/msgapplication.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 00:13:15 +0300
changeset 72 6f657153cbc5
child 76 60a8a215b0ec
permissions -rw-r--r--
Revision: 201037 Kit: 201039

/*
* 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:   ?Description
*
*/

//include
#include <hbmainwindow.h>
#include <hbinstance.h>

//userinclude
#include "msgapplication.h"
#include "debugtraces.h"

MsgApplication::MsgApplication( int &argc, char *argv[] )
    : HbApplication( argc, argv)
	{
	
	}

MsgApplication::~MsgApplication()
	{
	
	}

void MsgApplication::initViewReady()
	{	
	HbMainWindow *window = hbInstance->allMainWindows().first();
	connect(window, SIGNAL(viewReady()),this,SLOT(handleAppReady()));
	}

void MsgApplication::handleAppReady()
	{
	QDEBUG_WRITE("MsgApplication::handleAppReady:applicationReady signal is emited")
	emit applicationReady();
	HbMainWindow *window = hbInstance->allMainWindows().first();
	disconnect(window, SIGNAL(viewReady()),this,SLOT(handleAppReady()));
	}