equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008 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: Range condition implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CSENSORRANGECONDITION_H |
|
19 #define CSENSORRANGECONDITION_H |
|
20 |
|
21 #include "csensorconditionbase.h" |
|
22 |
|
23 class CSensorRangeCondition : public CSensorConditionBase |
|
24 { |
|
25 public: |
|
26 |
|
27 CSensorRangeCondition(TInt& aChannelId, |
|
28 TReal64& aLowerLimit, TReal64& aUpperLimit, |
|
29 TInt& aLowerOp, TInt& aUpperOp); |
|
30 |
|
31 virtual ~CSensorRangeCondition(); |
|
32 |
|
33 public: // From CSensorConditionBase |
|
34 |
|
35 virtual TBool Evaluate(TReal aValue, TInt aChannelId); |
|
36 |
|
37 private: // Member data |
|
38 TReal64 iLowerLimit; |
|
39 TReal64 iUpperLimit; |
|
40 TInt iLowerOp; |
|
41 TInt iUpperOp; |
|
42 }; |
|
43 |
|
44 #endif // CSENSORRANGECONDITION_H |