messagingapp/msgui/msgapp/src/msgapplication.cpp
author hgs
Fri, 17 Sep 2010 20:16:33 +0530
changeset 68 e8a69c93c830
parent 67 fc91263aee62
child 76 60a8a215b0ec
permissions -rw-r--r--
201037_05

/*
* 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()));
	}