|
1 /* |
|
2 * Copyright (c) 2005-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: MLandmarkObserver class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __MLANDMARKOBSERVER_H__ |
|
20 #define __MLANDMARKOBSERVER_H__ |
|
21 |
|
22 // FORWARD DECLARATION |
|
23 class CPosLmItemIterator; |
|
24 |
|
25 /** |
|
26 * MLandmarkObserver |
|
27 * This class is an observer interface. |
|
28 */ |
|
29 // CLASS DECLARATION |
|
30 NONSHARABLE_CLASS(MLandmarkObserver ) |
|
31 { |
|
32 public: |
|
33 /** |
|
34 * HandleLandmarkItemsL. |
|
35 * This is a pure virtual method that has to be implemented. |
|
36 * It should notify the client with the status of the asynchronous request. |
|
37 * @param aIterator The iterator to iterate through the list of landmarks. |
|
38 * @param aTransactionId The transaction id of the async call. |
|
39 * @param aError Whether the async call was able to complete without errors. |
|
40 * @param aDatabaseUri The uri of the database on which the iterator can be used. |
|
41 */ |
|
42 virtual void HandleLandmarkItemsL( CPosLmItemIterator* aIterator, |
|
43 TInt32 aTransactionId, TInt aError, const TDesC& aDatabaseUri ) = 0; |
|
44 |
|
45 /** |
|
46 * HandleCategoryItemsL. |
|
47 * This is a pure virtual method that has to be implemented. |
|
48 * It should notify the client with the status of the asynchronous request. |
|
49 * @param aIterator The iterator to iterate through the list of landmark categories. |
|
50 * @param aTransactionId The transaction id of the async call. |
|
51 * @param aError Whether the async call was able to complete without errors. |
|
52 * @param aDatabaseUri The uri of the database on which the iterator can be used. |
|
53 */ |
|
54 virtual void HandleCategoryItemsL( CPosLmItemIterator* aIterator, |
|
55 TInt32 aTransactionId, TInt aError, const TDesC& aDatabaseUri ) = 0; |
|
56 } |
|
57 ; |
|
58 |
|
59 #endif // __MLANDMARKOBSERVER_H__ |
|
60 |
|
61 // End of File |