equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
23 #include "iaupdatemainview.h" |
23 #include "iaupdatemainview.h" |
24 #include "iaupdatehistoryview.h" |
24 #include "iaupdatehistoryview.h" |
25 |
25 |
26 |
26 |
27 // ViewManager Constructor |
27 // ViewManager Constructor |
28 IAUpdateMainWindow::IAUpdateMainWindow() |
28 IAUpdateMainWindow::IAUpdateMainWindow(IAUpdateEngine *engine) |
29 { |
29 { |
30 // Add the views to the main window |
30 // Add the views to the main window |
31 //addHistoryView(); |
31 //addHistoryView(); |
32 addMainView(); |
32 addMainView(engine); |
33 // show the main window (which will display the last view that was added) |
33 // show the main window (which will display the last view that was added) |
34 show(); //temp |
34 show(); //temp |
35 } |
35 } |
36 |
36 |
37 // Destructor |
37 // Destructor |
38 IAUpdateMainWindow::~IAUpdateMainWindow() |
38 IAUpdateMainWindow::~IAUpdateMainWindow() |
39 { |
39 { |
40 } |
40 } |
41 |
41 |
42 // Methods to add views to the main window |
42 // Methods to add views to the main window |
43 void IAUpdateMainWindow::addMainView() |
43 void IAUpdateMainWindow::addMainView(IAUpdateEngine *engine) |
44 { |
44 { |
45 mMainView = new IAUpdateMainView(); |
45 mMainView = new IAUpdateMainView(engine); |
46 addView(mMainView); |
46 addView(mMainView); |
47 } |
47 } |
48 |
48 |
49 void IAUpdateMainWindow::addHistoryView() |
49 void IAUpdateMainWindow::addHistoryView() |
50 { |
50 { |