|
1 /* |
|
2 * Copyright (c) 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 "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: Utility class to create instances of geographical area. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef LBTOPERATION_H |
|
20 #define LBTOPERATION_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <lbtgeoareabase.h> |
|
24 |
|
25 |
|
26 /** |
|
27 * |
|
28 * Utility class to create instances of geographical area. The service allows |
|
29 * only current cell based geographical area instances to be created. |
|
30 * |
|
31 * @lib lbt.lib |
|
32 * |
|
33 * @since S60 5.1 |
|
34 */ |
|
35 class CLBTOperation : public CActive |
|
36 { |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Allocates and constructs a new operation instance. |
|
41 * |
|
42 * @param[out] aStatus Contains the error code when the |
|
43 * request is completed. |
|
44 * - KErrNone If the operation was successful. |
|
45 * - KErrNotSupported If the type specified is not ECellular |
|
46 * - Other standard Symbian error code, such as KErrNoMemory, |
|
47 * KErrServerBusy, KErrGeneral, etc. |
|
48 * @param[in] aTechType The type of geographical area instance to be |
|
49 * created. Currently only ECellular type is supported. |
|
50 * @param[out] aArea The geographical area containing the current cell ID |
|
51 * information |
|
52 * @return Pointer to the new operation instance. |
|
53 */ |
|
54 IMPORT_C static CLBTOperation* CreateGeoAreaForCurrentLocationL( |
|
55 TRequestStatus &aStatus, |
|
56 CLbtGeoAreaBase::TGeoAreaType aTechType, |
|
57 CLbtGeoAreaBase ** aArea ); |
|
58 /** |
|
59 * Destructor |
|
60 */ |
|
61 IMPORT_C virtual ~CLBTOperation(); |
|
62 |
|
63 protected: |
|
64 |
|
65 /** |
|
66 * Default constructor |
|
67 */ |
|
68 CLBTOperation(); |
|
69 }; |
|
70 |
|
71 #endif // LBTOPERATION_H |