videocollection/tsrc/stubs/inc/xqserviceutil.h
changeset 17 69946d1824c4
parent 15 cf5481c2bc0b
child 18 35eebde9876a
child 20 b9e04db066d4
equal deleted inserted replaced
15:cf5481c2bc0b 17:69946d1824c4
     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