videoplayback/hbvideoplaybackview/tsrc/testvideoplaybackcontrolscontroller/stub/src/xqserviceutil.cpp
changeset 36 8aed59de29f9
equal deleted inserted replaced
35:3738fe97f027 36:8aed59de29f9
       
     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:   ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 #include "xqserviceutil.h"
       
    19 #include "xqserviceutilxtra.h"
       
    20 #include "mpxvideo_debug.h"
       
    21 
       
    22 
       
    23 // ----------------------------------------------------------------------------
       
    24 // XQServiceUtil::toBackground()
       
    25 // ----------------------------------------------------------------------------
       
    26 //
       
    27 void XQServiceUtil::toBackground( bool value )
       
    28 {
       
    29     MPX_DEBUG(_L("XQServiceUtil::toBackground( %d )"), value );
       
    30 }
       
    31 
       
    32 // ----------------------------------------------------------------------------
       
    33 // XQServiceUtil::isEmbedded()
       
    34 // ----------------------------------------------------------------------------
       
    35 //
       
    36 bool XQServiceUtil::isEmbedded()
       
    37 {
       
    38     MPX_DEBUG(_L("XQServiceUtil::isEmbedded()"));
       
    39 
       
    40     return false;
       
    41 }
       
    42 
       
    43 // ----------------------------------------------------------------------------
       
    44 // XQServiceUtil::isService()
       
    45 // ----------------------------------------------------------------------------
       
    46 //
       
    47 bool XQServiceUtil::isService()
       
    48 {
       
    49     bool service;
       
    50     XQServiceUtilXtra* ptr = XQServiceUtilXtra::instance();
       
    51     service = ptr->currentService();
       
    52     ptr->decreaseReferenceCount();
       
    53     
       
    54     MPX_DEBUG(_L("XQServiceUtil::isEmbedded() ret %d"), service);
       
    55     return service;
       
    56 }
       
    57