radioapp/radioapplication/win32_stubs/win32_stubs.cpp
branchRCL_3
changeset 19 cce62ebc198e
equal deleted inserted replaced
18:1a6714c53019 19:cce62ebc198e
       
     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 #include "qsysteminfo.h"
       
    19 #include "xqserviceprovider.h"
       
    20 #include "xqsettingskey.h"
       
    21 #include "xqsettingsmanager.h"
       
    22 #include "radio_global.h"
       
    23 
       
    24 /*!
       
    25  *
       
    26  */
       
    27 QtMobility::QSystemDeviceInfo::QSystemDeviceInfo( QObject* parent ) :
       
    28     QObject( parent )
       
    29 {
       
    30 }
       
    31 
       
    32 /*!
       
    33  *
       
    34  */
       
    35 QtMobility::QSystemDeviceInfo::~QSystemDeviceInfo()
       
    36 {
       
    37 }
       
    38 
       
    39 /*!
       
    40  *
       
    41  */
       
    42 XQServiceProvider::XQServiceProvider( const QString&, QObject* parent ) :
       
    43     QObject( parent )
       
    44 {
       
    45 }
       
    46 
       
    47 /*!
       
    48  *
       
    49  */
       
    50 XQServiceProvider::~XQServiceProvider()
       
    51 {
       
    52 }
       
    53 
       
    54 
       
    55 /*!
       
    56  *
       
    57  */
       
    58 XQSettingsKey::XQSettingsKey( XQSettingsKey::Target, long int uid, unsigned long int key ) :
       
    59     mUid( uid ),
       
    60     mKey( key )
       
    61 {
       
    62 }
       
    63 
       
    64 /*!
       
    65  *
       
    66  */
       
    67 XQSettingsKey::~XQSettingsKey()
       
    68 {
       
    69 }
       
    70 
       
    71 /*!
       
    72  *
       
    73  */
       
    74 XQSettingsKey::Target XQSettingsKey::target() const
       
    75 {
       
    76     return TargetCentralRepository;
       
    77 }
       
    78 
       
    79 /*!
       
    80  *
       
    81  */
       
    82 long int XQSettingsKey::uid() const
       
    83 {
       
    84     return mUid;
       
    85 }
       
    86 
       
    87 /*!
       
    88  *
       
    89  */
       
    90 unsigned long int XQSettingsKey::key() const
       
    91 {
       
    92     return mKey;
       
    93 }
       
    94 
       
    95 /*!
       
    96  *
       
    97  */
       
    98 XQSettingsManager::XQSettingsManager( QObject* parent ) :
       
    99     QObject( parent )
       
   100 {
       
   101 }
       
   102 
       
   103 /*!
       
   104  *
       
   105  */
       
   106 XQSettingsManager::~XQSettingsManager()
       
   107 {
       
   108 }
       
   109 
       
   110 /*!
       
   111  *
       
   112  */
       
   113 QVariant XQSettingsManager::readItemValue( const XQSettingsKey& key, XQSettingsManager::Type )
       
   114 {
       
   115     if ( key.uid() == CENREP_CORE_APPLICATION_UIS && key.key() == ID_NETWORK_CONNECTION_ALLOWED ) {
       
   116         return NetworkAllowed;
       
   117     }
       
   118     return QVariant();
       
   119 }
       
   120 
       
   121 /*!
       
   122  *
       
   123  */
       
   124 bool XQSettingsManager::writeItemValue( const XQSettingsKey&, const QVariant& )
       
   125 {
       
   126     return true;
       
   127 }
       
   128 
       
   129 /*!
       
   130  *
       
   131  */
       
   132 bool XQSettingsManager::startMonitoring( const XQSettingsKey&, XQSettingsManager::Type )
       
   133 {
       
   134     return true;
       
   135 }
       
   136 
       
   137 /*!
       
   138  *
       
   139  */
       
   140 bool XQSettingsManager::stopMonitoring( const XQSettingsKey& )
       
   141 {
       
   142     return true;
       
   143 }
       
   144 
       
   145 /*!
       
   146  *
       
   147  */
       
   148 XQSettingsManager::Error XQSettingsManager::error() const
       
   149 {
       
   150     return NoError;
       
   151 }