author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Thu, 17 Dec 2009 09:09:50 +0200 | |
changeset 26 | 5d0ec8b709be |
parent 5 | 989d2f495d90 |
permissions | -rw-r--r-- |
5 | 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 |
||
26
5d0ec8b709be
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
22 |
#include <EPos_Landmarks.h> |
5 | 23 |
// FORWARD DECLARATION |
24 |
class CPosLmItemIterator; |
|
26
5d0ec8b709be
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
25 |
class CLandmarkHandler; |
5 | 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, |
|
26
5d0ec8b709be
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
44 |
TInt32 aTransactionId, TInt aError, CLandmarkHandler* aHandler ) = 0; |
5 | 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, |
|
26
5d0ec8b709be
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
56 |
TInt32 aTransactionId, TInt aError, CLandmarkHandler* aHandler ) = 0; |
5d0ec8b709be
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
57 |
|
5d0ec8b709be
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
58 |
virtual void HandleAddItemsL( TPosLmItemId aId, |
5d0ec8b709be
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
59 |
TInt32 aTransactionId, TInt aError ) = 0; |
5d0ec8b709be
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
60 |
|
5d0ec8b709be
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
61 |
virtual void HandleItemsL( TInt32 aTransactionId, TInt aError ) = 0; |
5d0ec8b709be
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
62 |
|
5 | 63 |
} |
64 |
; |
|
65 |
||
66 |
#endif // __MLANDMARKOBSERVER_H__ |
|
67 |
||
68 |
// End of File |