|
1 /* |
|
2 * Copyright (c) 2005-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 "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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef BTGPSCONNECTMANAGEREXT_H |
|
22 #define BTGPSCONNECTMANAGEREXT_H |
|
23 |
|
24 // INCLUDES |
|
25 |
|
26 #include <e32base.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CBTGPSDeviceManager; |
|
30 class CBTGPSConstantsManager; |
|
31 class CBTGPSSettingManager; |
|
32 class CBTGPSDeviceListManager; |
|
33 class RSocketServ; |
|
34 class RSocket; |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 /** |
|
39 * Interface class for BT connection handlers. BT connection handlers will |
|
40 * use reference of this interface to get connection to device manager or |
|
41 * other global objects. |
|
42 * |
|
43 */ |
|
44 class MBTGPSConnectManagerExt |
|
45 { |
|
46 public: |
|
47 |
|
48 /** |
|
49 * Get reference to device manager. |
|
50 * @return Reference to device manager. |
|
51 */ |
|
52 virtual CBTGPSDeviceManager& DeviceManager() const = 0; |
|
53 |
|
54 /** |
|
55 * Get reference to constants manager |
|
56 * @return Reference to contants manager |
|
57 */ |
|
58 virtual CBTGPSConstantsManager& ConstantsManager() const = 0; |
|
59 |
|
60 /** |
|
61 * Get reference to setting manager |
|
62 * @return Reference to setting manager |
|
63 */ |
|
64 virtual CBTGPSSettingManager& SettingManager() const = 0; |
|
65 |
|
66 /** |
|
67 * Get reference to RSocketServ and Socket. |
|
68 * @param aSocketServ On return, contains reference of socket server, which |
|
69 * is owned by connect manager. |
|
70 * @param aSocket On return, contains reference of RSocket, which is |
|
71 * owned by connect manager. |
|
72 */ |
|
73 virtual void GetSocket( |
|
74 RSocketServ*& aSocketServ, |
|
75 RSocket*& aSocket) = 0; |
|
76 |
|
77 /** |
|
78 * Disconnect BT device |
|
79 */ |
|
80 virtual void DisconnectBtDevice() = 0; |
|
81 |
|
82 /** |
|
83 * Interface for handler to report operation result. |
|
84 * @param aId The id of current handler |
|
85 * @param aErr The operation err code. KErrNone if operation |
|
86 * has been executed successfully. |
|
87 */ |
|
88 virtual void HandlerComplete(TInt aId, TInt aErr) = 0; |
|
89 |
|
90 /** |
|
91 * Get reference to Device List Manager |
|
92 * @return Reference to Device List Manager |
|
93 */ |
|
94 virtual CBTGPSDeviceListManager& DeviceListManager() const = 0; |
|
95 }; |
|
96 #endif |
|
97 // End of File |
|
98 |