|
1 /* |
|
2 * Copyright (c) 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 * Implementation of CSsmPsKeyObserverRange class. |
|
16 * |
|
17 */ |
|
18 |
|
19 #include "ssmpskeyobserverrange.h" |
|
20 #include "trace.h" |
|
21 |
|
22 // ======== MEMBER FUNCTIONS ======== |
|
23 |
|
24 // --------------------------------------------------------------------------- |
|
25 // CSsmPsKeyObserverRange::CSsmPsKeyObserverRange |
|
26 // |
|
27 // --------------------------------------------------------------------------- |
|
28 // |
|
29 CSsmPsKeyObserverRange::CSsmPsKeyObserverRange( |
|
30 TUid aCategory, |
|
31 TUint aKey, |
|
32 TInt aTargetLow, |
|
33 TInt aTargetHigh ) |
|
34 : CSsmPsKeyObserver( aCategory, aKey ), |
|
35 iTargetLow( aTargetLow ), |
|
36 iTargetHigh( aTargetHigh ) |
|
37 { |
|
38 FUNC_LOG; |
|
39 } |
|
40 |
|
41 |
|
42 // --------------------------------------------------------------------------- |
|
43 // CSsmPsKeyObserverRange::~CSsmPsKeyObserverRange |
|
44 // |
|
45 // --------------------------------------------------------------------------- |
|
46 // |
|
47 CSsmPsKeyObserverRange::~CSsmPsKeyObserverRange() |
|
48 { |
|
49 FUNC_LOG; |
|
50 } |
|
51 |
|
52 |
|
53 // --------------------------------------------------------------------------- |
|
54 // CSsmPsKeyObserverRange::IsMatch |
|
55 // |
|
56 // --------------------------------------------------------------------------- |
|
57 // |
|
58 TBool CSsmPsKeyObserverRange::IsMatch( const TInt aKeyValue ) const |
|
59 { |
|
60 FUNC_LOG; |
|
61 |
|
62 return ( aKeyValue >= iTargetLow && aKeyValue <= iTargetHigh ); |
|
63 } |