|
1 /* |
|
2 * Copyright (c) 2006-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: Channel condition object. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "sensrvchannelcondition.h" |
|
20 #include "sensrvchannelconditionimpl.h" |
|
21 |
|
22 // --------------------------------------------------------------------------- |
|
23 // Default constructor |
|
24 // --------------------------------------------------------------------------- |
|
25 // |
|
26 CSensrvChannelCondition::CSensrvChannelCondition() |
|
27 { |
|
28 } |
|
29 |
|
30 |
|
31 // --------------------------------------------------------------------------- |
|
32 // 2-phase constructor |
|
33 // --------------------------------------------------------------------------- |
|
34 // |
|
35 EXPORT_C CSensrvChannelCondition* CSensrvChannelCondition::NewL |
|
36 ( TInt aConditionType, |
|
37 TInt aConditionOperator, |
|
38 TInt aItemIndex, |
|
39 TDesC8& aValue ) |
|
40 { |
|
41 CSensrvChannelCondition* self = |
|
42 CSensrvChannelCondition::NewLC( aConditionType, |
|
43 aConditionOperator, |
|
44 aItemIndex, |
|
45 aValue ); |
|
46 CleanupStack::Pop( self ); |
|
47 return self; |
|
48 } |
|
49 |
|
50 |
|
51 // --------------------------------------------------------------------------- |
|
52 // 2-phase constructor |
|
53 // --------------------------------------------------------------------------- |
|
54 // |
|
55 EXPORT_C CSensrvChannelCondition* CSensrvChannelCondition::NewLC |
|
56 ( TInt aConditionType, |
|
57 TInt aConditionOperator, |
|
58 TInt aItemIndex, |
|
59 TDesC8& aValue ) |
|
60 { |
|
61 CSensrvChannelConditionImpl* self = |
|
62 new( ELeave ) CSensrvChannelConditionImpl(aConditionType, |
|
63 aConditionOperator, |
|
64 aItemIndex); |
|
65 CleanupStack::PushL( self ); |
|
66 self->ConstructL(aValue); |
|
67 return self; |
|
68 } |
|
69 |
|
70 |