|
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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 //include |
|
19 #include <hbmainwindow.h> |
|
20 #include <hbinstance.h> |
|
21 |
|
22 //userinclude |
|
23 #include "msgapplication.h" |
|
24 #include "debugtraces.h" |
|
25 |
|
26 MsgApplication::MsgApplication( int &argc, char *argv[] ) |
|
27 : HbApplication( argc, argv) |
|
28 { |
|
29 |
|
30 } |
|
31 |
|
32 MsgApplication::~MsgApplication() |
|
33 { |
|
34 |
|
35 } |
|
36 |
|
37 void MsgApplication::initViewReady() |
|
38 { |
|
39 HbMainWindow *window = hbInstance->allMainWindows().first(); |
|
40 connect(window, SIGNAL(viewReady()),this,SLOT(handleAppReady())); |
|
41 } |
|
42 |
|
43 void MsgApplication::handleAppReady() |
|
44 { |
|
45 QDEBUG_WRITE("MsgApplication::handleAppReady:applicationReady signal is emited") |
|
46 emit applicationReady(); |
|
47 HbMainWindow *window = hbInstance->allMainWindows().first(); |
|
48 disconnect(window, SIGNAL(viewReady()),this,SLOT(handleAppReady())); |
|
49 } |