videocollection/tsrc/stubs/inc/xqserviceutil.h
changeset 36 8aed59de29f9
parent 35 3738fe97f027
child 37 4eb2df7f7cbe
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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef XQSERVICEUTIL_H
       
    19 #define XQSERVICEUTIL_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <stub/inc/xqserviceutilxtra.h>
       
    23 
       
    24 class XQServiceUtilXtra;
       
    25 
       
    26 namespace XQServiceUtil
       
    27 {
       
    28     static void toBackground(bool value){};
       
    29     static bool isEmbedded(){return false;};
       
    30     static bool isService()
       
    31     {
       
    32     	bool service;
       
    33     	XQServiceUtilXtra* ptr = XQServiceUtilXtra::instance();
       
    34     	service = ptr->currentService();
       
    35     	ptr->decreaseReferenceCount();
       
    36     	return service;
       
    37     };
       
    38 }
       
    39 
       
    40 
       
    41 
       
    42 #endif