74
|
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:
|
|
15 |
*/
|
|
16 |
|
|
17 |
#include "hbindicatorstubhelper.h"
|
|
18 |
#include <qglobal.h>
|
|
19 |
#include <hbindicator.h>
|
|
20 |
|
|
21 |
bool testIndicatorActive = false;
|
|
22 |
|
|
23 |
void HbIndicatorStubHelper::reset()
|
|
24 |
{
|
|
25 |
testIndicatorActive = false;
|
|
26 |
}
|
|
27 |
|
|
28 |
bool HbIndicatorStubHelper::indicatorActive()
|
|
29 |
{
|
|
30 |
return testIndicatorActive;
|
|
31 |
}
|
|
32 |
|
|
33 |
bool HbIndicator::activate(const QString &indicatorType, const QVariant ¶meter)
|
|
34 |
{
|
|
35 |
Q_UNUSED(indicatorType)
|
|
36 |
Q_UNUSED(parameter)
|
|
37 |
testIndicatorActive = true;
|
|
38 |
return true;
|
|
39 |
}
|
|
40 |
|
|
41 |
bool HbIndicator::deactivate(const QString &indicatorType, const QVariant ¶meter)
|
|
42 |
{
|
|
43 |
Q_UNUSED(indicatorType)
|
|
44 |
Q_UNUSED(parameter)
|
|
45 |
testIndicatorActive = false;
|
|
46 |
return true;
|
|
47 |
}
|