|
1 /* |
|
2 * Copyright (c) 2002 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: WPWAPUtil is a utility class for reading resource strings. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include <e32base.h> |
|
22 #include <f32file.h> |
|
23 #include <barsc.h> |
|
24 #include <bautils.h> |
|
25 #include <WPAdapterUtil.h> |
|
26 #include <CWPCharacteristic.h> |
|
27 #include <uri16.h> // TUriParser8 |
|
28 #include "WPWAPUtil.h" |
|
29 |
|
30 // CONSTANTS |
|
31 #if ( defined (__WINS__) || defined (__WINSCW) ) // this different on hw |
|
32 _LIT( KAdapterName, "WPWAPAdapterResource" ); |
|
33 #else |
|
34 _LIT( KAdapterName, "WPWAPAdapter" ); |
|
35 #endif |
|
36 |
|
37 // ============================ MEMBER FUNCTIONS =============================== |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // WPWAPUtil::ReadHBufCL |
|
41 // ----------------------------------------------------------------------------- |
|
42 // |
|
43 HBufC* WPWAPUtil::ReadHBufCL( TInt aResourceId ) |
|
44 { |
|
45 TFileName fileName; |
|
46 Dll::FileName( fileName ); |
|
47 |
|
48 return WPAdapterUtil::ReadHBufCL( fileName, KAdapterName, aResourceId ); |
|
49 } |
|
50 |
|
51 // ----------------------------------------------------------------------------- |
|
52 // WPWAPUtil::CheckURL |
|
53 // ----------------------------------------------------------------------------- |
|
54 // |
|
55 TBool WPWAPUtil::CheckURI( const TDesC& aUrl ) |
|
56 { |
|
57 return WPAdapterUtil::CheckURI( aUrl ); |
|
58 } |
|
59 |
|
60 // End of File |