equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
31 #include "CFContextQueryImpl.h" |
31 #include "CFContextQueryImpl.h" |
32 #include "CFContextSubscriptionImpl.h" |
32 #include "CFContextSubscriptionImpl.h" |
33 #include "CFKeyValuePair.h" |
33 #include "CFKeyValuePair.h" |
34 #include "cfserviceutils.h" |
34 #include "cfserviceutils.h" |
35 #include "cfcontextdataproxy.h" |
35 #include "cfcontextdataproxy.h" |
36 #include "cfenvutils.h" |
|
37 |
36 |
38 // CONSTANTS |
37 // CONSTANTS |
39 _LIT( KKey, "Key_%d" ); |
38 _LIT( KKey, "Key_%d" ); |
40 _LIT( KValue, "Value_%d" ); |
39 _LIT( KValue, "Value_%d" ); |
41 _LIT( KActionId, "ActionID" ); |
40 _LIT( KActionId, "ActionID" ); |
71 |
70 |
72 // Destructor (virtual by CBase) |
71 // Destructor (virtual by CBase) |
73 MT_CFServices::~MT_CFServices() |
72 MT_CFServices::~MT_CFServices() |
74 { |
73 { |
75 Teardown(); |
74 Teardown(); |
76 |
|
77 // Enable screen saver |
|
78 CFEnvUtils::EnableScreenSaver( ETrue ); |
|
79 } |
75 } |
80 |
76 |
81 // Default constructor |
77 // Default constructor |
82 MT_CFServices::MT_CFServices() |
78 MT_CFServices::MT_CFServices() |
83 { |
79 { |
87 void MT_CFServices::ConstructL() |
83 void MT_CFServices::ConstructL() |
88 { |
84 { |
89 // The ConstructL from the base class CEUnitTestSuiteClass must be called. |
85 // The ConstructL from the base class CEUnitTestSuiteClass must be called. |
90 // It generates the test case table. |
86 // It generates the test case table. |
91 CEUnitTestSuiteClass::ConstructL(); |
87 CEUnitTestSuiteClass::ConstructL(); |
92 |
|
93 // Disable screen saver |
|
94 CFEnvUtils::EnableScreenSaver( EFalse ); |
|
95 } |
88 } |
96 |
89 |
97 // METHODS |
90 // METHODS |
98 |
91 |
99 void MT_CFServices::ActionIndicationL( CCFActionIndication* /*aIndication*/ ) |
92 void MT_CFServices::ActionIndicationL( CCFActionIndication* /*aIndication*/ ) |