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: Network handling. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef PENETWORKHANDLER_H |
|
19 #define PENETWORKHANDLER_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <qsysteminfo.h> |
|
23 #include <networkhandlingdomainpskeys.h> |
|
24 #include "mpephonemodelinternal.h" |
|
25 |
|
26 QTM_USE_NAMESPACE |
|
27 |
|
28 class PeNetworkHandler : public QObject |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 |
|
34 /*! |
|
35 Constructor |
|
36 */ |
|
37 PeNetworkHandler(MPEPhoneModelInternal& aModel); |
|
38 |
|
39 /*! |
|
40 Destructor |
|
41 */ |
|
42 virtual ~PeNetworkHandler (); |
|
43 |
|
44 |
|
45 public slots: |
|
46 |
|
47 /*! |
|
48 \fn void networkStatusChanged() |
|
49 |
|
50 Slot is called when network status is changed. |
|
51 */ |
|
52 void networkStatusChanged( |
|
53 QSystemNetworkInfo::NetworkMode mode, |
|
54 QSystemNetworkInfo::NetworkStatus status); |
|
55 |
|
56 private: |
|
57 |
|
58 /*! |
|
59 \fn void sendStatus() |
|
60 |
|
61 Sends new status. |
|
62 */ |
|
63 void sendStatus(QSystemNetworkInfo::NetworkStatus status); |
|
64 |
|
65 /*! |
|
66 \fn void convertStatus () |
|
67 |
|
68 Converts QSystemNetworkInfo::NetworkStatus to |
|
69 TNWNetworkRegistrationStatus. |
|
70 */ |
|
71 TNWNetworkRegistrationStatus convertStatus( |
|
72 QSystemNetworkInfo::NetworkStatus status); |
|
73 |
|
74 |
|
75 private: |
|
76 |
|
77 // Reference to phone model object |
|
78 MPEPhoneModelInternal& iModel; |
|
79 |
|
80 QSystemNetworkInfo* m_networkInfo; |
|
81 |
|
82 }; |
|
83 |
|
84 #endif // PENETWORKHANDLER_H |
|