contextframework/cfw/tsrc/public/basic/mt_cfservices/mt_cfservices.cpp
branchRCL_3
changeset 20 c2c61fdca848
parent 19 924385140d98
child 21 9af619316cbf
equal deleted inserted replaced
19:924385140d98 20:c2c61fdca848
     1 /*
     1 /*
     2 * Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2004 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"
    36 
    37 
    37 // CONSTANTS
    38 // CONSTANTS
    38 _LIT( KKey, "Key_%d" );
    39 _LIT( KKey, "Key_%d" );
    39 _LIT( KValue, "Value_%d" );
    40 _LIT( KValue, "Value_%d" );
    40 _LIT( KActionId, "ActionID" );
    41 _LIT( KActionId, "ActionID" );
    70 
    71 
    71 // Destructor (virtual by CBase)
    72 // Destructor (virtual by CBase)
    72 MT_CFServices::~MT_CFServices()
    73 MT_CFServices::~MT_CFServices()
    73     {
    74     {
    74     Teardown();
    75     Teardown();
       
    76 
       
    77     // Enable screen saver
       
    78     CFEnvUtils::EnableScreenSaver( ETrue );
    75     }
    79     }
    76 
    80 
    77 // Default constructor
    81 // Default constructor
    78 MT_CFServices::MT_CFServices()
    82 MT_CFServices::MT_CFServices()
    79     {
    83     {
    83 void MT_CFServices::ConstructL()
    87 void MT_CFServices::ConstructL()
    84     {
    88     {
    85     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
    89     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
    86     // It generates the test case table.
    90     // It generates the test case table.
    87     CEUnitTestSuiteClass::ConstructL();
    91     CEUnitTestSuiteClass::ConstructL();
       
    92 
       
    93     // Disable screen saver
       
    94     CFEnvUtils::EnableScreenSaver( EFalse );
    88     }
    95     }
    89 
    96 
    90 // METHODS
    97 // METHODS
    91 
    98 
    92 void MT_CFServices::ActionIndicationL( CCFActionIndication* /*aIndication*/ )
    99 void MT_CFServices::ActionIndicationL( CCFActionIndication* /*aIndication*/ )