|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // ECheckDevicePairing state in the PSY Connecting State Machine; checks to |
|
15 // see whether the current device is paired with |
|
16 // |
|
17 |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @internalTechnology |
|
23 */ |
|
24 |
|
25 #ifndef BTGPSCHECKDEVICEPAIRING_H |
|
26 #define BTGPSCHECKDEVICEPAIRING_H |
|
27 |
|
28 //Includes |
|
29 #include "btgpsdevman.h" |
|
30 |
|
31 //Forward Declarations |
|
32 class MBTGPSConnectManagerExt; |
|
33 |
|
34 /** The Handler which handles checking the pairing status of the current |
|
35 BT GPS device |
|
36 |
|
37 @internalTechnology |
|
38 */ |
|
39 class CBTGPSCheckDevicePairing : public CBase, private MBTGPSDevManObserver |
|
40 { |
|
41 public: |
|
42 static CBTGPSCheckDevicePairing* NewL(MBTGPSConnectManagerExt& aManagerExt); |
|
43 ~CBTGPSCheckDevicePairing(); |
|
44 |
|
45 private: |
|
46 CBTGPSCheckDevicePairing(MBTGPSConnectManagerExt& aManagerExt); |
|
47 void ConstructL(); |
|
48 |
|
49 //MBTGPSDevManObserver |
|
50 virtual void HandleGetDevicesComplete(TInt aErr, RBTDeviceArray* aDeviceArray); |
|
51 virtual void HandleAddDeviceComplete(TInt aErr); |
|
52 virtual void HandleDeleteDevicesComplete(TInt aErr); |
|
53 |
|
54 static TInt HandlerCompleteCallback(TAny* aAny); |
|
55 void HandlerCompleteNotify(); |
|
56 |
|
57 private: |
|
58 //Manager Ext |
|
59 MBTGPSConnectManagerExt& iManagerExt; |
|
60 |
|
61 //BT Device Manager |
|
62 CBTGPSDevMan* iBtDevMan; |
|
63 |
|
64 // result array needed when using CBTGPSDevMan |
|
65 RBTDeviceArray* iDeviceArray; |
|
66 |
|
67 //Error code |
|
68 TInt iError; |
|
69 |
|
70 //Complete Idle object |
|
71 CIdle* iIdle; |
|
72 }; |
|
73 |
|
74 #endif //BTGPSCHECKDEVICEPAIRING_H |