|
1 /* |
|
2 * Copyright (c) 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 */ |
|
17 |
|
18 |
|
19 #ifndef WEBNETWORKCONNECTIONMANAGER_H_ |
|
20 #define WEBNETWORKCONNECTIONMANAGER_H_ |
|
21 |
|
22 #include <qnetworkconfigmanager.h> |
|
23 #include <qnetworksession.h> |
|
24 #include "WebNetworkSession.h" |
|
25 |
|
26 QTM_USE_NAMESPACE |
|
27 |
|
28 namespace WRT { |
|
29 |
|
30 class WebNetworkConnectionManager : public QObject |
|
31 { |
|
32 Q_OBJECT |
|
33 |
|
34 public: |
|
35 WebNetworkConnectionManager(QObject *parent = 0); |
|
36 virtual ~WebNetworkConnectionManager(); |
|
37 void updateConfigurations(); |
|
38 QNetworkConfiguration defaultConfiguration() const; |
|
39 void createSession(QNetworkConfiguration config); |
|
40 void deleteSession(); |
|
41 |
|
42 private Q_SLOTS: |
|
43 void configurationUpdateCompleted(); |
|
44 void configurationAdded(const QNetworkConfiguration& config); |
|
45 void configurationRemoved(const QNetworkConfiguration& config); |
|
46 void onlineStateChanged(bool isOnline); |
|
47 void configurationChanged(const QNetworkConfiguration& config); |
|
48 |
|
49 private: |
|
50 QNetworkConfigurationManager m_NetworkConfigurationManager; |
|
51 WebNetworkSession *m_WebNetworkSession; |
|
52 }; |
|
53 } |
|
54 |
|
55 #endif /* WEBNETWORKCONNECTIONMANAGER_H_ */ |