19
|
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: CLandmarkCmdGetLandmarks class
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef __CLANDMARKCMDGETLANDMARKS_H__
|
|
20 |
#define __CLANDMARKCMDGETLANDMARKS_H__
|
|
21 |
|
|
22 |
// INCLUDES
|
|
23 |
#include "clandmarkcmdbase.h"
|
|
24 |
|
|
25 |
/**
|
|
26 |
* CLandmarkCmdGetLandmarks
|
|
27 |
* This class processes the async request for retrieval of landmarks from the landmark
|
|
28 |
* database. It implements the StartL ( CLandmarkHandler* aHandle, TInt32 aTransactionId, CLandmarkFilter* aFilter )
|
|
29 |
* of CLandmarkCmdBase. After completion of the aynchronous request the MLandmarkObserver instance is notified
|
|
30 |
* and the garbage collector is set active.
|
|
31 |
*/
|
|
32 |
// CLASS DECLARATION
|
|
33 |
NONSHARABLE_CLASS(CLandmarkCmdGetLandmarks) : public CLandmarkCmdBase
|
|
34 |
{
|
|
35 |
public: // New methods
|
|
36 |
|
|
37 |
/**
|
|
38 |
* NewL.
|
|
39 |
* Two-phased constructor.
|
|
40 |
* Create a CLandmarkCmdGetLandmarks object.
|
|
41 |
* @param aObserver The pointer to the observer for this object.
|
|
42 |
* @param aManageObjects The pointer to the garbage collector.
|
|
43 |
* @return A pointer to the created instance of CLandmarkCmdGetLandmarks.
|
|
44 |
*/
|
|
45 |
static CLandmarkCmdGetLandmarks* NewL( MLandmarkObserver* aObserver,
|
|
46 |
CLandmarkManageObjects* aManageObjects );
|
|
47 |
|
|
48 |
/**
|
|
49 |
* NewLC.
|
|
50 |
* Two-phased constructor.
|
|
51 |
* Create a CLandmarkCmdGetLandmarks object.
|
|
52 |
* @param aObserver The pointer to the observer for this object.
|
|
53 |
* @param aManageObjects The pointer to the garbage collector.
|
|
54 |
* @return A pointer to the created instance of CLandmarkCmdGetLandmarks.
|
|
55 |
*/
|
|
56 |
static CLandmarkCmdGetLandmarks* NewLC( MLandmarkObserver* aObserver ,
|
|
57 |
CLandmarkManageObjects* aManageObjects);
|
|
58 |
|
|
59 |
/**
|
|
60 |
* ~CLandmarkCmdGetLandmarks
|
|
61 |
* Destructor.
|
|
62 |
*/
|
|
63 |
~CLandmarkCmdGetLandmarks();
|
|
64 |
|
|
65 |
public: // From CLandmarkCmdBase
|
|
66 |
|
|
67 |
// StartL
|
|
68 |
// This functions proceeds with the incremental search.
|
|
69 |
void StartL ( CLandmarkHandler* aHandle,
|
|
70 |
TInt32 aTransactionId, CLandmarkFilter& aFilter );
|
|
71 |
|
|
72 |
private:
|
|
73 |
|
|
74 |
/**
|
|
75 |
* NextStep
|
|
76 |
* This functions proceeds with the incremental search.
|
|
77 |
*/
|
|
78 |
void NextStep ();
|
|
79 |
|
|
80 |
private: // From CActive
|
|
81 |
|
|
82 |
// RunL.
|
|
83 |
// This functions gets called after completion of async request.
|
|
84 |
void RunL();
|
|
85 |
|
|
86 |
// DoCancel.
|
|
87 |
// This function will cancel ongoing async call.
|
|
88 |
void DoCancel();
|
|
89 |
|
|
90 |
// RunError.
|
|
91 |
// This functions handles a leave occurring in the request completion event handler
|
|
92 |
TInt RunError(TInt aError);
|
|
93 |
|
|
94 |
private: // Constructors
|
|
95 |
|
|
96 |
/**
|
|
97 |
* CLandmarkCmdGetLandmarks.
|
|
98 |
* C++ default constructor.
|
|
99 |
* @param aObserver The pointer to the observer for this object.
|
|
100 |
* @param aManageObjects The pointer to the garbage collector.
|
|
101 |
*/
|
|
102 |
CLandmarkCmdGetLandmarks ( MLandmarkObserver* aObserver,
|
|
103 |
CLandmarkManageObjects* aManageObjects );
|
|
104 |
};
|
|
105 |
|
|
106 |
#endif // __CLANDMARKCMDGETLANDMARKS_H__
|
|
107 |
|
|
108 |
// End of File
|