|
1 /* |
|
2 * Copyright (c) 2006 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: Contains common data structures used by Internet Connectivity |
|
15 * Test Service. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef ICTSCOMMON_H |
|
21 #define ICTSCOMMON_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 |
|
26 // CONSTANTS |
|
27 |
|
28 // Length of HTTP FW response |
|
29 const TInt KHttpResponseLength = 1024; |
|
30 |
|
31 // HTTP::HEAD max response time for timer. 5 seconds. |
|
32 const TInt KHttpResponseTime = 5000000; |
|
33 |
|
34 // DATA TYPES |
|
35 |
|
36 // Values of testing result |
|
37 enum TIctsTestResult |
|
38 { |
|
39 // Test successful |
|
40 EConnectionOk, |
|
41 // Browser (or other) authentication was needed. |
|
42 EHttpAuthenticationNeeded, |
|
43 // Test was not successful |
|
44 EConnectionNotOk, |
|
45 // Timeout |
|
46 ETimeout |
|
47 }; |
|
48 |
|
49 // CLASS DECLARATION |
|
50 /** |
|
51 * Callback interface for Internet Connectivity Test Service notifications. |
|
52 * |
|
53 * This virtual methods should be inherited and implemented by the |
|
54 * client. |
|
55 * |
|
56 * The client enables observer calls when creating an instance of Icts. |
|
57 * @see CIctsClientInterface::NewL. |
|
58 * @lib ictsclientinterface.dll |
|
59 * @since S60 5.0 |
|
60 */ |
|
61 class MIctsObserver |
|
62 { |
|
63 public: |
|
64 |
|
65 /** |
|
66 * Connectivity test result will become here |
|
67 * @param aResult Result of connectivity test |
|
68 * @param aString String containing location information when redirect |
|
69 */ |
|
70 virtual void ConnectivityObserver( TIctsTestResult aResult, |
|
71 const TDesC& aString ) = 0; |
|
72 |
|
73 }; |
|
74 |
|
75 #endif // ICTSCOMMON_H |
|
76 |
|
77 // End of File |