|
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 the License "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: Handle special load events such as network connection, deal with non-http or non-html requests |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef BRCTLSPECIALLOADOBSERVERIMPL_H |
|
21 #define BRCTLSPECIALLOADOBSERVERIMPL_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <BrCtlSpecialLoadObserver.h> |
|
25 |
|
26 /** |
|
27 * This observer handles special load events such as network connection, deal with non-http(s) or non-html requests |
|
28 * |
|
29 * @lib BrowserEngine.lib |
|
30 * @since 2.8 |
|
31 */ |
|
32 //NONSHARABLE_CLASS(CBrCtlSpecialLoadObserver) : public CBase, public MBrCtlSpecialLoadObserver |
|
33 class CBrCtlSpecialLoadObserver : public CBase, public MBrCtlSpecialLoadObserver |
|
34 { |
|
35 public: // From MBrCtlSpecialLoadObserver |
|
36 /** |
|
37 * Request to create a network connection. |
|
38 * @since 2.8 |
|
39 * @param aConnectionPtr A pointer to the new connection. If NULL, the proxy filter will automatically create a network connection |
|
40 * @param aSockSvrHandle A handle to the socket server. |
|
41 * @param aNewConn A flag if a new connection was created. If the connection is not new, proxy filter optimization will not read the proxy again from CommsBd |
|
42 * @param aBearerType The bearer type of the new connection |
|
43 * @return void |
|
44 */ |
|
45 virtual void NetworkConnectionNeededL(TInt* /*aConnectionPtr*/, |
|
46 TInt* /*aSockSvrHandle*/, |
|
47 TBool* /*aNewConn*/, |
|
48 TApBearerType* /*aBearerType*/) {} |
|
49 |
|
50 /** |
|
51 * Request the host applicaion to handle non-http request. |
|
52 * @since 2.8 |
|
53 * @param aUrl The non-http(s) or file URL |
|
54 * @param aParamList Parameters to pass to the host application. Contain referer header. It could be NULL |
|
55 * @return ETrue is handled by the host application. EFlase if not |
|
56 */ |
|
57 virtual TBool HandleRequestL(RArray<TUint>* /*aTypeArray*/, CDesCArrayFlat* /*aDesArray*/) {return EFalse;} |
|
58 |
|
59 /** |
|
60 * Request the host applicaion to handle downloads |
|
61 * @since 2.8 |
|
62 * @param aTypeArray array of download parameter types |
|
63 * @param aDesArray array of values associated with the types in the type array |
|
64 * @return ETrue is handled by the host application. EFlase if not |
|
65 */ |
|
66 virtual TBool HandleDownloadL(RArray<TUint>* /*aTypeArray*/, |
|
67 CDesCArrayFlat* /*aDesArray*/) {return EFalse;} |
|
68 }; |
|
69 |
|
70 #endif // BRCTLSPECIALLOADOBSERVERIMPL_H |
|
71 |
|
72 // End of File |