|
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 #if (!defined __T_BLUETOOTH_SOCKET_NOTIFIER_H__) |
|
20 #define __T_BLUETOOTH_SOCKET_NOTIFIER_H__ |
|
21 |
|
22 // EPOC include |
|
23 #include <bt_sock.h> |
|
24 |
|
25 |
|
26 class CT_BluetoothSocketNotifier : public CBase, public MBluetoothSocketNotifier |
|
27 { |
|
28 public: |
|
29 // Constructor/Destructor |
|
30 CT_BluetoothSocketNotifier(); |
|
31 ~CT_BluetoothSocketNotifier(); |
|
32 |
|
33 void SetServer(MBluetoothSocketNotifier* aServer); |
|
34 |
|
35 // MBluetoothSocketNotifier implementation |
|
36 virtual void HandleConnectCompleteL(TInt aErr); |
|
37 virtual void HandleAcceptCompleteL(TInt aErr); |
|
38 virtual void HandleShutdownCompleteL(TInt aErr); |
|
39 virtual void HandleSendCompleteL(TInt aErr); |
|
40 virtual void HandleReceiveCompleteL(TInt aErr); |
|
41 virtual void HandleIoctlCompleteL(TInt aErr); |
|
42 virtual void HandleActivateBasebandEventNotifierCompleteL(TInt aErr, TBTBasebandEventNotification& aEventNotification); |
|
43 |
|
44 public: |
|
45 CBluetoothSocket* iBluetoothSocket; |
|
46 RSocketServ iSocketServer; |
|
47 TBool iSocketServerConnected; |
|
48 RConnection iConnection; |
|
49 |
|
50 private: |
|
51 MBluetoothSocketNotifier* iServer; |
|
52 }; |
|
53 |
|
54 #endif /* __T_BLUETOOTH_SOCKET_NOTIFIER_H__ */ |