|
1 /* |
|
2 * Copyright (c) 2005 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 * ?description_line |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 // INCLUDES |
|
21 |
|
22 #include "FT_CPosTp3.h" |
|
23 #include <EPos_CPosLandmarkDatabase.h> |
|
24 |
|
25 |
|
26 // ================= MEMBER FUNCTIONS ======================= |
|
27 |
|
28 |
|
29 // --------------------------------------------------------- |
|
30 // CPosTp3::StartL |
|
31 // |
|
32 // (other items were commented in a header). |
|
33 // --------------------------------------------------------- |
|
34 // |
|
35 void CPosTp3::StartL() |
|
36 { |
|
37 |
|
38 _LIT(KDbUri5, "http://c:\\system\\data\\eposlm.ldb"); |
|
39 |
|
40 _LIT(KHttpErr, "http is not a supported protocol"); |
|
41 |
|
42 RemoveDefaultDbL(); |
|
43 |
|
44 CPosLandmarkDatabase* lmd = CPosLandmarkDatabase::OpenL(); |
|
45 delete lmd; |
|
46 |
|
47 |
|
48 TInt err=0; |
|
49 TRAP(err, TestOpenDbL(KDbUri5)); |
|
50 AssertTrueSecL(err == KErrNotSupported, KHttpErr); |
|
51 |
|
52 } |
|
53 |
|
54 // --------------------------------------------------------- |
|
55 // CPosTp3::TestOPenDbL |
|
56 // |
|
57 // (other items were commented in a header). |
|
58 // --------------------------------------------------------- |
|
59 // |
|
60 void CPosTp3::TestOpenDbL(const TDesC& aDbURI) |
|
61 { |
|
62 CPosLandmarkDatabase* lmd = CPosLandmarkDatabase::OpenL(aDbURI); |
|
63 CleanupStack::PushL(lmd); |
|
64 |
|
65 if (lmd->IsInitializingNeeded()) |
|
66 { |
|
67 ExecuteAndDeleteLD(lmd->InitializeL()); |
|
68 } |
|
69 |
|
70 CleanupStack::PopAndDestroy(); |
|
71 } |
|
72 |
|
73 // End of File |