34
|
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: XQSettingsKey stub for FM Radio home screen widget
|
|
15 |
* unit testing.
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
// User includes
|
|
20 |
#include "xqsettingskey.h"
|
|
21 |
#include "radiologger.h"
|
|
22 |
|
|
23 |
/*!
|
|
24 |
\class XQSettingsKey
|
|
25 |
\brief Stub implementation of XQSettingsKey for unit testing
|
|
26 |
*/
|
|
27 |
|
|
28 |
// ======== MEMBER FUNCTIONS ========
|
|
29 |
|
|
30 |
XQSettingsKey::XQSettingsKey(XQSettingsKey::Target target, long int uid,
|
|
31 |
unsigned long int key)
|
|
32 |
{
|
|
33 |
LOG_METHOD_ENTER;
|
|
34 |
m_target = target;
|
|
35 |
m_uid = uid;
|
|
36 |
m_key = key;
|
|
37 |
}
|
|
38 |
|
|
39 |
XQSettingsKey::~XQSettingsKey()
|
|
40 |
{
|
|
41 |
LOG_METHOD_ENTER;
|
|
42 |
}
|
|
43 |
|
|
44 |
XQSettingsKey::Target XQSettingsKey::target() const
|
|
45 |
{
|
|
46 |
LOG_METHOD_ENTER;
|
|
47 |
return m_target;
|
|
48 |
}
|
|
49 |
|
|
50 |
long int XQSettingsKey::uid() const
|
|
51 |
{
|
|
52 |
LOG_METHOD_ENTER;
|
|
53 |
return m_uid;
|
|
54 |
}
|
|
55 |
|
|
56 |
unsigned long int XQSettingsKey::key() const
|
|
57 |
{
|
|
58 |
LOG_METHOD_ENTER;
|
|
59 |
return m_key;
|
|
60 |
}
|