on b377476 help sign in
unity8/tests/mocks/Wizard/MockSystem.cpp
58 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();
39bool MockSystem::isUpdate() const
41 return m_isUpdate;
44void MockSystem::setIsUpdate(bool update)
46 m_isUpdate = update;
47 Q_EMIT isUpdateChanged();
50void MockSystem::updateSessionLocale(const QString &locale)
52 Q_EMIT updateSessionLocaleCalled(locale);
55void MockSystem::skipUntilFinishedPage()
57 Q_EMIT wouldHaveSetSkipUntilFinish();