equal
deleted
inserted
replaced
|
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: Offers message creation and sending services. |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "testshareuimainwindow.h" |
|
19 #include "testshareuiview.h" |
|
20 #include <QtDebug> |
|
21 |
|
22 TestShareUiMainWindow::TestShareUiMainWindow(QWidget *parent) |
|
23 : HbMainWindow(parent) |
|
24 { |
|
25 |
|
26 |
|
27 |
|
28 } |
|
29 |
|
30 TestShareUiMainWindow::~TestShareUiMainWindow() |
|
31 { |
|
32 |
|
33 } |
|
34 |
|
35 |
|
36 bool TestShareUiMainWindow::init() |
|
37 { |
|
38 qDebug() << "[CvProto.cpp] " << "init()"; |
|
39 if((mView = new TestShareUiView(this)) == NULL) |
|
40 { |
|
41 qDebug() << "[CvProto.cpp] " << "DeviceView alloc failed"; |
|
42 return false; |
|
43 } |
|
44 |
|
45 if(!mView->init()) |
|
46 { |
|
47 qDebug() << "[CvProto.cpp] " << "DeviceView init failed"; |
|
48 return false; |
|
49 } |
|
50 addView(mView); |
|
51 setCurrentView(mView,false); |
|
52 qDebug() << "[CvProto.cpp] " << "init() succeeded"; |
|
53 return true; |
|
54 |
|
55 } |