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 #include <QDebug> |
|
18 #include <smcmockclassincludes.h> |
|
19 #include "sssettingswrapper.h" |
|
20 |
|
21 // ============================ MEMBER FUNCTIONS =============================== |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // SsSettingsWrapper::SsSettingsWrapper |
|
25 // ----------------------------------------------------------------------------- |
|
26 // |
|
27 SsSettingsWrapper::SsSettingsWrapper( |
|
28 QObject * parent ) : QObject( parent ) |
|
29 { |
|
30 |
|
31 } |
|
32 |
|
33 // ----------------------------------------------------------------------------- |
|
34 // SsSettingsWrapper::~SsSettingsWrapper |
|
35 // ----------------------------------------------------------------------------- |
|
36 // |
|
37 SsSettingsWrapper::~SsSettingsWrapper( ) |
|
38 { |
|
39 |
|
40 } |
|
41 |
|
42 // ----------------------------------------------------------------------------- |
|
43 // SsSettingsWrapper::get |
|
44 // ----------------------------------------------------------------------------- |
|
45 // |
|
46 int SsSettingsWrapper::get( |
|
47 SsSettingsWrapperSettings setting, |
|
48 int & value ) |
|
49 { |
|
50 static int tmpValue = 0; |
|
51 if(tmpValue == 0){ |
|
52 value = 0; |
|
53 tmpValue = 1; |
|
54 }else{ |
|
55 value = 2; |
|
56 tmpValue = 0; |
|
57 } |
|
58 SMC_MOCK_METHOD2( int, SsSettingsWrapperSettings, setting, int&, value ) |
|
59 } |
|
60 |
|
61 // ----------------------------------------------------------------------------- |
|
62 // SsSettingsWrapper::set |
|
63 // ----------------------------------------------------------------------------- |
|
64 // |
|
65 int SsSettingsWrapper::set( |
|
66 SsSettingsWrapperSettings setting, |
|
67 int value ) |
|
68 { |
|
69 SMC_MOCK_METHOD2( int, SsSettingsWrapperSettings, setting, int, value ) |
|
70 } |
|
71 |
|
72 |
|