videocollection/tsrc/stubs/src/xqserviceutil.cpp
branchRCL_3
changeset 56 839377eedc2b
equal deleted inserted replaced
54:315810614048 56:839377eedc2b
       
     1 /**
       
     2 * Copyright (c) 2010 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:
       
    15 *
       
    16 */
       
    17 
       
    18 #include "xqserviceutilstub.h"
       
    19 #include "xqserviceutilxtra.h"
       
    20 #include "videoservices.h"
       
    21 
       
    22 void XQServiceUtil::toBackground(bool value)
       
    23 {
       
    24     Q_UNUSED(value);
       
    25 }
       
    26 
       
    27 bool XQServiceUtil::isEmbedded()
       
    28 {
       
    29     return false;
       
    30 }
       
    31 
       
    32 bool XQServiceUtil::isService()
       
    33 {
       
    34     bool service = false;
       
    35     XQServiceUtilXtra* ptr = XQServiceUtilXtra::instance();
       
    36     service = ptr->currentService();
       
    37     ptr->decreaseReferenceCount();
       
    38     return service;
       
    39 }
       
    40 
       
    41 QString XQServiceUtil::interfaceName()
       
    42 {
       
    43     VideoServices *videoServices = VideoServices::instance();
       
    44     QString interfaceName;
       
    45     if(videoServices->currentService() == VideoServices::EUriFetcher)
       
    46     {
       
    47         interfaceName = "IVideoFetch";
       
    48     } 
       
    49     else if(videoServices->currentService() == VideoServices::EBrowse)
       
    50     {
       
    51         interfaceName = "IVideoBrowse";
       
    52     }
       
    53     videoServices->decreaseReferenceCount();
       
    54     return interfaceName;
       
    55 }
       
    56 
       
    57 QString XQServiceUtil::operationName()
       
    58 {
       
    59     return QString();
       
    60 }
       
    61 
       
    62 // End of file