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