equal
deleted
inserted
replaced
|
1 /* |
|
2 * Name : Local.h |
|
3 * Description : |
|
4 * Project : This file is part of OpenMAR, an Open Mobile Augmented Reality browser |
|
5 * Website : http://OpenMAR.org |
|
6 * |
|
7 * Copyright (c) 2010 David Caabeiro |
|
8 * |
|
9 * All rights reserved. This program and the accompanying materials are made available |
|
10 * under the terms of the Eclipse Public License v1.0 which accompanies this |
|
11 * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html |
|
12 * |
|
13 */ |
|
14 |
|
15 #ifndef LOCAL_H_ |
|
16 #define LOCAL_H_ |
|
17 |
|
18 #include <e32base.h> |
|
19 #include <EPos_Landmarks.h> |
|
20 |
|
21 #include "Loader.h" |
|
22 |
|
23 class CPosLandmarkDatabase; |
|
24 class TCoordinate; |
|
25 |
|
26 /** |
|
27 * @brief Retrieves landmarks from a local database |
|
28 */ |
|
29 class CLocalLoader : public CActive, public MLandmarkLoader |
|
30 { |
|
31 public: |
|
32 static CLocalLoader* NewL(MLandmarkLoaderObserver& aObserver, const TDesC8& aProviderUri); |
|
33 ~CLocalLoader(); |
|
34 |
|
35 protected: |
|
36 CLocalLoader(MLandmarkLoaderObserver& aObserver); |
|
37 void ConstructL(const TDesC8& aProviderUri); |
|
38 |
|
39 // From CActive |
|
40 void RunL(); |
|
41 void DoCancel(); |
|
42 |
|
43 public: |
|
44 // From MLandmarkLoader |
|
45 void RequestL(const TCoordinate& aCoordinate, TReal32 aRadius); |
|
46 |
|
47 private: |
|
48 MLandmarkLoaderObserver& iObserver; |
|
49 |
|
50 CPosLandmarkDatabase* iLandmarkDb; |
|
51 TPosLmEvent iEvent; |
|
52 }; |
|
53 |
|
54 #endif // LOCAL_H_ |