videoplayerapp/mpxvideoplayer/tsrc/ut_mpxvideoplayertest/src/stifutilities.cpp
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     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:  mpx utilities class stub for STIF testing
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version: ou1cpsw#2 %
       
    19 
       
    20 #include "stifutilities.h"
       
    21 
       
    22 void StifUtilities::DeleteCollectionUtility()
       
    23 {
       
    24     delete iCollectionUtility;
       
    25     iCollectionUtility = NULL;
       
    26 
       
    27     CloseUtility();
       
    28 }
       
    29 
       
    30 void StifUtilities::DeleteViewUtility()
       
    31 {
       
    32     delete iViewUtility;
       
    33     iViewUtility = NULL;
       
    34 
       
    35     CloseUtility();
       
    36 }
       
    37 
       
    38 void StifUtilities::DeletePlaybackUtility()
       
    39 {
       
    40     delete iPlaybackUtility;
       
    41     iPlaybackUtility = NULL;
       
    42 
       
    43     CloseUtility();
       
    44 }
       
    45 
       
    46 void StifUtilities::CloseUtility()
       
    47 {
       
    48     if ( iCollectionUtility == NULL && iPlaybackUtility == NULL && iViewUtility == NULL )
       
    49     {
       
    50         delete this;
       
    51 
       
    52         Dll::SetTls( NULL );
       
    53     }
       
    54 }