author | hgs |
Fri, 03 Sep 2010 14:07:42 +0300 | |
changeset 66 | 084b5b1f02a7 |
parent 57 | ae34e1715e21 |
child 68 | 83cc6bae1de8 |
permissions | -rw-r--r-- |
18
578830873419
Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1 |
/* |
49 | 2 |
* Copyright (c) 2009-2010 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 |
*/ |
|
18
578830873419
Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
17 |
|
66 | 18 |
#include <hbsplashscreen.h> |
18
578830873419
Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
19 |
#include "nmuiheaders.h" |
66 | 20 |
#include "nmapplication.h" |
47 | 21 |
|
18
578830873419
Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
22 |
/*! |
49 | 23 |
The main function. |
24 |
*/ |
|
18
578830873419
Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
25 |
int main(int argc, char *argv[]) |
578830873419
Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
26 |
{ |
66 | 27 |
// Decide which splash screen to show. |
28 |
if (!XQServiceUtil::isService(argc,argv)) { |
|
29 |
HbSplashScreen::setScreenId("messagelist_screen"); |
|
49 | 30 |
} else { |
66 | 31 |
QString interfaceName = XQServiceUtil::interfaceName(argc,argv); |
32 |
||
33 |
if (interfaceName == XQI_EMAIL_MESSAGE_SEND || |
|
34 |
interfaceName == XQI_URI_VIEW || |
|
35 |
interfaceName == XQI_FILE_SHARE) { |
|
36 |
HbSplashScreen::setScreenId("editor_screen"); |
|
37 |
} |
|
38 |
else if (interfaceName == XQI_EMAIL_MESSAGE_VIEW) { |
|
39 |
HbSplashScreen::setScreenId("viewer_screen"); |
|
40 |
} |
|
41 |
else if (interfaceName == XQI_EMAIL_INBOX_VIEW) { |
|
42 |
HbSplashScreen::setScreenId("messagelist_screen"); |
|
43 |
} |
|
49 | 44 |
} |
45 |
||
66 | 46 |
NmApplication app(argc,argv); |
47 |
||
18
578830873419
Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
48 |
int ret = app.exec(); |
578830873419
Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
49 |
return ret; |
578830873419
Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
50 |
} |