on e4400a2 help sign in
unity8/tests/mocks/Wizard/MockSystem.cpp
49 lines 1.3 kB history raw
1/*
2 * Copyright (C) 2014 Canonical Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 3, as published
6 * by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranties of
10 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11 * PURPOSE. See the GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License along
14 * with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
17#include <QDebug>
18#include <QSettings>
20#include "MockSystem.h"
22MockSystem::MockSystem()
23 : QObject(),
24 m_wizardEnabled(false)
28bool MockSystem::wizardEnabled() const
30 return m_wizardEnabled;
33void MockSystem::setWizardEnabled(bool enabled)
35 m_wizardEnabled = enabled;
36 Q_EMIT wizardEnabledChanged();
39void MockSystem::updateSessionLocale(const QString &locale)
41 Q_EMIT updateSessionLocaleCalled(locale);
44void MockSystem::skipUntilFinishedPage()
46 QSettings settings;
47 settings.setValue(QStringLiteral("Wizard/SkipUntilFinishedPage"), true);
48 settings.sync();