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 * |
|
15 * Description: |
|
16 * The main function for Tone Fetcher |
|
17 */ |
|
18 |
|
19 #include "tonefetcher.h" |
|
20 #include "tonefetchermainwindow.h" |
|
21 #include <hbapplication.h> |
|
22 #include <tonefetcherlogger.h> |
|
23 |
|
24 int main(int argc, char *argv[]) |
|
25 { |
|
26 HbApplication a(argc, argv); |
|
27 |
|
28 #ifdef ENABLE_TONEFETCHER_LOG |
|
29 Logger::instance(TONEFETCHER_LOGGER_NAME)->configure( |
|
30 TF_LOGGER_CONFIG_PATH,QSettings::IniFormat); |
|
31 #endif |
|
32 TF_LOG("Entering tonefetcher.exe..."); |
|
33 ToneFetcherMainWindow w; |
|
34 w.show(); |
|
35 int ret = a.exec(); |
|
36 TF_LOG("Leaving tonefetcher.exe..."); |
|
37 #ifdef ENABLE_TONEFETCHER_LOG |
|
38 Logger::closeAll(); |
|
39 #endif |
|
40 return ret; |
|
41 } |