|
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 |
|
18 #include <tstasksettings.h> |
|
19 #include <networkhandlingstarter.h> |
|
20 #include <networkhandlingstarterlogging.h> |
|
21 #include <networkhandlingstarter_p.h> |
|
22 |
|
23 /*! |
|
24 Constructor of NetworkHandlingStarter. |
|
25 */ |
|
26 NetworkHandlingStarter::NetworkHandlingStarter(QObject *parent) : |
|
27 XQServiceProvider(QLatin1String("networkhandlingstarter.com.nokia.symbian.IStart"), parent), |
|
28 m_privateImpl(NULL) |
|
29 { |
|
30 // Install plugin specific msg handler |
|
31 INSTALL_TRACE_MSG_HANDLER; |
|
32 |
|
33 publishAll(); |
|
34 |
|
35 DPRINT; |
|
36 } |
|
37 |
|
38 /*! |
|
39 Destructor of NetworkHandlingStarter. |
|
40 */ |
|
41 NetworkHandlingStarter::~NetworkHandlingStarter() |
|
42 { |
|
43 DPRINT; |
|
44 delete m_privateImpl; |
|
45 // Uninstall plugin specific msg handler |
|
46 UNINSTALL_TRACE_MSG_HANDLER; |
|
47 } |
|
48 |
|
49 void NetworkHandlingStarter::start() |
|
50 { |
|
51 DPRINT; |
|
52 |
|
53 if(!m_privateImpl) { |
|
54 m_privateImpl = new NetworkHandlingStarterPrivate(); |
|
55 } |
|
56 |
|
57 // Networkhandlingstarter to be invisible in taskswitcher |
|
58 TsTaskSettings taskSettings; |
|
59 taskSettings.setVisibility(false); |
|
60 } |
|
61 |
|
62 // End of File. |