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 #ifndef WLANQTUTILSCONNTESTWRAPPER_S60_P_H_ |
|
19 #define WLANQTUTILSCONNTESTWRAPPER_S60_P_H_ |
|
20 |
|
21 #include <ictsclientinterface.h> |
|
22 |
|
23 QT_BEGIN_NAMESPACE |
|
24 |
|
25 /** |
|
26 * ConnTestWrapperPrivate class. |
|
27 */ |
|
28 class ConnTestWrapperPrivate: public MIctsObserver |
|
29 { |
|
30 |
|
31 // TestWlanQtUtils is defined as a friend class in order to be able to |
|
32 // call event handlers of wrappers. |
|
33 friend class TestWlanQtUtils; |
|
34 |
|
35 public: |
|
36 |
|
37 /** |
|
38 * Default constructor |
|
39 */ |
|
40 ConnTestWrapperPrivate(ConnTestWrapper *aWrapper); |
|
41 |
|
42 /** |
|
43 * Destructor |
|
44 */ |
|
45 ~ConnTestWrapperPrivate(); |
|
46 |
|
47 public: // From MICTSObserver |
|
48 |
|
49 /** |
|
50 * Called when internet connectivity tests are being done. |
|
51 * |
|
52 * @param[in] aResult Result of connectivity test |
|
53 * @param[in] aString String containing possible HTML response |
|
54 */ |
|
55 void ConnectivityObserver( TIctsTestResult aResult, const TDesC& aString ); |
|
56 |
|
57 public: |
|
58 |
|
59 /** |
|
60 * Starts internet connectivity test wrapped. |
|
61 * |
|
62 * @param[in] iapId iap id |
|
63 * @param[in] netId network id |
|
64 */ |
|
65 void startConnectivityTest( int aIapId, int aNetId ); |
|
66 |
|
67 /** |
|
68 * Starts the actual internet connectivity test. |
|
69 * |
|
70 * @param[in] iapId iap id |
|
71 * @param[in] netId network id |
|
72 */ |
|
73 void startConnectivityTestL( TInt aIapId, TInt aNetId ); |
|
74 |
|
75 private: |
|
76 |
|
77 /** |
|
78 * Pointer to ConnTestWrapper |
|
79 * Owned by ConnTestWrapperPrivate object, instantiated in constructor. |
|
80 */ |
|
81 ConnTestWrapper *q_ptr; |
|
82 |
|
83 /** |
|
84 * Pointer to Internet Connectivity Test Service |
|
85 * Owned by ConnTestWrapperPrivate. |
|
86 */ |
|
87 CIctsClientInterface* iIct; |
|
88 |
|
89 }; |
|
90 |
|
91 QT_END_NAMESPACE |
|
92 |
|
93 #endif /* WLANQTUTILSCONNTESTWRAPPER_S60_P_H_ */ |
|