on 5802fb1 help sign in
unity8/tests/mocks/Wizard/MockSystem.cpp
64 lines 1.4 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),
25 m_version("Lomiri 17.04.12")
29bool MockSystem::wizardEnabled() const
31 return m_wizardEnabled;
34void MockSystem::setWizardEnabled(bool enabled)
36 m_wizardEnabled = enabled;
37 Q_EMIT wizardEnabledChanged();
40bool MockSystem::isUpdate() const
42 return m_isUpdate;
45void MockSystem::setIsUpdate(bool update)
47 m_isUpdate = update;
48 Q_EMIT isUpdateChanged();
51QString MockSystem::version() const
53 return m_version;
56void MockSystem::updateSessionLocale(const QString &locale)
58 Q_EMIT updateSessionLocaleCalled(locale);
61void MockSystem::skipUntilFinishedPage()
63 Q_EMIT wouldHaveSetSkipUntilFinish();