|
1 /** |
|
2 * Copyright (c) 2006-2009 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 "Symbian Foundation License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file ctlbsdox3p.h |
|
24 */ |
|
25 |
|
26 #ifndef __CT_LBS_DO_X3P_H__ |
|
27 #define __CT_LBS_DO_X3P_H__ |
|
28 |
|
29 |
|
30 #include <e32base.h> |
|
31 #include <lbs.h> |
|
32 #include <lbsx3p.h> |
|
33 |
|
34 |
|
35 //class CT_LbsX3PDoTransmitPos; |
|
36 _LIT(KCT_LbsDoX3P, "CT_LbsDoX3P"); |
|
37 |
|
38 // Async callbacks |
|
39 class MT_LbsDoX3PObserver |
|
40 { |
|
41 public: |
|
42 virtual void MT_LbsDoX3PCallback(TInt aTransmitId, TRequestStatus& aStatus) = 0; |
|
43 }; |
|
44 |
|
45 |
|
46 class CT_LbsDoX3P: public CActive |
|
47 { |
|
48 public: |
|
49 ~CT_LbsDoX3P(); |
|
50 static CT_LbsDoX3P* NewL(MT_LbsDoX3PObserver* aObserver, TInt aTransmitId = 0); |
|
51 |
|
52 TInt SetOptions(const TLbsTransmitPositionOptions& aTransmitOptions); |
|
53 |
|
54 void StartL(const TDesC& aDestinationID, TUint aTransmitPriority, TPositionInfo & aTransmittedPosInfo); |
|
55 |
|
56 protected: |
|
57 // Functions from CActive: |
|
58 virtual void DoCancel(); |
|
59 virtual void RunL(); |
|
60 virtual TInt RunError(TInt aError); |
|
61 |
|
62 private: |
|
63 CT_LbsDoX3P(MT_LbsDoX3PObserver* aObserver, TInt aTransmitId); |
|
64 void CT_LbsDoX3P::ConstructL(); |
|
65 |
|
66 // Caller. |
|
67 MT_LbsDoX3PObserver* iObserver; |
|
68 |
|
69 // Transmit server. |
|
70 RLbsTransmitPositionServer iServer; |
|
71 RLbsTransmitPosition iTransmitter; |
|
72 |
|
73 // Id to allow multiple X3P to be carried out. |
|
74 TInt iTransmitId; |
|
75 }; |
|
76 |
|
77 #endif // __CT_LBS_DO_X3P_H__ |