equal
deleted
inserted
replaced
|
1 // Copyright (c) 2004-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 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #ifndef __CBTADDRSUBSCRIBER_H |
|
22 #define __CBTADDRSUBSCRIBER_H |
|
23 |
|
24 #include <e32base.h> |
|
25 #include <bttypes.h> |
|
26 #include <e32property.h> |
|
27 #include "CBnepLocalDevice.h" |
|
28 |
|
29 |
|
30 /** |
|
31 Monitor BT stack for hardware address notifications using publish and subscribe. |
|
32 */ |
|
33 |
|
34 NONSHARABLE_CLASS(CBTAddrSubscriber) : public CActive |
|
35 { |
|
36 |
|
37 public: |
|
38 ~CBTAddrSubscriber(); |
|
39 static CBTAddrSubscriber* NewL (TBTDevAddr& aAddr, CBnepLocalDevice& aLocal); |
|
40 TInt SyncFetch (TBool aRestart = EFalse); |
|
41 |
|
42 private: |
|
43 CBTAddrSubscriber (TBTDevAddr& aAddr, CBnepLocalDevice& aLocal); |
|
44 void RunL (); |
|
45 void DoCancel (); |
|
46 TBTDevAddr& iAddr; |
|
47 CBnepLocalDevice& iOwner; |
|
48 RProperty iDevAddrProperty; |
|
49 }; |
|
50 #endif |