|
1 // Copyright (c) 2010 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 #ifndef BTMPAGESCANPARAMETERSMANAGER_H |
|
17 #define BTMPAGESCANPARAMETERSMANAGER_H |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <e32property.h> |
|
21 #include "btmactive.h" |
|
22 |
|
23 class CBtmPageScanParametersManager : public CBase, public MBtmActiveObserver |
|
24 { |
|
25 public: |
|
26 static CBtmPageScanParametersManager* NewL(); |
|
27 ~CBtmPageScanParametersManager(); |
|
28 |
|
29 void Activate(); |
|
30 void Deactivate(); |
|
31 |
|
32 private: // From MBtmActiveObserver |
|
33 void RequestCompletedL(CBtmActive& aActive); |
|
34 void CancelRequest(CBtmActive& aActive); |
|
35 |
|
36 private: |
|
37 void StartTimer(TInt aService, TInt aTimeout); |
|
38 void StopTimer(); |
|
39 |
|
40 void DisableFastConnection(); |
|
41 |
|
42 protected: |
|
43 CBtmPageScanParametersManager(); |
|
44 void ConstructL(); |
|
45 |
|
46 protected: |
|
47 RProperty iCallStateKey; |
|
48 CBtmActive* iCallStateListener; |
|
49 RProperty iPageScanParametersKey; |
|
50 CBtmActive* iPageScanParametersListener; |
|
51 RTimer iTimer; |
|
52 CBtmActive* iTimerActive; |
|
53 TBool iIsBeingDeactivated; |
|
54 }; |
|
55 |
|
56 #endif // C_BTMSDISCONNECT_H |