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: |
|
15 * |
|
16 */ |
|
17 //USER |
|
18 #include "lcapplication.h" |
|
19 |
|
20 //SYSTEM |
|
21 #include <hbmainwindow.h> |
|
22 #include <lcviewmanager.h> |
|
23 #include <QObject> |
|
24 |
|
25 int main(int argc, char *argv[]) |
|
26 { |
|
27 int err=-1; |
|
28 if (argc >= 2) |
|
29 { |
|
30 LcHbApplication app(argc, argv); |
|
31 QString engineName(QString::fromUtf8(argv[1])); |
|
32 QString applicationName("Video Sharing"); |
|
33 LcViewManager viewManager(engineName,applicationName); |
|
34 |
|
35 QObject::connect( &app, SIGNAL( handleQuit() ), |
|
36 &viewManager, SLOT( terminateSession() ), |
|
37 Qt::QueuedConnection ); |
|
38 |
|
39 err = app.exec(); |
|
40 } |
|
41 return err; |
|
42 } |
|